/**
  * Adds a new section to use custom controls in the WordPress customiser
  *
  * @param  Obj $wp_manager - WP Manager
  *
  * @return Void
  */
 private function custom_sections($wp_manager)
 {
     $wp_manager->add_section('customiser_demo_custom_section', array('title' => 'Custom Controls Demo', 'priority' => 36));
     // Add A Date Picker
     require_once dirname(__FILE__) . '/date/date-picker-custom-control.php';
     $wp_manager->add_setting('date_picker_setting', array('default' => ''));
     $wp_manager->add_control(new Date_Picker_Custom_Control($wp_manager, 'date_picker_setting', array('label' => 'Date Picker Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'date_picker_setting', 'priority' => 1)));
     // Add A Layout Picker
     require_once dirname(__FILE__) . '/layout/layout-picker-custom-control.php';
     $wp_manager->add_setting('layout_picker_setting', array('default' => ''));
     $wp_manager->add_control(new Layout_Picker_Custom_Control($wp_manager, 'layout_picker_setting', array('label' => 'Layout Picker Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'layout_picker_setting', 'priority' => 2)));
     // Add a category dropdown control
     require_once dirname(__FILE__) . '/select/category-dropdown-custom-control.php';
     $wp_manager->add_setting('category_dropdown_setting', array('default' => ''));
     $wp_manager->add_control(new Category_Dropdown_Custom_Control($wp_manager, 'category_dropdown_setting', array('label' => 'Category Dropdown Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'category_dropdown_setting', 'priority' => 3)));
     // Add a menu dropdown control
     require_once dirname(__FILE__) . '/select/menu-dropdown-custom-control.php';
     $wp_manager->add_setting('menu_dropdown_setting', array('default' => ''));
     $wp_manager->add_control(new Menu_Dropdown_Custom_Control($wp_manager, 'menu_dropdown_setting', array('label' => 'Menu Dropdown Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'menu_dropdown_setting', 'priority' => 4)));
     // Add a post dropdown control
     require_once dirname(__FILE__) . '/select/post-dropdown-custom-control.php';
     $wp_manager->add_setting('post_dropdown_setting', array('default' => ''));
     $wp_manager->add_control(new Post_Dropdown_Custom_Control($wp_manager, 'post_dropdown_setting', array('label' => 'Post Dropdown Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'post_dropdown_setting', 'priority' => 5)));
     // Add a post type dropdown control
     require_once dirname(__FILE__) . '/select/post-type-dropdown-custom-control.php';
     $wp_manager->add_setting('post_type_dropdown_setting', array('default' => ''));
     $wp_manager->add_control(new Post_Type_Dropdown_Custom_Control($wp_manager, 'post_type_dropdown_setting', array('label' => 'Post Type Dropdown Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'post_type_dropdown_setting', 'priority' => 6)));
     // Add a tags dropdown control
     require_once dirname(__FILE__) . '/select/tags-dropdown-custom-control.php';
     $wp_manager->add_setting('tags_dropdown_setting', array('default' => ''));
     $wp_manager->add_control(new Tags_Dropdown_Custom_Control($wp_manager, 'tags_dropdown_setting', array('label' => 'Tags Dropdown Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'tags_dropdown_setting', 'priority' => 7)));
     // Add a taxonomy dropdown control
     require_once dirname(__FILE__) . '/select/taxonomy-dropdown-custom-control.php';
     $wp_manager->add_setting('taxonomy_dropdown_setting', array('default' => ''));
     $wp_manager->add_control(new Taxonomy_Dropdown_Custom_Control($wp_manager, 'taxonomy_dropdown_setting', array('label' => 'Taxonomy Dropdown Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'taxonomy_dropdown_setting', 'priority' => 8)));
     // Add a user dropdown control
     require_once dirname(__FILE__) . '/select/user-dropdown-custom-control.php';
     $wp_manager->add_setting('user_dropdown_setting', array('default' => ''));
     $wp_manager->add_control(new User_Dropdown_Custom_Control($wp_manager, 'user_dropdown_setting', array('label' => 'User Dropdown Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'user_dropdown_setting', 'priority' => 9)));
     // Add a textarea control
     require_once dirname(__FILE__) . '/text/textarea-custom-control.php';
     $wp_manager->add_setting('textarea_text_setting', array('default' => ''));
     $wp_manager->add_control(new Textarea_Custom_Control($wp_manager, 'textarea_text_setting', array('label' => 'Textarea Text Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'textarea_text_setting', 'priority' => 10)));
     // Add a text editor control
     require_once dirname(__FILE__) . '/text/text-editor-custom-control.php';
     $wp_manager->add_setting('text_editor_setting', array('default' => ''));
     $wp_manager->add_control(new Text_Editor_Custom_Control($wp_manager, 'text_editor_setting', array('label' => 'Text Editor Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'text_editor_setting', 'priority' => 11)));
     // Add a Google Font control
     require_once dirname(__FILE__) . '/select/google-font-dropdown-custom-control.php';
     $wp_manager->add_setting('google_font_setting', array('default' => ''));
     $wp_manager->add_control(new Google_Font_Dropdown_Custom_Control($wp_manager, 'google_font_setting', array('label' => 'Google Font Setting', 'section' => 'customiser_demo_custom_section', 'settings' => 'google_font_setting', 'priority' => 12)));
 }
 /**
  * A section to show how you use the default customizer controls in WordPress
  *
  * @param  Obj $wp_manager - WP Manager
  *
  * @return Void
  */
 private function demo_section($wp_manager)
 {
     $wp_manager->add_section('featured_content_section', array('title' => 'Featured Content Section', 'priority' => 35));
     // Dropdown pages control
     $wp_manager->add_setting('featured_content', array('default' => '1'));
     $wp_manager->add_control('featured_content', array('label' => 'Featured Content', 'section' => 'featured_content_section', 'type' => 'dropdown-pages', 'priority' => 5));
     $wp_manager->add_section('homepage_section', array('title' => 'Home Page Content Section', 'priority' => 35));
     // Dropdown pages control
     $wp_manager->add_setting('work_page_dropdown', array('default' => '1'));
     $wp_manager->add_control('work_page_dropdown', array('label' => 'Work Section Page', 'section' => 'homepage_section', 'type' => 'dropdown-pages', 'priority' => 5));
     // Dropdown pages control
     $wp_manager->add_setting('about_page_dropdown', array('default' => '1'));
     $wp_manager->add_control('about_page_dropdown', array('label' => 'About Section Page', 'section' => 'homepage_section', 'type' => 'dropdown-pages', 'priority' => 5));
 }