choices ) ) return; $name = '_customize-radio-' . $this->id; ?> label ); ?> description ); ?> cats = get_categories($options); parent::__construct( $manager, $id, $args ); } /** * Render the content of the category dropdown * * @return HTML */ public function render_content() { if(!empty($this->cats)) { ?> '-1')); $this->posts = get_posts($postargs); parent::__construct( $manager, $id, $args ); } /** * Render the content on the theme customizer page */ public function render_content() { if(!empty($this->posts)) { ?> '_customize-dropdown-pages-' . $this->id, 'echo' => 0, 'show_option_none' => __( '— Select Pages —', 'idolcorp' ), 'option_none_value' => '', 'selected' => $this->value(), ) ); // Hackily add in the data link parameter. $dropdown = str_replace( 'get_link(), $dropdown ); printf( '', $this->label, $this->description, $dropdown ); } } /** * Theme info */ class themidol_custom_info_section extends WP_Customize_Control { public $type = 'themidol_custom_info_section'; public $label = ''; public function render_content() { ?> get( 'Version' ); /** * Add custom css for admin section */ wp_enqueue_script( 'themeidol_customizer-custom-admin', get_template_directory_uri() . '/themeidol-customizer/js/admin-custom-scripts.js', array( 'jquery' ), $version, true ); wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/themeidol-customizer/css/admin-style.css', false, $version ); wp_enqueue_style( 'custom_wp_admin_css' ); } public function render_content() { $choises_options = $this->choices; $s_count = 0; ?> menus = wp_get_nav_menus($options); parent::__construct( $manager, $id, $args ); } /** * Render the content on the theme customizer page */ public function render_content() { if(!empty($this->menus)) { ?>