'_customize-dropdown-categories-' . $this->id, 'echo' => 0, 'show_option_none' => __( '— Select —', 'adviso' ), 'option_none_value' => '0', 'selected' => $this->value(), ) ); $dropdown = str_replace( 'get_link(), $dropdown ); printf( '', esc_html( $this->label ), esc_html( $dropdown ) ); } } } if ( class_exists('WP_Customize_Control') && class_exists('woocommerce') ) { class WP_Customize_Product_Category_Control extends WP_Customize_Control { /** * Render the control's content. */ public function render_content() { $dropdown = wp_dropdown_categories( array( 'name' => '_customize-dropdown-categories-' . $this->id, 'echo' => 0, 'show_option_none' => __( '— Select —', 'adviso' ), 'option_none_value' => '0', 'taxonomy' => 'product_cat', 'selected' => $this->value(), ) ); $dropdown = str_replace( 'get_link(), $dropdown ); printf( '', esc_html( $this->label ), esc_html( $dropdown ) ); } } } if (class_exists('WP_Customize_Control')) { class Adviso_WP_Customize_Upgrade_Control extends WP_Customize_Control { /** * Render the control's content. */ public function render_content() { printf( '', esc_html( $this->label ), esc_html( $this->description ) ); } } class Adviso_Plus_Upsell_Control extends WP_Customize_Control { /** * Render the control's content. */ public function render_content() { ?> description; ?> label ); ?> description){ ?> description); ?> id; foreach ($this->choices as $key=>$value) { ?> enable_disable = $args['enable_disable']; parent::__construct( $manager, $id, $args ); } public function render_content(){ ?> label ); ?> description){ ?> description); ?> value() == 'enable') ? 'switch-enable' : ''; $enable_disable = $this->enable_disable; ?>
link(); ?> type="hidden" value="value()); ?>"/> title, ENT_QUOTES, get_bloginfo( 'charset' ) ); $array['content'] = $this->get_content(); $array['active'] = $this->active(); $array['instanceNumber'] = $this->instance_number; return $array; } } } /** * * Extending the WP_Customize_Section Class for nested Panels and Sections * **/ if ( class_exists( 'WP_Customize_Section' ) ) { class Adviso_WP_Customize_Section extends WP_Customize_Section { public $section; public $type = 'adviso_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; } } } if ( class_exists('WP_Customize_Control') ) { class Adviso_Font_Size_Control extends WP_Customize_Control { public $type = 'font-size'; public function render_content() { ?>
label ) ) { ?> label ); ?> description ) ) { ?> description ); ?>
choices as $key => $value ) { ?>
label ) ) { ?> label ); ?> description ) ) { ?> description ); ?>
choices as $choice ) { ?>
* @license http://www.gnu.org/licenses/gpl-2.0.html * @link https://github.com/maddisondesigns */ if (class_exists( 'WP_Customize_Control' ) ) { class Adviso_Sorter_Custom_Control extends WP_Customize_Control { /** * The type of control being rendered */ public $type = 'sorter'; /** * Render the control in the customizer */ public function render_content() { ?>
label ) ) { ?> label ); ?> description ) ) { ?> description ); ?> link(); ?> />
  • Featured Posts
  • Featured Posts - Carousel
  • Featured Categories
  • Featured Products
  • Featured Products - Carousel
label ) ) { ?> label ); ?> description ) ) { ?> description ); ?> choices as $key => $value ) { ?>