add_section( 'sagablog-header_options-section', array( 'title' => __( 'Header options', 'sagablog-light' ), 'priority' => 30, 'description' => __( 'Header options.', 'sagablog-light' ), )); /******************************************************************************/ // Social links and search box in the top - settings $wp_customize->add_setting('sagablog_social_links_top', array( 'default' => 'not-show-top', 'type' => 'theme_mod', 'sanitize_callback' => 'sagablog_sanitize_links_top', ) ); // Social links and search box in the top - control $wp_customize->add_control('sagablog_social_links_top', array( 'section' => 'sagablog-header_options-section', 'type' => 'radio', 'label' => __( 'Social links and search box in top:', 'sagablog-light' ), 'choices' => array( 'social-search-top' => __( 'Show social links and search in the top of page', 'sagablog-light' ), 'social-top' => __( 'Show social links in the top of page', 'sagablog-light' ), 'search-top' => __( 'Show search in the top of page', 'sagablog-light' ), 'not-show-top' => __( 'Do not show social links and search in the top of page (default)', 'sagablog-light' ) ), ) ); /******************************************************************************/ // Social links and search box near menu - settings $wp_customize->add_setting('sagablog_social_links_menu', array( 'default' => 'search-menu', 'type' => 'theme_mod', 'sanitize_callback' => 'sagablog_sanitize_links_menu', ) ); // Social links and search box near menu - control $wp_customize->add_control('sagablog_social_links_menu', array( 'section' => 'sagablog-header_options-section', 'type' => 'radio', 'label' => __( 'Social links and search box near main menu:', 'sagablog-light' ), 'choices' => array( 'social-search-menu' => __( 'Show social links and search near main menu', 'sagablog-light' ), 'social-menu' => __( 'Show social links near main menu', 'sagablog-light' ), 'search-menu' => __( 'Show search near menu (default)', 'sagablog-light' ), 'not-show-menu' => __( 'Do not show social links and search near main menu', 'sagablog-light' ) ), ) ); /******************************************************************************/ // Site title and logo position (frontpage-homepage) - settings $wp_customize->add_setting('sagablog_site_title_placement_frontpage', array( 'default' => 'center-frontpage', 'type' => 'theme_mod', 'sanitize_callback' => 'sagablog_sanitize_title_placement_frontpage', ) ); // Site title and logo position (frontpage-homepage)- controls $wp_customize->add_control('sagablog_site_title_placement_frontpage', array( 'section' => 'sagablog-header_options-section', 'type' => 'radio', 'label' => __( 'Site title and logo position (frontpage/homepage):', 'sagablog-light' ), 'choices' => array( 'center-frontpage' => __( 'Center (default)', 'sagablog-light' ), 'left-frontpage' => __( 'Left', 'sagablog-light' ) ), ) ); /******************************************************************************/ // Site title and logo position (other pages) - settings $wp_customize->add_setting('sagablog_site_title_placement', array( 'default' => 'center', 'type' => 'theme_mod', 'sanitize_callback' => 'sagablog_sanitize_title_placement', ) ); // Site title and logo position (other pages)- controls $wp_customize->add_control('sagablog_site_title_placement', array( 'section' => 'sagablog-header_options-section', 'type' => 'radio', 'label' => __( 'Site title and logo position (other pages):', 'sagablog-light' ), 'choices' => array( 'center' => __( 'Center (default)', 'sagablog-light' ), 'left' => __( 'Left', 'sagablog-light' ) ), ) ); /******************************************************************************/ // Menu align - settings $wp_customize->add_setting('sagablog_menu_placement', array( 'default' => 'left', 'type' => 'theme_mod', 'sanitize_callback' => 'sagablog_sanitize_menu_placement', ) ); // Menu align- controls $wp_customize->add_control('sagablog_menu_placement', array( 'section' => 'sagablog-header_options-section', 'type' => 'radio', 'label' => __( 'Menu alignment:', 'sagablog-light' ), 'choices' => array( 'center' => __( 'Center', 'sagablog-light' ), 'left' => __( 'Left (default)', 'sagablog-light' ) ), ) ); //Menu placement $wp_customize->add_setting( 'sagablog_slider_placement', array( 'default' => 'after-menu', 'sanitize_callback' => 'sagablog_sanitize_slider_placement' ) ); $wp_customize->add_control( 'sagablog_slider_placement', array( 'type' => 'radio', 'label' => __( 'Menu placement (if the main slider is in the header of page):', 'sagablog-light' ), 'section' => 'sagablog-header_options-section', 'choices' => array( 'before-menu' => __( 'Place main menu after slider', 'sagablog-light' ), 'after-menu' => __( 'Place main menu before slider', 'sagablog-light' ) ) ) );