add_panel( 'ares_frontpage_panel', array( 'title' => __( 'Frontpage', 'ares' ), 'description' => __( 'Customize the appearance of your site homepage', 'ares' ), 'priority' => 10 ) ); // Move Static Front Page $wp_customize->add_section( 'static_front_page', array( 'title' => __( 'Static Front Page', 'ares' ), 'panel' => 'ares_frontpage_panel' ) ); // --------------------------------------------- // CTA Header Section // --------------------------------------------- $wp_customize->add_section( 'ares_cta_header_section', array( 'title' => __( 'CTA Header', 'ares'), 'description' => __( 'Customize the CTA banner that appears below the Slider', 'ares' ), 'panel' => 'ares_frontpage_panel' ) ); // Show / Hide the CTA Header? $wp_customize->add_setting( 'ares[ares_post_slider_cta_bool]', array( 'default' => 'yes', 'transport' => 'refresh', 'sanitize_callback' => 'ares_sanitize_show_hide', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_post_slider_cta_bool]', array( 'label' => __( 'Show or hide the CTA banner below the Slider?', 'ares' ), 'section' => 'ares_cta_header_section', 'type' => 'radio', 'choices' => array( 'yes' => __( 'Show', 'ares' ), 'no' => __( 'Hide', 'ares' ), ) )); // Main Heading $wp_customize->add_setting( 'ares[ares_cta_header_one]', array( 'default' => __( 'Modern design with a responsive layout', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta_header_one]', array( 'type' => 'text', 'section' => 'ares_cta_header_section', 'label' => __( 'Main Heading', 'ares' ), ) ); // Secondary Heading $wp_customize->add_setting( 'ares[ares_cta_header_two]', array( 'default' => __( 'User-friendly & Easily Customizable', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta_header_two]', array( 'type' => 'text', 'section' => 'ares_cta_header_section', 'label' => __( 'Secondary Heading', 'ares' ), ) ); // --------------------------------------------- // CTA Trio Section // --------------------------------------------- $wp_customize->add_section( 'ares_cta_trio_section', array( 'title' => __( 'CTA Trio Section', 'ares'), 'description' => __( 'Customize the trio of icon CTAs on the frontpage', 'ares' ), 'panel' => 'ares_frontpage_panel' ) ); // Show / Hide the CTA Trio Section? $wp_customize->add_setting( 'ares[ares_cta_bool]', array( 'default' => 'yes', 'transport' => 'refresh', 'sanitize_callback' => 'ares_sanitize_show_hide', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta_bool]', array( 'label' => __( 'Show or hide the CTA Trio section?', 'ares' ), 'section' => 'ares_cta_trio_section', 'type' => 'radio', 'choices' => array( 'yes' => __( 'Show', 'ares' ), 'no' => __( 'Hide', 'ares' ), ) )); // CTA 1 - Icon $wp_customize->add_setting( 'ares[ares_cta1_icon]', array( 'default' => 'fa fa-gears', 'transport' => 'refresh', 'sanitize_callback' => 'ares_sanitize_icon', 'type' => 'option' )); $wp_customize->add_control( 'ares[ares_cta1_icon]', array( 'label' => __('CTA 1 - Icon', 'ares'), 'section' => 'ares_cta_trio_section', 'type' => 'select', 'choices' => ares_icons() )); // CTA 1 - Title $wp_customize->add_setting( 'ares[ares_cta1_title]', array( 'default' => __( 'Theme Options', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta1_title]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 1 - Title', 'ares' ), ) ); // CTA 1 - Tagline $wp_customize->add_setting( 'ares[ares_cta1_text]', array( 'default' => __( 'Change typography, colors, layouts...', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta1_text]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 1 - Tagline', 'ares' ), ) ); // CTA 1 - URL $wp_customize->add_setting( 'ares[ares_cta1_url]', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta1_url]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 1 - Link/URL', 'ares' ), ) ); // CTA 1 - Link Text $wp_customize->add_setting( 'ares[ares_cta1_button_text]', array( 'default' => __( 'Click Here', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta1_button_text]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 1 - Link Text', 'ares' ), ) ); // CTA 2 - Icon $wp_customize->add_setting( 'ares[ares_cta2_icon]', array( 'default' => 'fa fa-mobile', 'transport' => 'refresh', 'sanitize_callback' => 'ares_sanitize_icon', 'type' => 'option' )); $wp_customize->add_control( 'ares[ares_cta2_icon]', array( 'label' => __('CTA 2 - Icon', 'ares'), 'section' => 'ares_cta_trio_section', 'type' => 'select', 'choices' => ares_icons() )); // CTA 2 - Title $wp_customize->add_setting( 'ares[ares_cta2_title]', array( 'default' => __( 'Responsive Layout', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta2_title]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 2 - Title', 'ares' ), ) ); // CTA 2 - Tagline $wp_customize->add_setting( 'ares[ares_cta2_text]', array( 'default' => __( 'Looks great on different devices', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta2_text]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 2 - Tagline', 'ares' ), ) ); // CTA 2 - URL $wp_customize->add_setting( 'ares[ares_cta2_url]', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta2_url]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 2 - Link/URL', 'ares' ), ) ); // CTA 2 - Link Text $wp_customize->add_setting( 'ares[ares_cta2_button_text]', array( 'default' => __( 'Click Here', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta2_button_text]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 2 - Link Text', 'ares' ), ) ); // CTA 3 - Icon $wp_customize->add_setting( 'ares[ares_cta3_icon]', array( 'default' => 'fa fa-leaf', 'transport' => 'refresh', 'sanitize_callback' => 'ares_sanitize_icon', 'type' => 'option' )); $wp_customize->add_control( 'ares[ares_cta3_icon]', array( 'label' => __('CTA 3 - Icon', 'ares'), 'section' => 'ares_cta_trio_section', 'type' => 'select', 'choices' => ares_icons() )); // CTA 3 - Title $wp_customize->add_setting( 'ares[ares_cta3_title]', array( 'default' => __( 'Elegant Design', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta3_title]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 3 - Title', 'ares' ), ) ); // CTA 3 - Tagline $wp_customize->add_setting( 'ares[ares_cta3_text]', array( 'default' => __( 'Beautiful design to give your site an elegant look', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta3_text]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 3 - Tagline', 'ares' ), ) ); // CTA 3 - URL $wp_customize->add_setting( 'ares[ares_cta3_url]', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta3_url]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 3 - Link/URL', 'ares' ), ) ); // CTA 3 - Link Text $wp_customize->add_setting( 'ares[ares_cta3_button_text]', array( 'default' => __( 'Click Here', 'ares' ), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_cta3_button_text]', array( 'type' => 'text', 'section' => 'ares_cta_trio_section', 'label' => __( 'CTA 3 - Link Text', 'ares' ), ) ); // --------------------------------------------- // Frontpage Content - Adds to Static Front Page // --------------------------------------------- // Show / Hide the Homepage Content? $wp_customize->add_setting( 'ares[ares_frontpage_content_bool]', array( 'default' => 'yes', 'transport' => 'refresh', 'sanitize_callback' => 'ares_sanitize_show_hide', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_frontpage_content_bool]', array( 'label' => __( 'Show or hide the homepage content?', 'ares' ), 'section' => 'static_front_page', 'type' => 'radio', 'choices' => array( 'yes' => __( 'Show', 'ares' ), 'no' => __( 'Hide', 'ares' ), ) )); // Include Right Sidebar on Static Frontpage? $wp_customize->add_setting( 'ares[ares_homepage_sidebar]', array( 'default' => 'sidebar-off', 'transport' => 'refresh', 'sanitize_callback' => 'ares_sanitize_sidebar_off_on', 'type' => 'option' ) ); $wp_customize->add_control( 'ares[ares_homepage_sidebar]', array( 'label' => __( 'Include the right sidebar ( only when using Static Front Page)?', 'ares' ), 'section' => 'static_front_page', 'type' => 'radio', 'choices' => array( 'sidebar-off' => __( 'No Sidebar', 'ares' ), 'sidebar-on' => __( 'Right Sidebar', 'ares' ), ) ));