Server IP : 104.21.14.48 / Your IP : 3.137.181.230 [ 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/consultstreet/inc/customizer/custom-customizer/ |
Upload File : |
<?php /** * Extend default customizer panel. * * @package consultstreet * * @see WP_Customize_Panel * @access public */ if ( class_exists( 'WP_Customize_Panel' ) ) { /** * Class ConsultStreet_Customize_Panel */ class ConsultStreet_Customize_Panel extends WP_Customize_Panel { /** * Panel * * @var string */ public $panel; /** * Control type. * * @var string */ public $type = 'consultstreet_panel'; /** * Get section parameters for JS. * * @return array Exported parameters. */ public function json() { $array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'type', 'panel', ) ); $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) ); $array['content'] = $this->get_content(); $array['active'] = $this->active(); $array['instanceNumber'] = $this->instance_number; return $array; } } }