Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
duplicator
/
classes
/
ui
/
File Content:
class.ui.dialog.php
<?php defined('ABSPATH') || defined('DUPXABSPATH') || exit; /** * Used to generate a thick-box inline dialog such as an alert or confirm pop-up * * Standard: PSR-2 * @link http://www.php-fig.org/psr/psr-2 * * @package Duplicator * @subpackage classes/ui * @copyright (c) 2017, Snapcreek LLC * */ // Exit if accessed directly if (! defined('DUPLICATOR_VERSION')) exit; class DUP_UI_Dialog { /** * The title that shows up in the dialog */ public $title; /** * The message displayed in the body of the dialog */ public $message; /** * The width of the dialog the default is used if not set * Alert = 475px (default) | Confirm = 500px (default) */ public $width; /** * The height of the dialog the default is used if not set * Alert = 125px (default) | Confirm = 150px (default) */ public $height; /** * When the progress meter is running show this text * Available only on confirm dialogs */ public $progressText; /** * When true a progress meter will run until page is reloaded * Available only on confirm dialogs */ public $progressOn = true; /** * The javascript call back method to call when the 'Yes' button is clicked * Available only on confirm dialogs */ public $jscallback; /** * * @var string */ public $okText; /** * * @var string */ public $cancelText; /** * If true close dialog on confirm * @var bool */ public $closeOnConfirm = false; /** * The id given to the full dialog */ private $id; /** * A unique id that is added to all id elements */ private $uniqid; /** * Init this object when created */ public function __construct() { add_thickbox(); $this->progressText = __('Processing please wait...', 'duplicator'); $this->uniqid = substr(uniqid('',true),0,14) . rand(); $this->id = 'dup-dlg-'.$this->uniqid; $this->okText = __('OK', 'duplicator'); $this->cancelText = __('Cancel', 'duplicator'); } /** * Gets the unique id that is assigned to each instance of a dialog * * @return int The unique ID of this dialog */ public function getID() { return $this->id; } /** * Gets the unique id that is assigned to each instance of a dialogs message text * * @return int The unique ID of the message */ public function getMessageID() { return "{$this->id}_message"; } /** * Initialize the alert base html code used to display when needed * * @return string The html content used for the alert dialog */ public function initAlert() { $onClickClose = ''; if (!is_null($this->jscallback)) { $onClickClose .= $this->jscallback.';'; } $onClickClose .= 'tb_remove();'; $html = ' <div id="'.esc_attr($this->id).'" style="display:none"> <div class="dup-dlg-alert-txt"> '.$this->message.' <br/><br/> </div> <div class="dup-dlg-alert-btns"> <input type="button" class="button button-large" value="'.esc_attr($this->okText).'" onclick="'.$onClickClose.'" /> </div> </div>'; echo $html; } /** * Shows the alert base JS code used to display when needed * * @return string The javascript content used for the alert dialog */ public function showAlert() { $this->width = is_numeric($this->width) ? $this->width : 500; $this->height = is_numeric($this->height) ? $this->height : 175; $html = "tb_show('".esc_js($this->title)."', '#TB_inline?width=".esc_js($this->width)."&height=".esc_js($this->height)."&inlineId=".esc_js($this->id)."');\n" . "var styleData = jQuery('#TB_window').attr('style') + 'height: ".esc_js($this->height)."px !important';\n" . "jQuery('#TB_window').attr('style', styleData);"; echo $html; } /** * Shows the confirm base JS code used to display when needed * * @return string The javascript content used for the confirm dialog */ public function initConfirm() { $progress_data = ''; $progress_func2 = ''; $onClickConfirm = ''; if (!is_null($this->jscallback)) { $onClickConfirm .= $this->jscallback.';'; } //Enable the progress spinner if ($this->progressOn) { $progress_func1 = "__DUP_UI_Dialog_".$this->uniqid; $progress_func2 = ";{$progress_func1}(this)"; $progress_data = "<div class='dup-dlg-confirm-progress'><i class='fas fa-circle-notch fa-spin fa-lg fa-fw'></i> ".esc_js($this->progressText)."</div> <script> function {$progress_func1}(obj) { jQuery(obj).parent().parent().find('.dup-dlg-confirm-progress').show(); jQuery(obj).closest('.dup-dlg-confirm-btns').find('input').attr('disabled', 'true'); } </script>"; $onClickConfirm .= $progress_func2.';'; } if ($this->closeOnConfirm) { $onClickConfirm .= 'tb_remove();'; } $html = '<div id="'.esc_attr($this->id).'" style="display:none"> <div class="dup-dlg-confirm-txt"> <span id="'.esc_attr($this->id).'_message">'.esc_html($this->message).'</span> <br/><br/> '.$progress_data.' </div> <div class="dup-dlg-confirm-btns"> <input type="button" class="button button-large" value="'.esc_attr($this->okText).'" onclick="'.$onClickConfirm.'" /> <input type="button" class="button button-large" value="'.esc_attr($this->cancelText).'" onclick="tb_remove()" /> </div> </div>'; echo $html; } /** * Shows the confirm base JS code used to display when needed * * @return string The javascript content used for the confirm dialog */ public function showConfirm() { $this->width = is_numeric($this->width) ? $this->width : 500; $this->height = is_numeric($this->height) ? $this->height : 225; $html = "tb_show('".esc_js($this->title)."', '#TB_inline?width=".esc_js($this->width)."&height=".esc_js($this->height)."&inlineId=".esc_js($this->id)."');\n" . "var styleData = jQuery('#TB_window').attr('style') + 'height: ".esc_js($this->height)."px !important';\n" . "jQuery('#TB_window').attr('style', styleData);"; echo $html; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
.DS_Store
10234 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
README.md
2555 bytes
0644
base-20260707194016.php
2793 bytes
0644
base.php
2793 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-sitemaps-admin-20260703023908.php
3665 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-tracking-server-data.php
1989 bytes
0644
class-wpseo-statistics-20260705162526.php
1443 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-yoast-plugin-conflict.php
10390 bytes
0644
class.archive.config.php
1364 bytes
0644
class.logging-20260623065409.php
15719 bytes
0644
class.logging.php
15719 bytes
0644
class.pack.database.php
30838 bytes
0644
class.pantheon.host.php
607 bytes
0644
class.snaplib.u.net.php
1831 bytes
0644
class.ui.dialog-20260622173010.php
6780 bytes
0644
class.ui.dialog.php
6780 bytes
0644
class.ui.screen.base-20260622160050.php
4216 bytes
0644
class.ui.viewstate-20260622122920.php
2351 bytes
0644
ctrl.package.php
17073 bytes
0644
deactivation.php
21118 bytes
0644
define.php
4567 bytes
0644
description-presenter-20260623011438.php
1026 bytes
0644
duplicator-20260622023227.php
1781 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin-20260705182242.php
3331 bytes
0644
elFinderPlugin-20260706211925.php
3331 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260705194237.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706153503.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
flexible-widget-20260704235814.php
11167 bytes
0644
flexible-widget.php
11167 bytes
0644
inc.validator.php
5401 bytes
0644
index.php
157663 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
manager.php
14659 bytes
0644
meta-fields-presenter.php
1600 bytes
0644
module-20260706100152.php
1297 bytes
0644
module.php
1297 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
recovery.php
1146 bytes
0644
setup-20260706085802.php
2699 bytes
0644
setup.php
2699 bytes
0644
social.php
725 bytes
0644
uninstall.php
4401 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-ja.json
21424 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
N4ST4R_ID | Naxtarrr