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-sidebar.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_Sidebar_Control extends WP_Customize_Control {

    /**
     * The type of customize control being rendered.
     */
    public $type = 'sidebar';

    /**
     * Displays the multiple select on the customize screen.
     */
    public function render_content() {

        if ( empty( $GLOBALS['wp_registered_sidebars'] ) )
            return;

        $select = '<select>';
            foreach ( $GLOBALS['wp_registered_sidebars'] as $sidebar ) {
                $selected = ($sidebar['id'] == $this->value()) ? 'selected="selected"' : '';
                $select .= '<option value="'.esc_attr($sidebar['id']).'" '.$selected.'>'.ucwords( $sidebar['name'] ).'</option>';
             }
        $select .= '</select>';

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

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


    }
}