title, ENT_QUOTES, get_bloginfo( 'charset' ) );
$array['content'] = $this->get_content();
$array['active'] = $this->active();
$array['instanceNumber'] = $this->instance_number;
return $array;
}
}
}
if ( class_exists( 'WP_Customize_Section' ) ) {
class Atomy_WP_Customize_Section extends WP_Customize_Section {
public $section;
public $type = 'pe_section';
public function json() {
$array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'panel', 'type', 'description_hidden', 'section', ) );
$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 {
$array['customizeAction'] = 'Customizing';
}
return $array;
}
}
}
/* ------------------------------------*
## Class Toggle Switchs */
/* ----------------------------------- */
if ( class_exists( 'WP_Customize_Control' ) ) {
class Atomy_Toggle_Switch_Custom_control extends WP_Customize_Control {
/**
* The type of control being rendered
*/
public $type = 'toggle_switch';
/**
* Render the control in the customizer
*/
public function render_content(){
?>
'_customize-dropdown-category-' . $this->id,
'echo' => 0,
'show_option_none' => __( '— Select —','atomy' ),
'option_none_value' => '0',
'selected' => $this->value(),
)
);
$dropdown = str_replace( '