HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/themes/new-blog/inc/dropdown-category.php
<?php
/**
 * This template to show dropdown category list
 *
 * @package Postmagthemes
 * @subpackage new_blog
 */
if ( ! class_exists( 'New_Blog_My_Dropdown_Category_Control' ) ) :
class New_Blog_My_Dropdown_Category_Control extends WP_Customize_Control {

public $type = 'dropdown-category';

protected $dropdown_args = false;

protected function render_content() {
    ?><label><?php

    if ( ! empty( $this->label ) ) :
        ?><span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span><?php
    endif;

    if ( ! empty( $this->description ) ) :
        ?><span class="description customize-control-description"><?php echo esc_html($this->description); ?></span><?php
    endif;

    $dropdown_args = wp_parse_args( $this->dropdown_args, array(
        'taxonomy'          => 'category',
        'show_option_all'    => __('Among All category ','new-blog'),
        'orderby'            => 'name',
        'order'             => 'ASC',
        'show_count'        => 1,
        'hide_empty'        => 1,
        'echo'               => 1,
        'child_of'          => 0,
        'exclude'           => '',
        'hierarchical'      => 1,
        'depth'             => 0,
        'tab_index'         => 0,
        'hide_if_empty'     => false,
        'option_none_value' => 0,
        'value_field'       => 'name',
    ) );

    $dropdown_args['echo'] = false;

    $dropdown = wp_dropdown_categories( $dropdown_args );
    $dropdown = str_replace( '<select', '<select ' . $this->get_link(), $dropdown );
    echo ($dropdown);

    ?></label><?php

}
}
endif;