id ); $ample_shop_dropdown_categories = wp_dropdown_categories( array( 'name' => $ample_shop_customizer_name, 'echo' => 0, 'show_option_none' => esc_html__('Select','ample-shop'), 'option_none_value' => '0', 'selected' => $this->value(), ) ); $ample_shop_dropdown_final = str_replace( 'get_link(), $ample_shop_dropdown_categories ); printf( '', esc_html( $this->label ), $ample_shop_dropdown_final ); } } endif; if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Ample_Shop_Customize_Message_Control' )): /** * @package Ample Themes * @subpackage ample shop * @since 1.0.0 * */ class Ample_Shop_Customize_Message_Control extends WP_Customize_Control { /** * Declare the control type. * @access public * @var string */ public $type = 'message'; /** * Function to render the content on the theme customizer page * * @access public * @since 1.0.0 * * @param null * @return void * */ public function render_content() { if ( empty( $this->description ) ) { return; } $allowed_html = array( 'a' => array( 'href' => array(), 'title' => array(), 'data-panel' => array(), 'data-section' => array(), 'class' => array(), 'target' => array(), ), 'div' => array( 'class' => array(), ), 'hr' => array(), 'h2' => array(), 'br' => array(), 'em' => array(), 'strong' => array() ); ?>
description , $allowed_html ) ?>
id ); $query_args = array( 'name' => $ample_shop_customizer_name, 'echo' => 0, 'show_option_none' => esc_html__('Select','ample-shop'), 'option_none_value' => '0', 'selected' => $this->value(), ); if( ample_shop_is_woocommerce_active() ){ $query_args['taxonomy']='product_cat'; } $ample_shop_dropdown_categories = wp_dropdown_categories( $query_args ); $ample_shop_dropdown_final = str_replace( 'get_link(), $ample_shop_dropdown_categories ); printf( '', esc_html( $this->label ), $ample_shop_dropdown_final ); } } endif;