Server IP : 172.67.157.199 / Your IP : 3.143.25.80 [ 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_Button_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_Button_Control extends WP_Customize_Control { public $type = 'listmode-button'; protected $button_tag = 'button'; protected $button_class = 'button button-primary'; protected $button_href = 'javascript:void(0)'; protected $button_target = ''; protected $button_onclick = ''; protected $button_tag_id = ''; public function render_content() { ?> <span class="center"> <?php echo '<' . esc_html($this->button_tag); if (!empty($this->button_class)) { echo ' class="' . esc_attr($this->button_class) . '"'; } if ('button' == $this->button_tag) { echo ' type="button"'; } else { echo ' href="' . esc_url($this->button_href) . '"' . (empty($this->button_tag) ? '' : ' target="' . esc_attr($this->button_target) . '"'); } if (!empty($this->button_onclick)) { echo ' onclick="' . esc_js($this->button_onclick) . '"'; } if (!empty($this->button_tag_id)) { echo ' id="' . esc_attr($this->button_tag_id) . '"'; } echo '>'; echo esc_html($this->label); echo '</' . esc_html($this->button_tag) . '>'; ?> </span> <?php } }