id;; $supernews_dropdown_categories = wp_dropdown_categories( array( 'name' => $supernews_customizer_name, 'echo' => 0, 'show_option_none' =>__('Select','supernews'), 'option_none_value' => '0', 'selected' => $this->value(), ) ); $supernews_dropdown_final = str_replace( 'get_link(), $supernews_dropdown_categories ); printf( '', $this->label, $supernews_dropdown_final ); } } endif; if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Supernews_Customize_Post_Dropdown_Control' )): /** * Custom Control for post dropdown * @package Acme Themes * @subpackage SuperNews * @since 1.0.0 * */ class Supernews_Customize_Post_Dropdown_Control extends WP_Customize_Control { /** * Declare the control type. * * @access public * @var string */ public $type = 'post_dropdown'; /** * Function to render the content on the theme customizer page * * @access public * @since 1.0.0 * * @param null * @return void * */ public function render_content() { $supernews_customizer_post_args = array( 'posts_per_page' => 100, ); $supernews_posts = get_posts( $supernews_customizer_post_args ); if(!empty($supernews_posts)) { ?> description ) ) { return; } $allowed_html = array( 'a' => array( 'href' => array(), 'title' => array(), 'data-section' => array(), 'class' => array(), 'target' => array(), ), 'hr' => array(), 'br' => array(), 'em' => array(), 'strong' => array(), ); ?>
description , $allowed_html ) ?>