esc_html__('Default Banner','allinone'), 'tiles-blocks' => esc_html__('Slider & Tiles Block','allinone'), 'main-banner' => esc_html__('Banner Block','allinone'), 'fullwidth-banner-slider' => esc_html__('Fullwidth Slider Block','allinone'), 'must-read' => esc_html__('Must Read','allinone'), 'banner-blocks-1' => esc_html__('Slider & Tab Block','allinone'), 'latest-posts-blocks' => esc_html__('Latest Posts Block','allinone'), 'advertise-blocks' => esc_html__('Advertise Block','allinone'), 'home-widget-area' => esc_html__('Widgets Area Block','allinone'), 'you-may-like-blocks' => esc_html__('You May Like Block','allinone'), ); // Slider Section. $wp_customize->add_section( 'home_sections_repeater', array( 'title' => esc_html__( 'Homepage Sections', 'allinone' ), 'priority' => 150, 'capability' => 'edit_theme_options', ) ); // Recommended Posts Enable Disable. $wp_customize->add_setting( 'twp_allinone_home_sections_1', array( 'sanitize_callback' => 'allinone_sanitize_repeater', 'default' => json_encode( $allinone_defaults['twp_allinone_home_sections_1'] ), // 'transport' => 'postMessage', )); $wp_customize->add_control( new Allinone_Repeater_Controler( $wp_customize, 'twp_allinone_home_sections_1', array( 'section' => 'home_sections_repeater', 'settings' => 'twp_allinone_home_sections_1', 'allinone_box_label' => esc_html__('New Section','allinone'), 'allinone_box_add_control' => esc_html__('Add New Section','allinone'), 'allinone_box_add_button' => false, ), array( 'section_ed' => array( 'type' => 'checkbox', 'label' => esc_html__( 'Enable Section', 'allinone' ), 'class' => 'home-section-ed' ), 'home_section_type' => array( 'type' => 'select', 'label' => esc_html__( 'Section Type', 'allinone' ), 'options' => $home_sections, 'class' => 'home-section-type' ), 'home_section_column_1' => array( 'type' => 'seperator', 'seperator_text' => esc_html__( 'Column 1', 'allinone' ), 'class' => 'home-repeater-fields-hs default-banner-area-fields' ), 'home_section_title_5' => array( 'type' => 'text', 'label' => esc_html__( 'Block Title', 'allinone' ), 'class' => 'home-repeater-fields-hs default-banner-area-fields' ), 'section_category_7' => array( 'type' => 'select', 'label' => esc_html__( 'Fixed Post Category', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs default-banner-area-fields' ), 'home_section_column_2' => array( 'type' => 'seperator', 'seperator_text' => esc_html__( 'Column 2', 'allinone' ), 'class' => 'home-repeater-fields-hs default-banner-area-fields' ), 'home_section_title_1' => array( 'type' => 'text', 'label' => esc_html__( 'Section Area Title', 'allinone' ), 'class' => 'home-repeater-fields-hs banner-blocks-1-fields' ), 'home_section_title' => array( 'type' => 'text', 'label' => esc_html__( 'Section Title', 'allinone' ), 'class' => 'home-repeater-fields-hs tiles-blocks-fields you-may-like-blocks-fields' ), 'section_slide_category' => array( 'type' => 'select', 'label' => esc_html__( 'Slider Post Category', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs default-banner-area-fields' ), 'section_category_tile_slider' => array( 'type' => 'select', 'label' => esc_html__( 'Post Slider Category', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs tiles-blocks-fields' ), 'section_category' => array( 'type' => 'select', 'label' => esc_html__( 'Post Category', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs tiles-blocks-fields you-may-like-blocks-fields' ), 'section_category_6' => array( 'type' => 'select', 'label' => esc_html__( 'Post Category', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs must-read-fields' ), 'home_section_main_title' => array( 'type' => 'text', 'label' => esc_html__( 'Section Area Title', 'allinone' ), 'class' => 'home-repeater-fields-hs main-banner-fields fullwidth-banner-slider-fields' ), 'home_section_must_read' => array( 'type' => 'text', 'label' => esc_html__( 'Section Area Title', 'allinone' ), 'class' => 'home-repeater-fields-hs must-read-fields' ), 'section_post_slide_cat' => array( 'type' => 'select', 'label' => esc_html__( 'Select Category', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs banner-blocks-1-fields fullwidth-banner-slider-fields' ), 'section_post_number' => array( 'type' => 'select', 'label' => esc_html__( 'Posts Per Page', 'allinone' ), 'options' => array( '1' => 1, '3' => 3, '4' => 4, '5' => 5, ), 'class' => 'home-repeater-fields-hs main-banner-fields' ), 'advertise_image' => array( 'type' => 'upload', 'label' => esc_html__( 'Advertise Image', 'allinone' ), 'description' => esc_html__( 'Recommended Image Size is 970x250 PX.', 'allinone' ), 'class' => 'home-repeater-fields-hs advertise-blocks-fields' ), 'advertise_link' => array( 'type' => 'link', 'label' => esc_html__( 'Advertise Image Link', 'allinone' ), 'class' => 'home-repeater-fields-hs advertise-blocks-fields' ), 'ed_arrows_carousel' => array( 'type' => 'checkbox', 'label' => esc_html__( 'Enable Arrows', 'allinone' ), 'class' => 'home-repeater-fields-hs banner-blocks-1-fields tiles-blocks-fields default-banner-area-fields' ), 'ed_dots_carousel' => array( 'type' => 'checkbox', 'label' => esc_html__( 'Enable Dot', 'allinone' ), 'class' => 'home-repeater-fields-hs banner-blocks-1-fields tiles-blocks-fields default-banner-area-fields' ), 'ed_autoplay_carousel' => array( 'type' => 'checkbox', 'label' => esc_html__( 'Enable Autoplay', 'allinone' ), 'class' => 'home-repeater-fields-hs banner-blocks-1-fields tiles-blocks-fields' ), 'ed_tab' => array( 'type' => 'checkbox', 'label' => esc_html__( 'Enable Tab', 'allinone' ), 'class' => 'home-repeater-fields-hs ed-tabs-ac banner-blocks-1-fields' ), 'cat_title_1' => array( 'type' => 'text', 'label' => esc_html__( 'Section Title One', 'allinone' ), 'class' => 'home-repeater-fields-hs ' ), 'section_category_1' => array( 'type' => 'select', 'label' => esc_html__( 'Post Category One', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs banner-blocks-1-fields' ), 'cat_title_2' => array( 'type' => 'text', 'label' => esc_html__( 'Section Title Two', 'allinone' ), 'class' => 'home-repeater-fields-hs ' ), 'section_category_2' => array( 'type' => 'select', 'label' => esc_html__( 'Post Category Two', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs banner-block-1-tab-ac banner-blocks-1-fields' ), 'section_category_3' => array( 'type' => 'select', 'label' => esc_html__( 'Post Category Three', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs banner-block-1-tab-ac banner-blocks-1-fields' ), 'section_category_4' => array( 'type' => 'select', 'label' => esc_html__( 'Post Category Four', 'allinone' ), 'options' => $allinone_post_category_list, 'class' => 'home-repeater-fields-hs banner-block-1-tab-ac banner-blocks-1-fields' ), 'ed_flip_column' => array( 'type' => 'checkbox', 'label' => esc_html__( 'Flip Column Right to Left', 'allinone' ), 'class' => 'home-repeater-fields-hs banner-blocks-1-fields' ), ) )); // Info. $wp_customize->add_setting( 'allinone_notice_info', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Allinone_Info_Notice_Control( $wp_customize, 'allinone_notice_info', array( 'settings' => 'allinone_notice_info', 'section' => 'home_sections_repeater', 'label' => esc_html__( 'Info', 'allinone' ), ) ) ); $wp_customize->add_setting( 'allinone_premium_notice', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new Allinone_Premium_Notice_Control( $wp_customize, 'allinone_premium_notice', array( 'label' => esc_html__( 'Home Page Blocks', 'allinone' ), 'settings' => 'allinone_premium_notice', 'section' => 'home_sections_repeater', ) ) );