add_panel( 'blaize_header_panel', array( 'title' => esc_html__( 'Header Settings', 'blaize' ), 'priority' => 4, ) ); /** Top Header Section **/ $wp_customize->add_section( 'blaize_top_header_section' , array( 'title' => esc_html__( 'Top Header Section', 'blaize' ), 'panel' => 'blaize_header_panel', ) ); /** Display Top Header **/ $wp_customize->add_setting( 'blaize_display_top_header', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_display_top_header', array( 'type' => 'checkbox', 'section' => 'blaize_top_header_section', 'label' => esc_html__('Display Top Header', 'blaize'), 'description' => esc_html__( 'Check to display the top header section.', 'blaize' ), ) ); /** Top Left Header **/ $wp_customize->add_setting( 'blaize_top_left_header', array( 'default' => '', 'sanitize_callback' => 'blaize_sanitize_nohtml' ) ); $wp_customize->add_control( new Blaize_Title( $wp_customize, 'blaize_top_left_header', array( 'label' => esc_html__('Top Left Header', 'blaize'), 'type' => 'blaize-title', 'section' => 'blaize_top_header_section', 'settings' => 'blaize_top_left_header', ) ) ); /** Email Id **/ $wp_customize->add_setting( 'blaize_email_id', array( 'default' => 'info@example.com', 'sanitize_callback' => 'blaize_sanitize_email' ) ); $wp_customize->add_control( 'blaize_email_id', array( 'type' => 'text', 'section' => 'blaize_top_header_section', 'label' => esc_html__('Email ID', 'blaize'), 'description' => esc_html__( 'Set the email id.', 'blaize' ), ) ); /** Phone Number **/ $wp_customize->add_setting( 'blaize_phone_no', array( 'default' => '+987654321', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_phone_no', array( 'type' => 'text', 'section' => 'blaize_top_header_section', 'label' => esc_html__('Phone Number', 'blaize'), 'description' => esc_html__( 'Set the Phone Number.', 'blaize' ), ) ); /** Top Right Header **/ $wp_customize->add_setting( 'blaize_top_right_header', array( 'default' => '', 'sanitize_callback' => 'blaize_sanitize_nohtml' ) ); $wp_customize->add_control( new Blaize_Title( $wp_customize, 'blaize_top_right_header', array( 'label' => esc_html__('Top Right Header', 'blaize'), 'type' => 'blaize-title', 'section' => 'blaize_top_header_section', 'settings' => 'blaize_top_right_header', ) ) ); /** Select Menu **/ $wp_customize->add_setting( 'blaize_top_header_menu', array( 'default' => '0', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Blaize_Menu_Control( $wp_customize, 'blaize_top_header_menu', array( 'label' => esc_html__('Top Header Menu', 'blaize'), 'type' => 'dropdown-menus', 'section' => 'blaize_top_header_section', 'settings' => 'blaize_top_header_menu', ) ) ); /** Main Header Section **/ $wp_customize->remove_section( 'title_tagline' ); $wp_customize->add_section( 'title_tagline', array( 'title'=>__('Main Header Section', 'blaize'), 'panel' => 'blaize_header_panel' ) ); /** Display Search **/ $wp_customize->add_setting( 'blaize_display_search', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_display_search', array( 'type' => 'checkbox', 'section' => 'title_tagline', 'label' => esc_html__('Display Search', 'blaize'), 'description' => esc_html__( 'Check to search in header section.', 'blaize' ), ) ); /** * * Home Page Panel * **/ $wp_customize->add_panel( 'blaize_home_panel', array( 'title' => esc_html__( 'Frontpage Settings', 'blaize' ), 'priority' => 6, 'description' => esc_html__( 'Configure the homepage sections', 'blaize' ) ) ); /** Slider Section **/ $wp_customize->add_section( 'blaize_slider_section' , array( 'title' => esc_html__( 'Slider Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Enable Section **/ $wp_customize->add_setting( 'blaize_enable_slider_section', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_enable_slider_section', array( 'type' => 'checkbox', 'section' => 'blaize_slider_section', 'label' => esc_html__('Enable Section', 'blaize'), 'description' => esc_html__( 'Check to Enable the section.', 'blaize' ), ) ); /** Slider Category **/ $wp_customize->add_setting( 'blaize_slider_category', array( 'default' => 0, 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( new Blaize_Category_Control( $wp_customize, 'blaize_slider_category', array( 'label' => esc_html__('Slider Category', 'blaize'), 'description' => esc_html__('Select a Category for the slider.', 'blaize'), 'type' => 'dropdown-category', 'section' => 'blaize_slider_section', 'settings' => 'blaize_slider_category', ) ) ); /** Counter Number **/ $wp_customize->add_setting( 'blaize_slider_caption_length', array( 'sanitize_callback' => 'blaize_sanitize_number_absint', 'default' => 200 ) ); $wp_customize->add_control( 'blaize_slider_caption_length', array( 'type' => 'number', 'section' => 'blaize_slider_section', 'label' => esc_html__( 'Caption Text Length (Characters)', 'blaize' ), 'description' => esc_html__( 'Set the Slider Caption Text Length.', 'blaize' ), ) ); /** Slider Readmore Text **/ $wp_customize->add_setting( 'blaize_slider_readmore_text', array( 'default' => esc_html('Readmore', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_slider_readmore_text', array( 'type' => 'text', 'section' => 'blaize_slider_section', 'label' => esc_html__('Readmore', 'blaize'), 'description' => esc_html__( 'Set the Readmore Text for Slider Post.', 'blaize' ), ) ); /** Auto Slide **/ $wp_customize->add_setting( 'blaize_slider_auto_slide', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_slider_auto_slide', array( 'type' => 'checkbox', 'section' => 'blaize_slider_section', 'label' => esc_html__('Auto Slide', 'blaize'), 'description' => esc_html__( 'Set slider to automode.', 'blaize' ), ) ); /** Service Section **/ $wp_customize->add_section( 'blaize_service_section' , array( 'title' => esc_html__( 'Service Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Enable Section **/ $wp_customize->add_setting( 'blaize_enable_service_section', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_enable_service_section', array( 'type' => 'checkbox', 'section' => 'blaize_service_section', 'label' => esc_html__('Enable Section', 'blaize'), 'description' => esc_html__( 'Check to Enable the section.', 'blaize' ), ) ); /** Service Title **/ $wp_customize->add_setting( 'blaize_service_title', array( 'default' => esc_html__('Service', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_service_title', array( 'type' => 'text', 'section' => 'blaize_service_section', 'label' => esc_html__('Service Title', 'blaize'), 'description' => esc_html__( 'Set Section Title.', 'blaize' ), ) ); /** Service Subtitle **/ $wp_customize->add_setting( 'blaize_service_desc_text', array( 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus, placeat saepe quasi magnam totam exercitationem.', 'blaize'), 'sanitize_callback' => 'blaize_sanitize_nohtml' ) ); $wp_customize->add_control( 'blaize_service_desc_text', array( 'type' => 'textarea', 'section' => 'blaize_service_section', 'label' => esc_html__('Service Subtitle', 'blaize'), 'description' => esc_html__( 'Set Section Description Text.', 'blaize' ), ) ); /** Services **/ $wp_customize->add_setting( 'blaize_service', array( 'sanitize_callback' => 'blaize_sanitize_repeater', 'default' => json_encode( array( array( 'service_icon' => 'desktop' , 'service_title' => esc_html__( 'Campaign', 'blaize' ), 'service_description' => esc_html__( 'There are many variations of passag Lorem Ipsum available, but the majority have sfered alteration in some form.', 'blaize' ), ), array( 'service_icon' => 'briefcase' , 'service_title' => esc_html__( 'Our Mission', 'blaize' ), 'service_description' => esc_html__( 'There are many variations of passag Lorem Ipsum available, but the majority have sfered alteration in some form.', 'blaize' ), ), array( 'service_icon' => 'clock' , 'service_title' => esc_html__( 'Election', 'blaize' ), 'service_description' => esc_html__( 'There are many variations of passag Lorem Ipsum available, but the majority have sfered alteration in some form.', 'blaize' ), ), ) ) ) ); $wp_customize->add_control( new Blaize_Repeater_Controler( $wp_customize, 'blaize_service', array( 'label' => esc_html__('Manage Services Section','blaize'), 'section' => 'blaize_service_section', 'settings' => 'blaize_service', 'box_label' => esc_html__('Our Services Section','blaize'), 'box_add_control' => esc_html__('Add Service','blaize'), ), array ( 'service_icon' => array( 'type' => 'icon', 'label' => esc_html__( 'Select Service Icon', 'blaize' ), 'default' => 'desktop', 'class' => 'un-bottom-block-cat1' ), 'service_title' => array( 'type' => 'text', 'label' => esc_html__( 'Service Title', 'blaize' ), 'default' => esc_html__( 'Service 1', 'blaize' ), ), 'service_description' => array( 'type' => 'textarea', 'label' => esc_html__( 'Service Description', 'blaize' ), 'default' => esc_html__( 'Service Description Text', 'blaize' ), ) ) )); /** About Section **/ $wp_customize->add_section( 'blaize_about_section' , array( 'title' => esc_html__( 'About Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Enable Section **/ $wp_customize->add_setting( 'blaize_enable_aboutus_section', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_enable_aboutus_section', array( 'type' => 'checkbox', 'section' => 'blaize_about_section', 'label' => esc_html__('Enable Section', 'blaize'), 'description' => esc_html__( 'Check to Enable the section.', 'blaize' ), ) ); /** Section Title **/ $wp_customize->add_setting( 'blaize_about_title', array( 'default' => esc_html__('Who We Are', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_about_title', array( 'type' => 'text', 'section' => 'blaize_about_section', 'label' => esc_html__('About Us Title', 'blaize'), 'description' => esc_html__( 'Set Section Title.', 'blaize' ), ) ); /** Section Subtitle **/ $wp_customize->add_setting( 'blaize_about_desc_text', array( 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus, placeat saepe quasi magnam totam exercitationem.', 'blaize'), 'sanitize_callback' => 'blaize_sanitize_nohtml' ) ); $wp_customize->add_control( 'blaize_about_desc_text', array( 'type' => 'textarea', 'section' => 'blaize_about_section', 'label' => esc_html__('Service Subtitle', 'blaize'), 'description' => esc_html__( 'Set Section Description Text.', 'blaize' ), ) ); /** About Page **/ $wp_customize->add_setting('blaize_about_page', array( 'default' => 0, 'sanitize_callback' => 'blaize_sanitize_dropdown_pages' )); $wp_customize->add_control('blaize_about_page', array( 'label' => __('About Page', 'blaize'), 'section' => 'blaize_about_section', 'type' => 'dropdown-pages', 'settings' => 'blaize_about_page', )); /** Readmore Text **/ $wp_customize->add_setting( 'blaize_about_readmore_text', array( 'default' => esc_html__('Read More', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_about_readmore_text', array( 'type' => 'text', 'section' => 'blaize_about_section', 'label' => esc_html__('Readmore Text', 'blaize'), 'description' => esc_html__( 'Set Read More Text.', 'blaize' ), ) ); /** Readmore Link **/ $wp_customize->add_setting( 'blaize_about_readmore_link', array( 'default' => esc_html__('Read More', 'blaize'), 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( 'blaize_about_readmore_link', array( 'type' => 'text', 'section' => 'blaize_about_section', 'label' => esc_html__('Readmore Link', 'blaize'), 'description' => esc_html__( 'Set Read More Link.', 'blaize' ), ) ); /** Counter Section **/ $wp_customize->add_section( 'blaize_counter_section' , array( 'title' => esc_html__( 'Counter Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Enable Section **/ $wp_customize->add_setting( 'blaize_enable_counter_section', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_enable_counter_section', array( 'type' => 'checkbox', 'section' => 'blaize_counter_section', 'label' => esc_html__('Enable Section', 'blaize'), 'description' => esc_html__( 'Check to Enable the section.', 'blaize' ), ) ); /** === Counter 1 === **/ /** Counter Title **/ $wp_customize->add_setting( 'blaize_counter_title1', array( 'default' => esc_html__( 'Counter 1', 'blaize' ), 'sanitize_callback' => 'blaize_sanitize_nohtml' ) ); $wp_customize->add_control( new Blaize_Title( $wp_customize, 'blaize_counter_title1', array( 'label' => esc_html__('Counter 1', 'blaize'), 'type' => 'blaize-title', 'section' => 'blaize_counter_section', 'settings' => 'blaize_counter_title1', ) ) ); /** Counter Icon **/ $wp_customize->add_setting( 'blaize_counter_icon1', array( 'default' => 'trophy', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Blaize_Icon_Picker( $wp_customize, 'blaize_counter_icon1', array( 'label' => esc_html__('Counter Icon', 'blaize'), 'description' => esc_html__('Select the Counter Icon.', 'blaize'), 'type' => 'icon-picker', 'section' => 'blaize_counter_section', 'settings' => 'blaize_counter_icon1', ) ) ); /** Counter Number **/ $wp_customize->add_setting( 'blaize_counter1', array( 'sanitize_callback' => 'blaize_sanitize_number_absint', 'default' => 158 ) ); $wp_customize->add_control( 'blaize_counter1', array( 'type' => 'number', 'section' => 'blaize_counter_section', 'label' => esc_html__( 'Counter Number', 'blaize' ), 'description' => esc_html__( 'Set the Counter Number.', 'blaize' ), ) ); /** Counter Title **/ $wp_customize->add_setting( 'blaize_counter_title1', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Awards Won', 'blaize') ) ); $wp_customize->add_control( 'blaize_counter_title1', array( 'type' => 'text', 'section' => 'blaize_counter_section', 'label' => esc_html__( 'Counter Title', 'blaize' ), 'description' => esc_html__( 'Set the Counter Title.', 'blaize' ), ) ); /** === Counter 2 === **/ $wp_customize->add_setting( 'blaize_counter_title2', array( 'default' => esc_html( 'Counter 2', 'blaize' ), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Blaize_Title( $wp_customize, 'blaize_counter_title2', array( 'label' => esc_html__('Counter 2', 'blaize'), 'description' => esc_html__('Configure Second Counter.', 'blaize'), 'type' => 'blaize-title', 'section' => 'blaize_counter_section', 'settings' => 'blaize_counter_title2', ) ) ); /** Counter Icon **/ $wp_customize->add_setting( 'blaize_counter_icon2', array( 'default' => 'layers', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Blaize_Icon_Picker( $wp_customize, 'blaize_counter_icon2', array( 'label' => esc_html__('Counter Icon', 'blaize'), 'description' => esc_html__('Select the Counter Icon.', 'blaize'), 'type' => 'icon-picker', 'section' => 'blaize_counter_section', 'settings' => 'blaize_counter_icon2', ) ) ); /** Counter Number **/ $wp_customize->add_setting( 'blaize_counter2', array( 'sanitize_callback' => 'blaize_sanitize_number_absint', 'default' => 258 ) ); $wp_customize->add_control( 'blaize_counter2', array( 'type' => 'number', 'section' => 'blaize_counter_section', 'label' => esc_html__( 'Counter Number', 'blaize' ), 'description' => esc_html__( 'Set the Counter Number.', 'blaize' ), ) ); /** Counter Title **/ $wp_customize->add_setting( 'blaize_counter_title2', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Awards Won', 'blaize') ) ); $wp_customize->add_control( 'blaize_counter_title2', array( 'type' => 'text', 'section' => 'blaize_counter_section', 'label' => esc_html__( 'Counter Title', 'blaize' ), 'description' => esc_html__( 'Set the Counter Title.', 'blaize' ), ) ); /** === Counter 3 === **/ $wp_customize->add_setting( 'blaize_counter_title3', array( 'default' => esc_html( 'Counter 3', 'blaize' ), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Blaize_Title( $wp_customize, 'blaize_counter_title3', array( 'label' => esc_html__('Counter 3', 'blaize'), 'description' => esc_html__('Configure Second Counter.', 'blaize'), 'type' => 'blaize-title', 'section' => 'blaize_counter_section', 'settings' => 'blaize_counter_title3', ) ) ); /** Counter Icon **/ $wp_customize->add_setting( 'blaize_counter_icon3', array( 'default' => 'happy', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Blaize_Icon_Picker( $wp_customize, 'blaize_counter_icon3', array( 'label' => esc_html__('Counter Icon', 'blaize'), 'description' => esc_html__('Select the Counter Icon.', 'blaize'), 'type' => 'icon-picker', 'section' => 'blaize_counter_section', 'settings' => 'blaize_counter_icon3', ) ) ); /** Counter Number **/ $wp_customize->add_setting( 'blaize_counter3', array( 'sanitize_callback' => 'blaize_sanitize_number_absint', 'default' => 358 ) ); $wp_customize->add_control( 'blaize_counter3', array( 'type' => 'number', 'section' => 'blaize_counter_section', 'label' => esc_html__( 'Counter Number', 'blaize' ), 'description' => esc_html__( 'Set the Counter Number.', 'blaize' ), ) ); /** Counter Title **/ $wp_customize->add_setting( 'blaize_counter_title3', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Awards Won', 'blaize') ) ); $wp_customize->add_control( 'blaize_counter_title3', array( 'type' => 'text', 'section' => 'blaize_counter_section', 'label' => esc_html__( 'Happy Clients', 'blaize' ), 'description' => esc_html__( 'Set the Counter Title.', 'blaize' ), ) ); /** === Counter 4 === **/ $wp_customize->add_setting( 'blaize_counter_title4', array( 'default' => esc_html( 'Counter 4', 'blaize' ), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Blaize_Title( $wp_customize, 'blaize_counter_title4', array( 'label' => esc_html__('Counter 4', 'blaize'), 'description' => esc_html__('Configure Second Counter.', 'blaize'), 'type' => 'blaize-title', 'section' => 'blaize_counter_section', 'settings' => 'blaize_counter_title4', ) ) ); /** Counter Icon **/ $wp_customize->add_setting( 'blaize_counter_icon4', array( 'default' => 'download', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Blaize_Icon_Picker( $wp_customize, 'blaize_counter_icon4', array( 'label' => esc_html__('Counter Icon', 'blaize'), 'description' => esc_html__('Select the Counter Icon.', 'blaize'), 'type' => 'icon-picker', 'section' => 'blaize_counter_section', 'settings' => 'blaize_counter_icon4', ) ) ); /** Counter Number **/ $wp_customize->add_setting( 'blaize_counter4', array( 'sanitize_callback' => 'blaize_sanitize_number_absint', 'default' => 458 ) ); $wp_customize->add_control( 'blaize_counter4', array( 'type' => 'number', 'section' => 'blaize_counter_section', 'label' => esc_html__( 'Counter Number', 'blaize' ), 'description' => esc_html__( 'Set the Counter Number.', 'blaize' ), ) ); /** Counter Title **/ $wp_customize->add_setting( 'blaize_counter_title4', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => esc_html__('Downloads', 'blaize') ) ); $wp_customize->add_control( 'blaize_counter_title4', array( 'type' => 'text', 'section' => 'blaize_counter_section', 'label' => esc_html__( 'Counter Title', 'blaize' ), 'description' => esc_html__( 'Set the Counter Title.', 'blaize' ), ) ); /** Portfolio Section **/ $wp_customize->add_section( 'blaize_portfolio_section' , array( 'title' => esc_html__( 'Portfolio Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Enable Section **/ $wp_customize->add_setting( 'blaize_enable_portfolio_section', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_enable_portfolio_section', array( 'type' => 'checkbox', 'section' => 'blaize_portfolio_section', 'label' => esc_html__('Enable Section', 'blaize'), 'description' => esc_html__( 'Check to Enable the section.', 'blaize' ), ) ); /** Section Title **/ $wp_customize->add_setting( 'blaize_portfolio_title', array( 'default' => esc_html__('Our Projects', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_portfolio_title', array( 'type' => 'text', 'section' => 'blaize_portfolio_section', 'label' => esc_html__('Portfolio Title', 'blaize'), 'description' => esc_html__( 'Set Section Title.', 'blaize' ), ) ); /** Section Subtitle **/ $wp_customize->add_setting( 'blaize_portfolio_desc_text', array( 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus, placeat saepe quasi magnam totam exercitationem.', 'blaize'), 'sanitize_callback' => 'blaize_sanitize_nohtml' ) ); $wp_customize->add_control( 'blaize_portfolio_desc_text', array( 'type' => 'textarea', 'section' => 'blaize_portfolio_section', 'label' => esc_html__('Portfolio Subtitle', 'blaize'), 'description' => esc_html__( 'Set Section Description Text.', 'blaize' ), ) ); /** Portfolio Category **/ $wp_customize->add_setting( 'blaize_portfolio_category', array( 'default' => 0, 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( new Blaize_Category_Control( $wp_customize, 'blaize_portfolio_category', array( 'label' => esc_html__('Portfolio Category', 'blaize'), 'description' => esc_html__('Select a Category for the Portfolio.', 'blaize'), 'type' => 'dropdown-category', 'section' => 'blaize_portfolio_section', 'settings' => 'blaize_portfolio_category', ) ) ); /** Team Section **/ $wp_customize->add_section( 'blaize_team_section' , array( 'title' => esc_html__( 'Team Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Enable Section **/ $wp_customize->add_setting( 'blaize_enable_team_section', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_enable_team_section', array( 'type' => 'checkbox', 'section' => 'blaize_team_section', 'label' => esc_html__('Enable Section', 'blaize'), 'description' => esc_html__( 'Check to Enable the section.', 'blaize' ), ) ); /** Section Title **/ $wp_customize->add_setting( 'blaize_team_title', array( 'default' => esc_html__('Our Teams', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_team_title', array( 'type' => 'text', 'section' => 'blaize_team_section', 'label' => esc_html__('Team Title', 'blaize'), 'description' => esc_html__( 'Set Section Title.', 'blaize' ), ) ); /** Section Subtitle **/ $wp_customize->add_setting( 'blaize_team_desc_text', array( 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus, placeat saepe quasi magnam totam exercitationem.', 'blaize'), 'sanitize_callback' => 'blaize_sanitize_nohtml' ) ); $wp_customize->add_control( 'blaize_team_desc_text', array( 'type' => 'textarea', 'section' => 'blaize_team_section', 'label' => esc_html__('Team Subtitle', 'blaize'), 'description' => esc_html__( 'Set Section Description Text.', 'blaize' ), ) ); /** Team Category **/ $wp_customize->add_setting( 'blaize_team_category', array( 'default' => 0, 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( new Blaize_Category_Control( $wp_customize, 'blaize_team_category', array( 'label' => esc_html__('Team Category', 'blaize'), 'description' => esc_html__('Select a Category for the Team.', 'blaize'), 'type' => 'dropdown-category', 'section' => 'blaize_team_section', 'settings' => 'blaize_team_category', ) ) ); /** Video Section **/ $wp_customize->add_section( 'blaize_video_section' , array( 'title' => esc_html__( 'Video Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Enable Section **/ $wp_customize->add_setting( 'blaize_enable_video_section', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_enable_video_section', array( 'type' => 'checkbox', 'section' => 'blaize_video_section', 'label' => esc_html__('Enable Section', 'blaize'), 'description' => esc_html__( 'Check to Enable the section.', 'blaize' ), ) ); /** Section Title **/ $wp_customize->add_setting( 'blaize_video_title', array( 'default' => esc_html__('Listen What We Have to Say', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_video_title', array( 'type' => 'text', 'section' => 'blaize_video_section', 'label' => esc_html__('Video Title', 'blaize'), 'description' => esc_html__( 'Set Section Title.', 'blaize' ), ) ); /** Video URL **/ $wp_customize->add_setting( 'blaize_video_url', array( 'default' => '', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( 'blaize_video_url', array( 'type' => 'text', 'section' => 'blaize_video_section', 'label' => esc_html__('Video URL', 'blaize'), 'description' => esc_html__( 'Set Section Title.', 'blaize' ), ) ); $wp_customize->add_setting( 'blaize_video_background', array( 'default' => '', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'blaize_video_background', array( 'settings' => 'blaize_video_background', 'section' => 'blaize_video_section', 'label' => esc_html__( 'Video Section Background', 'blaize' ), 'description' => esc_html__( 'Set the Video Section Background Image.', 'blaize' ) ) ) ); /** Testimonial Section **/ $wp_customize->add_section( 'blaize_testimonial_section' , array( 'title' => esc_html__( 'Testimonial Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Enable Section **/ $wp_customize->add_setting( 'blaize_enable_testimonial_section', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_enable_testimonial_section', array( 'type' => 'checkbox', 'section' => 'blaize_testimonial_section', 'label' => esc_html__('Enable Section', 'blaize'), 'description' => esc_html__( 'Check to Enable the section.', 'blaize' ), ) ); /** Section Title **/ $wp_customize->add_setting( 'blaize_testimonial_title', array( 'default' => esc_html__('Our Clients', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_testimonial_title', array( 'type' => 'text', 'section' => 'blaize_testimonial_section', 'label' => esc_html__('Testimonial Title', 'blaize'), 'description' => esc_html__( 'Set Section Title.', 'blaize' ), ) ); /** Section Subtitle **/ $wp_customize->add_setting( 'blaize_testimonial_desc_text', array( 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus, placeat saepe quasi magnam totam exercitationem.', 'blaize'), 'sanitize_callback' => 'blaize_sanitize_nohtml' ) ); $wp_customize->add_control( 'blaize_testimonial_desc_text', array( 'type' => 'textarea', 'section' => 'blaize_testimonial_section', 'label' => esc_html__('Testimonial Subtitle', 'blaize'), 'description' => esc_html__( 'Set Section Description Text.', 'blaize' ), ) ); /** Team Category **/ $wp_customize->add_setting( 'blaize_testimonial_category', array( 'default' => 0, 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( new Blaize_Category_Control( $wp_customize, 'blaize_testimonial_category', array( 'label' => esc_html__('Team Category', 'blaize'), 'description' => esc_html__('Select a Category for the Team.', 'blaize'), 'type' => 'dropdown-category', 'section' => 'blaize_testimonial_section', 'settings' => 'blaize_testimonial_category', ) ) ); /** Blog Section **/ $wp_customize->add_section( 'blaize_blog_section' , array( 'title' => esc_html__( 'Blog Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Enable Section **/ $wp_customize->add_setting( 'blaize_enable_blog_section', array( 'default' => true, 'sanitize_callback' => 'blaize_sanitize_checkbox' ) ); $wp_customize->add_control( 'blaize_enable_blog_section', array( 'type' => 'checkbox', 'section' => 'blaize_blog_section', 'label' => esc_html__('Enable Section', 'blaize'), 'description' => esc_html__( 'Check to Enable the section.', 'blaize' ), ) ); /** Section Title **/ $wp_customize->add_setting( 'blaize_blog_title', array( 'default' => esc_html__('Latest News', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_blog_title', array( 'type' => 'text', 'section' => 'blaize_blog_section', 'label' => esc_html__('Blog Title', 'blaize'), 'description' => esc_html__( 'Set Section Title.', 'blaize' ), ) ); /** Section Subtitle **/ $wp_customize->add_setting( 'blaize_blog_desc_text', array( 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Natus, placeat saepe quasi magnam totam exercitationem.', 'blaize'), 'sanitize_callback' => 'blaize_sanitize_nohtml' ) ); $wp_customize->add_control( 'blaize_blog_desc_text', array( 'type' => 'textarea', 'section' => 'blaize_blog_section', 'label' => esc_html__('Blog Subtitle', 'blaize'), 'description' => esc_html__( 'Set Section Description Text.', 'blaize' ), ) ); /** Blog Exclude Category **/ $wp_customize->add_setting( 'blaize_blog_exclude_category', array( 'default' => 0, 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Blaize_Multiple_Category( $wp_customize, 'blaize_blog_exclude_category', array( 'label' => esc_html__('Blog Exclude Category', 'blaize'), 'description' => esc_html__('Select Categories to exclude from the Blog Section.', 'blaize'), 'type' => 'multiple-category', 'section' => 'blaize_blog_section', 'settings' => 'blaize_blog_exclude_category', ) ) ); /** Excerpt Length **/ $wp_customize->add_setting( 'blaize_blog_excerpt_length', array( 'default' => 120, 'sanitize_callback' => 'blaize_sanitize_number_absint' ) ); $wp_customize->add_control( 'blaize_blog_excerpt_length', array( 'type' => 'number', 'section' => 'blaize_blog_section', 'label' => esc_html__('Excerpt Length ( Character )', 'blaize'), 'description' => esc_html__( 'Set the excerpt length for blog text.', 'blaize' ), ) ); /** Readmore Text **/ $wp_customize->add_setting( 'blaize_blog_readmore_text', array( 'default' => esc_html__('Readmore', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_blog_readmore_text', array( 'type' => 'text', 'section' => 'blaize_blog_section', 'label' => esc_html__('Readmore Text', 'blaize'), 'description' => esc_html__( 'Set the readmore text for the blog post.', 'blaize' ), ) ); /** Partners Section **/ $wp_customize->add_section( 'blaize_partners_section' , array( 'title' => esc_html__( 'Partners Section', 'blaize' ), 'panel' => 'blaize_home_panel', ) ); /** Section Title **/ $wp_customize->add_setting( 'blaize_partner_title', array( 'default' => esc_html__('Our Partners', 'blaize'), 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_partner_title', array( 'type' => 'text', 'section' => 'blaize_partners_section', 'label' => esc_html__('Section Title', 'blaize'), 'description' => esc_html__( 'Set Section Title.', 'blaize' ), ) ); /** Services **/ $wp_customize->add_setting( 'blaize_partners', array( 'sanitize_callback' => 'blaize_sanitize_repeater', 'default' => json_encode( array( array( 'partners_logo' => '' , 'partners_link' => '' ), ) ) ) ); $wp_customize->add_control( new Blaize_Repeater_Controler( $wp_customize, 'blaize_partners', array( 'label' => esc_html__('Manage Partners Section','blaize'), 'section' => 'blaize_partners_section', 'settings' => 'blaize_partners', 'box_label' => esc_html__('Partners Section','blaize'), 'box_add_control' => esc_html__('Add Partner','blaize'), ), array ( 'partners_logo' => array( 'type' => 'upload', 'label' => esc_html__( 'Set Partner Logo', 'blaize' ), 'default' => '', ), 'partners_link' => array( 'type' => 'text', 'label' => esc_html__( 'Partner Link', 'blaize' ), 'default' => '', ), ) )); /** * * Design Settings Panel * **/ $wp_customize->add_panel( 'blaize_design_settings_panel', array( 'title' => esc_html__( 'Design Settings', 'blaize' ), 'priority' => 6, 'description' => esc_html__( 'Configure Basic Layouts and designs in the site.', 'blaize' ) ) ); /** Blog Page Design **/ $wp_customize->add_section( 'blaize_blog_page_settings' , array( 'title' => esc_html__( 'Blog Page Settings', 'blaize' ), 'panel' => 'blaize_design_settings_panel', ) ); /** Excerpt Length **/ $wp_customize->add_setting( 'blaize_blog_page_excerpt_length', array( 'default' => 450, 'blaize', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( 'blaize_blog_page_excerpt_length', array( 'type' => 'text', 'section' => 'blaize_blog_page_settings', 'label' => esc_html__( 'Excerpt Length', 'blaize' ), 'description' => esc_html__( 'Set the Blog Excerpt Length.', 'blaize' ), ) ); /** Excerpt Length **/ $wp_customize->add_setting( 'blaize_blog_page_readmore_text', array( 'default' => esc_html__( 'Read More', 'blaize' ), 'blaize', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'blaize_blog_page_readmore_text', array( 'type' => 'text', 'section' => 'blaize_blog_page_settings', 'label' => esc_html__( 'Read More', 'blaize' ), 'description' => esc_html__( 'Set the Read More Text.', 'blaize' ), ) ); /** Footer Section **/ $wp_customize->add_section( 'blaize_footer_section' , array( 'title' => esc_html__( 'Footer Settings', 'blaize' ), ) ); /** Footer Copyright Text **/ $wp_customize->add_setting( 'blaize_footer_text', array( 'default' => '', 'blaize', 'sanitize_callback' => 'wp_kses_post' ) ); $wp_customize->add_control( 'blaize_footer_text', array( 'type' => 'textarea', 'section' => 'blaize_footer_section', 'label' => esc_html__('Footer Custom Text', 'blaize'), 'description' => esc_html__( 'Set the Custom Footer Text.', 'blaize' ), ) ); } add_action( 'customize_register', 'blaize_customizer_register' );