MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/rit-core/inc/customize/classes/customize-category.php
<?php
/**
 * RIT Core Plugin
 * @package     RIT Core
 * @version     0.1
 * @author      CleverSoft
 * @link        http://cleversoft.co
 * @copyright   Copyright (c) 2015 CleverSoft
 * @license     GPL v2
 */

class WP_Customize_Category_Control extends WP_Customize_Control
{
    public $type = 'category';
    /**
     * Render the control's content.
     *
     * @since 3.4.0
     */
    public function render_content()
    {
        $dropdown = wp_dropdown_categories(
            array(
                'name' => '_customize-dropdown-categories-' . $this->id,
                'echo' => 0,
                'show_option_none' => esc_html__('&mdash; Select &mdash;', RIT_TEXT_DOMAIN),
                'option_none_value' => '0',
                'selected' => $this->value(),
            )
        );

        // Hackily add in the data link parameter.
        $dropdown = str_replace('<select', '<select ' . $this->get_link(), $dropdown);

        printf(
            '<label class="customize-control-select"><span class="customize-control-title">%s</span> %s</label>',
            $this->label,
            $dropdown
        );
    }
}