taxonomy = esc_attr( $taxonomy ); parent::__construct( $manager, $id, $args ); } /** * Render content. * * @since Kids Education 0.1 */ public function render_content() { $tax_args = array( 'hierarchical' => 0, 'taxonomy' => $this->taxonomy, ); $taxonomies = get_categories( $tax_args ); ?>

taxonomy = esc_attr( $taxonomy ); parent::__construct( $manager, $id, $args ); } /** * Render content. * * @since Kids Education 0.1 */ public function render_content() { $tax_args = array( 'hierarchical' => 0, 'taxonomy' => $this->taxonomy, ); $taxonomies = get_categories( $tax_args ); ?> '. esc_html__( 'Hold down the Ctrl (windows) / Command (Mac) button to select multiple options.', 'kids-education' ) . '

'; } } //Custom control for any note, use label as output description class kids_education_Note_Control extends WP_Customize_Control { public $type = 'description'; public function render_content() { echo '

' . esc_html( $this->label ) . '

'; } } if ( class_exists( 'TP_Education' ) ) : /** * Customize Control for Event Taxonomy Select. * * @since Kids Education 0.1 * * @see WP_Customize_Control */ class kids_education_Dropdown_Team_Taxonomies_Control extends WP_Customize_Control { /** * Control type. * * @access public * @var string */ public $type = 'dropdown-taxonomies'; /** * Taxonomy. * * @access public * @var string */ public $taxonomy = ''; /** * Constructor. * * @since Kids Education 0.1 * * @param WP_Customize_Manager $manager Customizer bootstrap instance. * @param string $id Control ID. * @param array $args Optional. Arguments to override class property defaults. */ public function __construct( $manager, $id, $args = array() ) { $taxonomy = 'tp-team-category'; if ( isset( $args['taxonomy'] ) ) { $taxonomy_exist = taxonomy_exists( esc_attr( $args['taxonomy'] ) ); if ( true === $taxonomy_exist ) { $taxonomy = esc_attr( $args['taxonomy'] ); } } $args['taxonomy'] = $taxonomy; $this->taxonomy = esc_attr( $taxonomy ); parent::__construct( $manager, $id, $args ); } /** * Render content. * * @since Kids Education 0.1 */ public function render_content() { $tax_args = array( 'hierarchical' => 0, 'taxonomy' => $this->taxonomy, ); $taxonomies = get_categories( $tax_args ); ?> '. esc_html__( 'Hold down the Ctrl (windows) / Command (Mac) button to select multiple options.', 'kids-education' ) . '

'; } } endif;