| Server IP : 144.76.79.100 / Your IP : 216.73.216.103 [ Web Server : Apache System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64 User : razzlestore ( 1092) PHP Version : 8.2.29 Disable Function : NONE Domains : 343 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/cwd/wp-content/themes/oceanwp/inc/customizer/extend-section/ |
Upload File : |
<?php
if ( class_exists( 'WP_Customize_Section' ) ) {
class OWP_Customize_Section extends WP_Customize_Section {
public $section;
public $after;
public $section_class;
public $type = 'owp_section';
public function json() {
$array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'panel', 'type', 'description_hidden', 'section', 'after', 'section_class' ) );
$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;
if ( $this->panel ) {
$array['customizeAction'] = sprintf( 'Customizing ▸ %s', esc_html( $this->manager->get_panel( $this->panel )->title ) );
} else if ( $this->section ) {
$array['customizeAction'] = sprintf( 'Customizing ▸ %s', esc_html( $this->manager->get_section( $this->section )->title ) );
} else {
$array['customizeAction'] = 'Customizing';
}
return $array;
}
}
}