Server IP : 172.67.157.199 / Your IP : 18.118.30.168 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/themes/CubicWP/inc/admin/classes/ |
Upload File : |
<?php /** * ListMode_Customize_Submit_Control class * * @package ListMode WordPress Theme * @copyright Copyright (C) 2024 ThemesDNA * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later * @author ThemesDNA <[email protected]> */ class ListMode_Customize_Submit_Control extends WP_Customize_Control { public $type = 'listmode-submit-button'; protected $button_class = ''; protected $button_id = ''; protected $button_value = ''; protected $button_onclick = ''; public function render_content() { ?> <form action="customize.php" method="get"> <label> <span style="font-weight:normal;margin-bottom:10px;" class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> <?php echo '<input type="submit"'; if (!empty($this->button_class)) { echo ' class="' . esc_attr($this->button_class) . '"'; } if (!empty($this->button_id)) { echo ' name="' . esc_attr($this->button_id) . '"'; } if (!empty($this->button_id)) { echo ' id="' . esc_attr($this->button_id) . '"'; } if (!empty($this->button_value)) { echo ' value="' . esc_attr($this->button_value) . '"'; } if (!empty($this->button_onclick)) { echo ' onclick="return confirm(\'' . esc_js($this->button_onclick) . '\');"'; } echo '/>'; ?> </label> </form> <?php } }