* @copyright Copyright (C) 2015 prestabrain.com. All Rights Reserved. * @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html * * @website http://www.prestabrain.com * @support http://www.prestabrain.com/support/forum.html */ /** * Wpopal Category Drop Down List Class * modified dropdown-pages from wp-includes/class-wp-customize-control.php * * @since Wpopal v1.0 */ if( class_exists("WP_Customize_Control") ){ class PBR_Sidebar_DropDown extends WP_Customize_Control{ public function render_content(){ global $wp_registered_sidebars; $output = array(); foreach( $wp_registered_sidebars as $sidebar ){ $selected = ($this->value() == $sidebar['id'])?' selected="selected" ': ''; $output[] = ''; } $dropdown = ''; $dropdown = str_replace('get_link(), $dropdown ); printf( '', $this->label, $dropdown ); } } /// class PBR_Layout_DropDown extends WP_Customize_Control{ public $type="PBR_Layout"; public function render_content(){ $layouts = array( 'fullwidth' => __('Fullwidth', 'basee'), 'leftmain' => __('Left - Main Sidebar', 'basee'), 'mainright' => __('Main - Right Sidebar', 'basee'), 'leftmainright' => __('Left - Main - Right Sidebar', 'basee'), ); printf( '