remove_control('header_textcolor'); /* Header Section */ $wp_customize->add_panel( 'header_options', array( 'priority' => 1, 'capability' => 'edit_theme_options', 'title' => __('Theme Options Settings', 'awesome-beauty'), ) ); $wp_customize->add_section( 'header_front_data' , array( 'title' => __('Custom Header Settings', 'awesome-beauty'), 'panel' => 'header_options', 'priority' => 20, ) ); //Enable/Disable logo text $wp_customize->add_setting( 'awesome_beauty_option[mobile_enable_mail_phone]',array( 'default' => 1, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' )); $wp_customize->add_control( 'awesome_beauty_option[mobile_enable_mail_phone]', array( 'type' => 'checkbox', 'label' => __('Enable/Disabe Mobile & Email','awesome-beauty'), 'section' => 'header_front_data', ) ); $wp_customize->add_setting( 'awesome_beauty_option[header_info_phone_text]', array( 'default' => __('Contact Us:','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control('awesome_beauty_option[header_info_phone_text]', array( 'label' => __('Header Phone Contact Us Text', 'awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', )); $wp_customize->add_setting( 'awesome_beauty_option[header_info_phone]', array( 'default' => __('(2)245 23 68','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control('awesome_beauty_option[header_info_phone]', array( 'label' => __('Header Phone :', 'awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', )); $wp_customize->add_setting('awesome_beauty_option[header_info_mail_text]' , array( 'default' => __('Contact Us','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[header_info_mail_text]', array( 'label' => __('Header Mail US Text:', 'awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', )); $wp_customize->add_setting('awesome_beauty_option[header_info_mail]' , array( 'default' => __('asiathemes[at]gmail[dot]com','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[header_info_mail]', array( 'label' => __('Header Mail :', 'awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', )); //Show and hide Header Social Icons $wp_customize->add_setting( 'awesome_beauty_option[header_social_media_enabled]' , array( 'default' => 0, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[header_social_media_enabled]', array( 'label' => __('Show Social icons','awesome-beauty'), 'section' => 'header_front_data', 'type' => 'checkbox', ) ); // Facebook link $wp_customize->add_setting( 'awesome_beauty_option[social_media_facebook_link]', array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[social_media_facebook_link]', array( 'label' => __('Facebook URL','awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', ) ); $wp_customize->add_setting( 'awesome_beauty_option[facebook_media_enabled]',array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[facebook_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','awesome-beauty'), 'section' => 'header_front_data', ) ); //twitter link $wp_customize->add_setting( 'awesome_beauty_option[social_media_twitter_link]', array( 'default' => '#', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[social_media_twitter_link]', array( 'label' => __('Twitter URL','awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', ) ); $wp_customize->add_setting( 'awesome_beauty_option[twitter_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[twitter_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','awesome-beauty'), 'section' => 'header_front_data', ) ); //googlelink $wp_customize->add_setting( 'awesome_beauty_option[social_media_google_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[social_media_google_link]', array( 'label' => __('Google URL','awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', ) ); $wp_customize->add_setting( 'awesome_beauty_option[google_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[google_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','awesome-beauty'), 'section' => 'header_front_data', ) ); // Instagram $wp_customize->add_setting( 'awesome_beauty_option[social_media_instagram_link]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[social_media_instagram_link]', array( 'label' => __('Instagram URL','awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', ) ); $wp_customize->add_setting( 'awesome_beauty_option[instagram_media_enabled]' ,array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[instagram_media_enabled]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','awesome-beauty'), 'section' => 'header_front_data', ) ); // Login And Register $wp_customize->add_setting( 'awesome_beauty_option[header_login_url]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[header_login_url]', array( 'label' => __('LOgin Button URL','awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', ) ); $wp_customize->add_setting( 'awesome_beauty_option[header_register_url]' , array( 'default' => '#', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[header_register_url]', array( 'label' => __('Sign Up Button URL','awesome-beauty'), 'section' => 'header_front_data', 'type' => 'text', ) ); // Slider Setting Section $wp_customize->add_section( 'slider_section_settings', array( 'title' => __('Featured Slider Settings','awesome-beauty'), 'description' => '', 'panel' => 'header_options', 'priority' => 35, ) ); //Hide slider $wp_customize->add_setting( 'awesome_beauty_option[home_banner_enabled]', array( 'default' => 1, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[home_banner_enabled]', array( 'label' => __('Hide Home slider','awesome-beauty'), 'section' => 'slider_section_settings', 'type' => 'checkbox', ) ); //portfolio Image one setting $wp_customize->add_setting( 'awesome_beauty_option[slider_image_one]' , array( 'default' => get_template_directory_uri().'/images/slide/slide1.jpg', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'awesome_beauty_option[slider_image_one]', array( 'label' => __( 'Upload Slider Image One', 'awesome-beauty' ), 'section' => 'slider_section_settings', 'priority' => 150, ) ) ); $wp_customize->add_setting('awesome_beauty_option[slider_image_title_one]' , array( 'default' => __('awesome-beauty Responsive','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[slider_image_title_one]', array( 'label' => __('Slider Image Title one :', 'awesome-beauty'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 151, )); $wp_customize->add_setting('awesome_beauty_option[slider_image_description_one]' , array( 'default' => __('Duis autem vel eum iriure dolor in hendrerit in vulputate.','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[slider_image_description_one]', array( 'label' => __('Slider Image Description One:', 'awesome-beauty'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 152, )); //portfolio Image two setting $wp_customize->add_setting( 'awesome_beauty_option[slider_image_two]' , array( 'default' => get_template_directory_uri().'/images/slide/slide2.jpg', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'awesome_beauty_option[slider_image_two]', array( 'label' => __( 'Upload Slider Image Two', 'awesome-beauty' ), 'section' => 'slider_section_settings', 'priority' => 155, ) ) ); $wp_customize->add_setting('awesome_beauty_option[slider_image_title_two]' , array( 'default' => __('Awesome Layout','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[slider_image_title_two]', array( 'label' => __('Slider Image Title Two', 'awesome-beauty'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 156, )); $wp_customize->add_setting('awesome_beauty_option[slider_image_description_two]' , array( 'default' => __('Duis autem vel eum iriure dolor in hendrerit in vulputate.','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[slider_image_description_two]', array( 'label' => __('Slider Image two Description :', 'awesome-beauty'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 157, )); //portfolio Image three setting $wp_customize->add_setting( 'awesome_beauty_option[slider_image_three]' , array( 'default' => get_template_directory_uri().'/images/slide/slide3.jpg', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'awesome_beauty_option[slider_image_three]', array( 'label' => __( 'Upload Slider Image Three', 'awesome-beauty' ), 'section' => 'slider_section_settings', 'priority' => 160, ) ) ); $wp_customize->add_setting('awesome_beauty_option[slider_image_title_three]' , array( 'default' => __('awesome-beauty Responsive','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[slider_image_title_three]', array( 'label' => __('Slider Image Title Three', 'awesome-beauty'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 161, )); $wp_customize->add_setting('awesome_beauty_option[slider_image_description_three]' , array( 'default' => 'Duis autem vel eum iriure dolor in hendrerit in vulputate.', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[slider_image_description_three]', array( 'label' => __('Slider Image three Description', 'awesome-beauty'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 162, )); $wp_customize->add_setting( 'awesome_beauty_option[slider_button_text]', array( 'default' => __('More Details!','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[slider_button_text]',array( 'label' => __('Slider Button Text','awesome-beauty'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 163, ) ); $wp_customize->add_setting('awesome_beauty_option[slider_image_link]' , array( 'default' => '#', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[slider_image_link]', array( 'label' => __('Slider Button Link', 'awesome-beauty'), 'section' => 'slider_section_settings', 'type' => 'text', 'priority' => 164, )); $wp_customize->add_setting( 'awesome_beauty_option[slider_button_tab]' ,array( 'default' => 1, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[slider_button_tab]', array( 'type' => 'checkbox', 'label' => __('Open New tab/window','awesome-beauty'), 'section' => 'slider_section_settings', 'priority' => 165, ) ); class WP_slider_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>
add_setting( 'awesome_beauty_option[slider_pro]', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( new WP_slider_Customize_Control( $wp_customize, 'awesome_beauty_option[slider_pro]', array( 'label' => __('Discover awesome-beauty Pro','awesome-beauty'), 'section' => 'slider_section_settings', 'setting' => 'awesome_beauty_option[slider_pro]', 'priority' => 166, )) ); //Slider Animation duration $wp_customize->add_setting( 'awesome_beauty_option[slider_transition_delay]', array( 'default' => __('3000','awesome-beauty'), 'type' => 'option', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'awesome_beauty_option[slider_transition_delay]', array( 'type' => 'text', 'label' => __('Input slide Duration','awesome-beauty'), 'section' => 'slider_section_settings', 'priority' => 168, )); // Home Portfolio Section Setting $wp_customize->add_section( 'home_portfolio' , array( 'title' => __('Home Portfolio Settings', 'awesome-beauty'), 'panel' => 'header_options', 'priority' => 37, ) ); //Enable/Disable Portfolio Section $wp_customize->add_setting( 'awesome_beauty_option[enable_home_portfolio]',array( 'default' => 1, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' )); $wp_customize->add_control( 'awesome_beauty_option[enable_home_portfolio]', array( 'type' => 'checkbox', 'label' => __('Enable/Disabe Home Portfolio','awesome-beauty'), 'section' => 'home_portfolio', 'priority' => 100, ) ); $wp_customize->add_setting( 'awesome_beauty_option[portfolio_title_one]', array( 'default' => __('Recent Works','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control('awesome_beauty_option[portfolio_title_one]', array( 'label' => __('Portfolio Title One :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 140, )); //portfolio Image one setting $wp_customize->add_setting( 'awesome_beauty_option[upload_image_one]' , array( 'default' => get_template_directory_uri().'/images/gallery/1.jpg', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'awesome_beauty_option[upload_image_one]', array( 'label' => __( 'Upload Portfolio Image One', 'awesome-beauty' ), 'section' => 'home_portfolio', 'priority' => 150, ) ) ); $wp_customize->add_setting('awesome_beauty_option[portfolio_image_one_title]' , array( 'default' => __('awesome-beauty Responsive','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_image_one_title]', array( 'label' => __('Portfolio Image One Title :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 151, )); $wp_customize->add_setting('awesome_beauty_option[portfolio_image_one_description]' , array( 'default' => __('Duis autem vel eum iriure dolor in hendrerit in vulputate.','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_image_one_description]', array( 'label' => __('Portfolio Image One Description :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 152, )); $wp_customize->add_setting('awesome_beauty_option[portfolio_image_one_link]' , array( 'default' => '#', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_image_one_link]', array( 'label' => __('Portfolio Image One URL :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 153, )); $wp_customize->add_setting( 'awesome_beauty_option[portfolio_new_tab]' ,array( 'default' => 1, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_new_tab]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','awesome-beauty'), 'section' => 'home_portfolio', 'priority' => 154, ) ); //portfolio Image two setting $wp_customize->add_setting( 'awesome_beauty_option[upload_image_two]' , array( 'default' => get_template_directory_uri().'/images/gallery/2.jpg', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'awesome_beauty_option[upload_image_two]', array( 'label' => __( 'Upload Portfolio Image Two', 'awesome-beauty' ), 'section' => 'home_portfolio', 'priority' => 155, ) ) ); $wp_customize->add_setting('awesome_beauty_option[portfolio_image_two_title]' , array( 'default' => __('Awesome Layout','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_image_two_title]', array( 'label' => __('Portfolio Image Two Title :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 156, )); $wp_customize->add_setting('awesome_beauty_option[portfolio_image_two_description]' , array( 'default' => __('Duis autem vel eum iriure dolor in hendrerit in vulputate.','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_image_two_description]', array( 'label' => __('Portfolio Image two Description :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 157, )); $wp_customize->add_setting('awesome_beauty_option[portfolio_image_two_link]' , array( 'default' => '#', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_image_two_link]', array( 'label' => __('Portfolio Image Two URL :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 158, )); $wp_customize->add_setting( 'awesome_beauty_option[portfolio_two_new_tab]' ,array( 'default' => 1, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_two_new_tab]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','awesome-beauty'), 'section' => 'home_portfolio', 'priority' => 159, ) ); //portfolio Image three setting $wp_customize->add_setting( 'awesome_beauty_option[upload_image_three]' , array( 'default' => get_template_directory_uri().'/images/gallery/3.jpg', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'type' => 'option', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'awesome_beauty_option[upload_image_three]', array( 'label' => __( 'Upload Portfolio Image Three', 'awesome-beauty' ), 'section' => 'home_portfolio', 'priority' => 160, ) ) ); $wp_customize->add_setting('awesome_beauty_option[portfolio_image_three_title]' , array( 'default' => 'awesome-beauty Responsive', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_image_three_title]', array( 'label' => __('Portfolio Image Three Title :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 161, )); $wp_customize->add_setting('awesome_beauty_option[portfolio_image_three_description]' , array( 'default' => __('Duis autem vel eum iriure dolor in hendrerit in vulputate.','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_image_three_description]', array( 'label' => __('Portfolio Image three Description :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 162, )); $wp_customize->add_setting('awesome_beauty_option[portfolio_image_three_link]' , array( 'default' => '#', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_image_three_link]', array( 'label' => __('Portfolio Image Three URL :', 'awesome-beauty'), 'section' => 'home_portfolio', 'type' => 'text', 'priority' => 163, )); $wp_customize->add_setting( 'awesome_beauty_option[portfolio_three_new_tab]' ,array( 'default' => 1, 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', )); $wp_customize->add_control( 'awesome_beauty_option[portfolio_three_new_tab]', array( 'type' => 'checkbox', 'label' => __('Open Link New tab/window','awesome-beauty'), 'section' => 'home_portfolio', 'priority' => 164, ) ); class WP_portfolio_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>
add_setting( 'awesome_beauty_option[portfolio_pro]', array( //'default' => __('','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( new WP_portfolio_Customize_Control( $wp_customize, 'awesome_beauty_option[portfolio_pro]', array( 'label' => __('Discover awesome-beauty Pro','awesome-beauty'), 'section' => 'home_portfolio', 'setting' => 'awesome_beauty_option[portfolio_pro]', 'priority' => 165, )) ); // Home Blog Posts Section Setting $wp_customize->add_section( 'news_section_settings', array( 'title' => __('Home Latest Blog Posts Settings','awesome-beauty'), 'description' => '', 'panel' => 'header_options', 'priority' => 38, ) ); //Hide Index Service Section $wp_customize->add_setting( 'awesome_beauty_option[home_blog_enabled]', array( 'default' => 1, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'awesome_beauty_option[home_blog_enabled]', array( 'label' => __('Hide Home Blog Posts Section','awesome-beauty'), 'section' => 'news_section_settings', 'type' => 'checkbox', ) ); // add section to manage News $wp_customize->add_setting( 'awesome_beauty_option[blog_heading_title]', array( 'default' => __('Latest News','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[blog_heading_title]',array( 'label' => __('Latest Blog Posts Section Heading title','awesome-beauty'), 'section' => 'news_section_settings', 'type' => 'text',) ); //Select number of latest news on front page $wp_customize->add_setting( 'awesome_beauty_option[post_display_count]', array( 'type' => 'option', 'default' => __('4','awesome-beauty'), 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'awesome_beauty_option[post_display_count]', array( 'type' => 'select', 'label' => __('Select Number of Post','awesome-beauty'), 'section' => 'news_section_settings', 'choices' => array('2'=>__('2', 'awesome-beauty'), '4'=>__('4', 'awesome-beauty'), '6' => __('6','awesome-beauty'), '8' => __('8','awesome-beauty'),'10'=> __('10','awesome-beauty'), '12'=> __('12','awesome-beauty'),'14'=> __('14','awesome-beauty'), '16' =>__('16','awesome-beauty')), )); function awesome_beauty_prefix_sanitize_layout( $news ) { if ( ! in_array( $news, array( 1,'category_news' ) ) ) return $news; } //Blog post Slider Setting Section $wp_customize->add_section( 'post_slider_section_settings', array( 'title' => __('Home Blog Post Slider Settings','awesome-beauty'), 'description' => '', 'panel' => 'header_options', 'priority' => 39, ) ); //Hide slider $wp_customize->add_setting( 'awesome_beauty_option[post_slider_enabled]', array( 'default' => 1, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option', ) ); $wp_customize->add_control( 'awesome_beauty_option[post_slider_enabled]', array( 'label' => __('Hide Blog slider','awesome-beauty'), 'section' => 'post_slider_section_settings', 'type' => 'checkbox', ) ); //Select number of latest news on front page $wp_customize->add_setting( 'awesome_beauty_option[home_blog_slider_post_count]', array( 'type' => 'option', 'default' => 4, 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'awesome_beauty_option[home_blog_slider_post_count]', array( 'type' => 'select', 'label' => __('Select Number of Post','awesome-beauty'), 'section' => 'post_slider_section_settings', 'choices' => array('2'=>__('2', 'awesome-beauty'), '4'=>__('4', 'awesome-beauty'), '6' => __('6','awesome-beauty'), '8' => __('8','awesome-beauty'),'10'=> __('10','awesome-beauty'), '12'=> __('12','awesome-beauty'),'14'=> __('14','awesome-beauty'), '16' =>__('16','awesome-beauty')), )); function awesome_beauty_prefix_sanitize_layout_blog( $news ) { if ( ! in_array( $news, array( 1,'category_news' ) ) ) return $news; } // Footer Copyright Option Settings $wp_customize->add_section( 'footer_copyright_setting' , array( 'title' => __('Footer Customization', 'awesome-beauty'), 'panel' => 'header_options', 'priority' => 40, ) ); $wp_customize->add_setting( 'awesome_beauty_option[footer_customization_text]' , array( 'default' => __('@ 2017 Awesome Beauty Wordpress Theme','awesome-beauty'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type'=> 'option', )); $wp_customize->add_control( 'awesome_beauty_option[footer_customization_text]', array( 'label' => __('Footer Customization Text', 'awesome-beauty'), 'section' => 'footer_copyright_setting', 'type' => 'text', )); $wp_customize->add_section( 'awesome-beauty_pro' , array( 'title' => __( 'Upgrade to awesome-beauty Premium', 'awesome-beauty' ), 'priority' => 999, 'panel'=>'header_options', ) ); $wp_customize->add_setting( 'awesome-beauty_pro', array( 'default' => null, 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new More_awesome_beauty_Control( $wp_customize, 'awesome-beauty_pro', array( 'label' => __( 'awesome-beauty Premium', 'awesome-beauty' ), 'section' => 'awesome-beauty_pro', 'settings' => 'awesome-beauty_pro', 'priority' => 1, ) ) ); } /* Custom Control Class */ if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'awesome_beauty_Customize_Misc_Control' ) ) : class awesome_beauty_Customize_Misc_Control extends WP_Customize_Control { public $settings = 'blogname'; public $description = ''; public function render_content() { switch ( $this->type ) { default: case 'heading': echo '' . esc_html( $this->label ) . ''; break; case 'line' : echo '
'; break; } } } endif; if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'More_awesome_beauty_Control' ) ) : class More_awesome_beauty_Control extends WP_Customize_Control { /** * Render the content on the theme customizer page */ public function render_content() { ?>