add_section('armada_general', array( 'title' => esc_html__('Armada General', 'armada'), 'description' => 'Customize page section.', 'priority' => 1, )); // General Sticky Header $wp_customize->add_setting('general_sticky', array( 'default' => '1', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('single_sticky_control', array( 'label' => esc_html__('Sticky Header', 'armada'), 'section' => 'armada_general', 'settings' => 'general_sticky', 'type' => 'checkbox', )); // General Smooth Scroll $wp_customize->add_setting('general_scroll', array( 'default' => '1', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('general_scroll_control', array( 'label' => esc_html__('Smooth Scroll', 'armada'), 'section' => 'armada_general', 'settings' => 'general_scroll', 'type' => 'checkbox', )); // General Back Button $wp_customize->add_setting('general_back', array( 'default' => '1', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('general_back_control', array( 'label' => esc_html__('Back To The Top', 'armada'), 'section' => 'armada_general', 'settings' => 'general_back', 'type' => 'checkbox', )); // Page Layout $wp_customize->add_setting('page_layout', array( 'default' => 'page-full', 'sanitize_callback' => 'sanitize_html_class', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('page_layout_control', array( 'label' => esc_html__('armada Page Layout', 'armada'), 'section' => 'armada_general', 'settings' => 'page_layout', 'type' => 'radio', 'choices' => array( 'page-box' => 'Box', 'page-full' => 'Full', ), )); // Page Color $wp_customize->add_setting('page_background_color', array( 'default' => '#f1f1f1', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'page_color_control', array( 'label' => esc_html__( 'Page Background Color', 'armada' ), 'section' => 'armada_general', 'settings' => 'page_background_color', )) ); // Page Background $wp_customize->add_setting('page_background_picture', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'page_background_picture_control', array( 'label' => esc_html__( 'Page Background Picture', 'armada' ), 'section' => 'armada_general', 'settings' => 'page_background_picture', )) ); // General Load $wp_customize->add_setting('general_load', array( 'default' => '0', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('general_load_control', array( 'label' => esc_html__('Page loader', 'tuxedo'), 'section' => 'armada_general', 'settings' => 'general_load', 'type' => 'checkbox', )); // Page Background $wp_customize->add_setting('general_load_picture', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'general_load_picture_control', array( 'label' => esc_html__( 'Page loader Picture', 'tuxedo' ), 'section' => 'armada_general', 'settings' => 'general_load_picture', )) ); } add_action( 'customize_register', 'armada_general_customizer' ); /** * Header Customize */ function armada_header_customizer( $wp_customize ) { // Header Section $wp_customize->add_section('armada_header', array( 'title' => esc_html__('Armada Header', 'armada'), 'description' => 'Customizing top and header section', 'priority' => 2, )); // Header Top $wp_customize->add_setting('header_top', array( 'default' => '1', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('header_top_control', array( 'label' => __('Top Header', 'venture'), 'section' => 'armada_header', 'settings' => 'header_top', 'type' => 'checkbox', )); // Top Copyright. $wp_customize->add_setting('top_info', array( 'default' => 'Welcome to armada', 'sanitize_callback' => 'armada_allowed_kses', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('top_copyright_control', array( 'label' => esc_html__('Top Information Text', 'armada'), 'section' => 'armada_header', 'settings' => 'top_info', )); // Top Phone. $wp_customize->add_setting('top_phone', array( 'default' => '#', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('top_phone_control', array( 'label' => esc_html__('Top Phone Number', 'armada'), 'section' => 'armada_header', 'settings' => 'top_phone', )); // Top RSS. $wp_customize->add_setting('top_rss', array( 'default' => '#', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('top_rss_control', array( 'label' => esc_html__('Top RSS URL', 'armada'), 'section' => 'armada_header', 'settings' => 'top_rss', )); // Top RSS. $wp_customize->add_setting('top_promo', array( 'default' => '#', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('top_promo_control', array( 'label' => esc_html__('Top Promo URL', 'armada'), 'section' => 'armada_header', 'settings' => 'top_promo', )); // Top Color Scheme $wp_customize->add_setting('top_scheme', array( 'default' => 'light', 'sanitize_callback' => 'sanitize_html_class', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('top_scheme_control', array( 'label' => esc_html__('Top Color Scheme', 'armada'), 'section' => 'armada_header', 'settings' => 'top_scheme', 'type' => 'radio', 'choices' => array( 'dark' => 'Dark Color Text', 'light' => 'Light Color Text', ), )); // Top Color $wp_customize->add_setting('top_background_color', array( 'default' => '#77bf4f', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'top_background_colorcontrol', array( 'label' => esc_html__( 'Top Header Color', 'armada' ), 'section' => 'armada_header', 'settings' => 'top_background_color', ))); // Header logo. $wp_customize->add_setting('header_logo', array( 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'header_logo_control', array( 'label' => esc_html__( 'Header Logo', 'armada' ), 'section' => 'armada_header', 'settings' => 'header_logo', ) ) ); } add_action( 'customize_register', 'armada_header_customizer' ); /** * Navigation Customizer */ function armada_nav_customizer( $wp_customize ) { // Navigation Section $wp_customize->add_section('armada_nav', array( 'title' => esc_html__('Armada Navigation', 'armada'), 'description' => 'Customizing navigation section', 'priority' => 3, )); // Menu Color Scheme $wp_customize->add_setting('nav_menu_scheme', array( 'default' => 'light', 'sanitize_callback' => 'sanitize_html_class', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('nav_menu_scheme_control', array( 'label' => esc_html__('Menu Color Scheme', 'armada'), 'section' => 'armada_nav', 'settings' => 'nav_menu_scheme', 'type' => 'radio', 'choices' => array( 'dark' => 'Dark Color Text', 'light' => 'Light Color Text', ), )); // Header Color $wp_customize->add_setting('nav_menu_background_color', array( 'default' => '#363f48', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'nav_menu_background_color_control', array( 'label' => esc_html__( 'Menu Background Color', 'armada' ), 'section' => 'armada_nav', 'settings' => 'nav_menu_background_color', )) ); // Sub Menu Color Scheme $wp_customize->add_setting('nav_sub_scheme', array( 'default' => 'light', 'sanitize_callback' => 'sanitize_html_class', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('nav_sub_scheme_control', array( 'label' => esc_html__('Sub Menu Color Scheme', 'armada'), 'section' => 'armada_nav', 'settings' => 'nav_sub_scheme', 'type' => 'radio', 'choices' => array( 'dark' => 'Dark Color Text', 'light' => 'Light Color Text', ), )); // Sub Menu $wp_customize->add_setting('nav_sub_background_color', array( 'default' => '#262d33', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'menu_sub_background_color_control', array( 'label' => esc_html__( 'Sub Menu Background Color', 'armada' ), 'section' => 'armada_nav', 'settings' => 'nav_sub_background_color', ) )); } add_action( 'customize_register', 'armada_nav_customizer' ); /** * Brand Customizer */ function armada_brand_customizer( $wp_customize ) { // Brand Section $wp_customize->add_section('armada_brand', array( 'title' => esc_html__('Armada Brand', 'armada'), 'description' => 'Customizing brand section', 'priority' => 4, )); // Brand Color Scheme $wp_customize->add_setting('brand_scheme', array( 'default' => 'light', 'sanitize_callback' => 'sanitize_html_class', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('brand_scheme_control', array( 'label' => esc_html__('Brand Color Scheme', 'armada'), 'section' => 'armada_brand', 'settings' => 'brand_scheme', 'type' => 'radio', 'choices' => array( 'dark' => 'Dark Color Text', 'light' => 'Light Color Text', ), )); // Brand Color $wp_customize->add_setting('brand_background_color', array( 'default' => '#2d343c', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'brand_background_color_control', array( 'label' => esc_html__( 'Brand Background Color', 'armada' ), 'section' => 'armada_brand', 'settings' => 'brand_background_color', ) )); // Brand Background Picture $wp_customize->add_setting('brand_background_picture', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'brand_background_picture_control', array( 'label' => esc_html__( 'Brand Background Picture', 'armada' ), 'section' => 'armada_brand', 'settings' => 'brand_background_picture', )) ); } add_action( 'customize_register', 'armada_brand_customizer' ); /** * Blog Customizer */ function armada_blog_customizer( $wp_customize ) { // Blog Section $wp_customize->add_section('armada_blog', array( 'title' => esc_html__('Armada Blog', 'armada'), 'description' => 'Customize blog section', 'priority' => 5, )); // Blog Layout $wp_customize->add_setting('blog_layout', array( 'default' => 'content-sidebar-right', 'sanitize_callback' => 'sanitize_html_class', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('blog_layout_control', array( 'label' => esc_html__('Blog Layout', 'armada'), 'section' => 'armada_blog', 'settings' => 'blog_layout', 'type' => 'radio', 'choices' => array( 'content-full' => 'Full', 'content-sidebar-left' => 'Sidebar Left', 'content-sidebar-right' => 'Sidebar Right', ), )); } add_action( 'customize_register', 'armada_blog_customizer' ); /** * Single Customizer */ function armada_single_customizer( $wp_customize ) { // Footer Section $wp_customize->add_section('armada_single', array( 'title' => esc_html__('Armada Single', 'armada'), 'description' => '', 'priority' => 6, )); // Single Relative $wp_customize->add_setting('single_relative', array( 'default' => '0', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('single_relative_control', array( 'label' => esc_html__('Single Show Relative Post', 'armada'), 'section' => 'armada_single', 'settings' => 'single_relative', 'type' => 'checkbox', )); // Single Author $wp_customize->add_setting('single_author', array( 'default' => '1', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('single_author_control', array( 'label' => esc_html__('Single Show Author Detail', 'armada'), 'section' => 'armada_single', 'settings' => 'single_author', 'type' => 'checkbox', )); // Single Share $wp_customize->add_setting('single_share', array( 'default' => '0', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('single_share_control', array( 'label' => esc_html__('Single Show Social Share', 'armada'), 'section' => 'armada_single', 'settings' => 'single_share', 'type' => 'checkbox', )); } add_action( 'customize_register', 'armada_single_customizer' ); /** * General Footer */ function armada_footer_customizer( $wp_customize ) { // Footer Section $wp_customize->add_section('armada_footer', array( 'title' => esc_html__('Armada Footer', 'armada'), 'description' => '', 'priority' => 7, )); // Footer Column $wp_customize->add_setting('footer_column', array( 'default' => '4', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('footer_column_control', array( 'label' => __('Footer Widget Column', 'armada'), 'section' => 'armada_footer', 'settings' => 'footer_column', 'type' => 'radio', 'choices' => array( '2' => '2 Column', '3' => '3 Column', '4' => '4 Column', ), )); // Footer Social $wp_customize->add_setting('footer_social', array( 'default' => '1', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('footer_social_control', array( 'label' => esc_html__('Show Footer Social', 'armada'), 'section' => 'armada_footer', 'settings' => 'footer_social', 'type' => 'checkbox', )); // Footer Widget $wp_customize->add_setting('footer_widget', array( 'default' => '0', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('footer_widget_control', array( 'label' => esc_html__('Show Footer Widget', 'armada'), 'section' => 'armada_footer', 'settings' => 'footer_widget', 'type' => 'checkbox', )); // Footer Widget $wp_customize->add_setting('footer_address', array( 'default' => '1', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('footer_address_control', array( 'label' => esc_html__('Show Footer Address', 'armada'), 'section' => 'armada_footer', 'settings' => 'footer_address', 'type' => 'checkbox', )); // Footer Color Scheme $wp_customize->add_setting('footer_scheme', array( 'default' => 'light', 'sanitize_callback' => 'sanitize_html_class', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('footer_scheme_control', array( 'label' => esc_html__('Footer Color Scheme', 'armada'), 'section' => 'armada_footer', 'settings' => 'footer_scheme', 'type' => 'radio', 'choices' => array( 'dark' => 'Dark Color Text', 'light' => 'Light Color Text', ), )); // Footer Background Color $wp_customize->add_setting('footer_background_color', array( 'default' => '#212b36', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_background_control', array( 'label' => esc_html__( 'Footer Background Color', 'armada' ), 'section' => 'armada_footer', 'settings' => 'footer_background_color', ) )); // Address Info. $wp_customize->add_setting('address_info', array( 'default' => '', 'sanitize_callback' => 'armada_allowed_kses', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('address_info_control', array( 'label' => esc_html__('Address Information', 'armada'), 'section' => 'armada_footer', 'settings' => 'address_info', 'type' => 'textarea', )); // Address Home. $wp_customize->add_setting('address_home', array( 'default' => '

My City 9843AV My State', 'sanitize_callback' => 'armada_allowed_kses', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('address_home_control', array( 'label' => esc_html__('Address Home', 'armada'), 'section' => 'armada_footer', 'settings' => 'address_home', 'type' => 'textarea', )); // Address Phone $wp_customize->add_setting('address_phone', array( 'default' => 'Ph (+098) 765 432 Fax (+098) 765 4321', 'sanitize_callback' => 'armada_allowed_kses', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('address_phone_control', array( 'label' => esc_html__('Address Phone', 'armada'), 'section' => 'armada_footer', 'settings' => 'address_phone', 'type' => 'textarea', )); // Address Support $wp_customize->add_setting('address_support', array( 'default' => '24 / 7 Tech Support faq@email.com', 'sanitize_callback' => 'armada_allowed_kses', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('address_support_control', array( 'label' => esc_html__('Address Support', 'armada'), 'section' => 'armada_footer', 'settings' => 'address_support', 'type' => 'textarea', )); // Footer Background Picture $wp_customize->add_setting('footer_background_picture', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'footer_background_picture_control', array( 'label' => esc_html__( 'Footer Background Picture', 'armada' ), 'section' => 'armada_footer', 'settings' => 'footer_background_picture', )) ); // Bottom Copyright $wp_customize->add_setting('bottom_copyright', array( 'default' => 'Copyright Company, Created by ViniRama', 'sanitize_callback' => 'armada_allowed_kses', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('bottom_copyright_control', array( 'label' => esc_html__('Bottom Copyright', 'armada'), 'section' => 'armada_footer', 'settings' => 'bottom_copyright', )); // Bottom Color Scheme $wp_customize->add_setting('bottom_scheme', array( 'default' => 'light', 'sanitize_callback' => 'sanitize_html_class', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('bottom_scheme_control', array( 'label' => esc_html__('Bottom Color Scheme', 'armada'), 'section' => 'armada_footer', 'settings' => 'bottom_scheme', 'type' => 'radio', 'choices' => array( 'dark' => 'Dark Color Text', 'light' => 'Light Color Text', ), )); // Bottom Background Color $wp_customize->add_setting('bottom_background_color', array( 'default' => '#1a222b', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bottom_background_color_control', array( 'label' => esc_html__( 'Bottom Color', 'armada' ), 'section' => 'armada_footer', 'settings' => 'bottom_background_color', ))); } add_action( 'customize_register', 'armada_footer_customizer' ); /** * Font Customizer */ function armada_font_customizer( $wp_customize ) { // Font Section $wp_customize->add_section('armada_font', array( 'title' => esc_html__('Armada Font', 'armada'), 'description' => '', 'priority' => 8, )); // Font Global /* $wp_customize->add_setting('font_global', array( 'default' => '0', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_global_control', array( 'label' => __('Global font size', 'armada'), 'section' => 'armada_font', 'settings' => 'font_global', 'type' => 'checkbox', )); */ // Font Main $wp_customize->add_setting('font_main', array( 'default' => 'open_sans', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_main_control', array( 'label' => esc_html__('armada Main Font', 'armada'), 'section' => 'armada_font', 'settings' => 'font_main', 'type' => 'select', 'choices' => array( 'open_sans' => 'Open Sans', 'roboto' => 'Roboto', 'lato' => 'Lato', 'sintony' => 'Sintony', 'titillium_web' => 'Titillium Web', 'raleway' => 'Raleway', 'montserrat' => 'Montserrat', 'oswald' => 'Oswald', 'exo_2' => 'Exo 2', 'fira_sans' => 'Fira Sans', 'varela_round' => 'Varela Round', 'arvo' => 'Arvo', 'roboto_slab' => 'Roboto Slab', 'bitter_slab' => 'bitter_slab', 'roboto_con' => 'Roboto Condensed', 'play' => 'Play', 'titillium_web' => 'Titillium Web', 'rajdhani' => 'Rajdhani', 'pt_sans' => 'PT Sans Slab', 'droid_sans' => 'Droid Sans', 'merriweather' => 'Merriweather', 'ubuntu' => 'Ubuntu', ), )); // Font Header $wp_customize->add_setting('font_header', array( 'default' => 'lato', 'sanitize_callback' => 'wp_strip_all_tags', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_header_control', array( 'label' => esc_html__('armada Header, Button, Menu Font', 'armada'), 'section' => 'armada_font', 'settings' => 'font_header', 'type' => 'select', 'choices' => array( 'open_sans' => 'Open Sans', 'roboto' => 'Roboto', 'lato' => 'Lato', 'sintony' => 'Sintony', 'titillium_web' => 'Titillium Web', 'raleway' => 'Raleway', 'montserrat' => 'Montserrat', 'oswald' => 'Oswald', 'exo_2' => 'Exo 2', 'fira_sans' => 'Fira Sans', 'varela_round' => 'Varela Round', 'arvo' => 'Arvo', 'roboto_slab' => 'Roboto Slab', 'bitter_slab' => 'bitter_slab', 'roboto_con' => 'Roboto Condensed', 'play' => 'Play', 'titillium_web' => 'Titillium Web', 'rajdhani' => 'Rajdhani', 'pt_sans' => 'PT Sans Slab', 'droid_sans' => 'Droid Sans', 'merriweather' => 'Merriweather', 'ubuntu' => 'Ubuntu', ), )); // Font Entry Header 1 $wp_customize->add_setting('font_h1', array( 'default' => '28', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h1_control', array( 'label' => __('Font Header 1 Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h1', )); $wp_customize->add_setting('font_h1_line', array( 'default' => '36', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h1_line_control', array( 'label' => __('Font Header 1 Line Height', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h1_line', )); // Font Entry Header 2 $wp_customize->add_setting('font_h2', array( 'default' => '24', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h2_control', array( 'label' => __('Font Header 2 Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h2', )); $wp_customize->add_setting('font_h2_line', array( 'default' => '30', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h2_line_control', array( 'label' => __('Font Header 2 Line Height', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h2_line', )); // Font Entry Header 3 $wp_customize->add_setting('font_h3', array( 'default' => '20', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h3_control', array( 'label' => __('Font Header 3 Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h3', )); $wp_customize->add_setting('font_h3_line', array( 'default' => '28', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h3_line_control', array( 'label' => __('Font Header 3 Line Height', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h3_line', )); // Font Entry Header 4 $wp_customize->add_setting('font_h4', array( 'default' => '18', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h4_control', array( 'label' => __('Font Header 4 Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h4', )); $wp_customize->add_setting('font_h4_line', array( 'default' => '26', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h4_line_control', array( 'label' => __('Font Header 4 Line Height', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h4_line', )); // Font Entry Header 5 $wp_customize->add_setting('font_h5', array( 'default' => '16', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h5_control', array( 'label' => __('Font Header 5 Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h5', )); // Font Entry Header 5 $wp_customize->add_setting('font_h5_line', array( 'default' => '24', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h5_line_control', array( 'label' => __('Font Header 5 Line Height', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h5_line', )); // Font Entry Header 6 $wp_customize->add_setting('font_h6', array( 'default' => '15', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h6_control', array( 'label' => __('Font Header 6 Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h6', )); $wp_customize->add_setting('font_h6_line', array( 'default' => '23', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_h6_line_control', array( 'label' => __('Font Header 6 Line Height', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_h6_line', )); // Font Entry Paragraph $wp_customize->add_setting('font_p', array( 'default' => '14', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_p_control', array( 'label' => __('Font Paragraph Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_p', )); $wp_customize->add_setting('font_p_line', array( 'default' => '22', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_p_line_control', array( 'label' => __('Font Paragraph Line Height', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_p_line', )); // Font Entry ul $wp_customize->add_setting('font_ul', array( 'default' => '14', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_ul_control', array( 'label' => __('Font List Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_ul', )); $wp_customize->add_setting('font_ul_line', array( 'default' => '22', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_ul_line_control', array( 'label' => __('Font List Line Height', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_ul_line', )); // Font Menu $wp_customize->add_setting('font_menu', array( 'default' => '15', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_menu_control', array( 'label' => __('Font Menu Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_menu', )); // Font Bottom $wp_customize->add_setting('font_bottom', array( 'default' => '15', 'sanitize_callback' => 'esc_attr', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('font_bottom_control', array( 'label' => __('Font Bottom Size', 'armada'), 'section' => 'armada_font', 'type' => 'number', 'settings' => 'font_bottom', )); } add_action( 'customize_register', 'armada_font_customizer' ); /** * Color Customizer */ function armada_color_customizer( $wp_customize ) { $wp_customize->add_section('armada_color', array( 'title' => esc_html__('Armada Color', 'armada'), 'description' => '', 'priority' => 9, )); // Color Main $wp_customize->add_setting('color_main', array( 'default' => '#77bf4f', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_main_control', array( 'label' => esc_html__( 'Main Color', 'armada' ), 'section' => 'armada_color', 'settings' => 'color_main', ))); // Color Sub $wp_customize->add_setting('color_sub', array( 'default' => '#f38a01', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_sub_control', array( 'label' => esc_html__( 'Sub Color', 'armada' ), 'section' => 'armada_color', 'settings' => 'color_sub', ) ) ); // Color Gray 1 $wp_customize->add_setting('color_gray_1', array( 'default' => '#222a2f', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_gray_1_control', array( 'label' => esc_html__( 'Gray Level 1 Color', 'armada' ), 'section' => 'armada_color', 'settings' => 'color_gray_1', ) ) ); // Color Gray 2 $wp_customize->add_setting('color_gray_2', array( 'default' => '#485257', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_gray_2_control', array( 'label' => esc_html__( 'Gray Level 2 Color', 'armada' ), 'section' => 'armada_color', 'settings' => 'color_gray_2', ) ) ); // Color Gray 3 $wp_customize->add_setting('color_gray_3', array( 'default' => '#808687', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_gray_3_control', array( 'label' => esc_html__( 'Gray Level 3 Color', 'armada' ), 'section' => 'armada_color', 'settings' => 'color_gray_3', ) ) ); // Color Gray 4 $wp_customize->add_setting('color_gray_4', array( 'default' => '#dedede', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_gray_4_control', array( 'label' => esc_html__( 'Gray Level 4 Color', 'armada' ), 'section' => 'armada_color', 'settings' => 'color_gray_4', ) ) ); // Color Gray 5 $wp_customize->add_setting('color_gray_5', array( 'default' => '#f5f5f5', 'sanitize_callback' => 'sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_gray_5_control', array( 'label' => esc_html__( 'Gray Level 5 Color', 'armada' ), 'section' => 'armada_color', 'settings' => 'color_gray_5', ) ) ); } add_action( 'customize_register', 'armada_color_customizer' ); /** * General Social Media */ function armada_social_media_customizer( $wp_customize ) { // Social Media Section $wp_customize->add_section('armada_social_media', array( 'title' => esc_html__('Armada Social Media', 'armada'), 'description' => '', 'priority' => 10, )); // Social Media Facebook $wp_customize->add_setting('social_facebook', array( 'default' => '#', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('armada_facebook_control', array( 'label' => esc_html__('armada Facebook', 'armada'), 'section' => 'armada_social_media', 'settings' => 'social_facebook', )); // Social Media Twitter $wp_customize->add_setting('social_twitter', array( 'default' => '#', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('armada_twitter_control', array( 'label' => esc_html__('armada Twitter', 'armada'), 'section' => 'armada_social_media', 'settings' => 'social_twitter', )); // Social Media Google $wp_customize->add_setting('social_google', array( 'default' => '#', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('armada_google_control', array( 'label' => esc_html__('armada Google+', 'armada'), 'section' => 'armada_social_media', 'settings' => 'social_google', )); // Social Media Youtube $wp_customize->add_setting('social_youtube', array( 'default' => '#', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('armada_youtube_control', array( 'label' => esc_html__('armada Youtube', 'armada'), 'section' => 'armada_social_media', 'settings' => 'social_youtube', )); // Social RSS $wp_customize->add_setting('social_rss', array( 'default' => '#', 'sanitize_callback' => 'esc_url', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('armada_rss_control', array( 'label' => esc_html__('armada RSS', 'armada'), 'section' => 'armada_social_media', 'settings' => 'social_rss', )); // Social Media Email $wp_customize->add_setting('social_email', array( 'default' => '', 'sanitize_callback' => 'sanitize_email', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('armada_email_control', array( 'label' => esc_html__('armada EMail', 'armada'), 'section' => 'armada_social_media', 'settings' => 'social_email', )); } add_action( 'customize_register', 'armada_social_media_customizer' ); /** * Adv Footer */ function armada_adv_customizer( $wp_customize ) { // Adv Section $wp_customize->add_section('armada_adv', array( 'title' => esc_html__('Armada Advertising', 'armada'), 'description' => '', 'priority' => 11, )); // Adv Page Picture $wp_customize->add_setting('adv_page_picture', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'adv_page_picture_control', array( 'label' => esc_html__( 'Page Advertising Picture', 'armada' ), 'section' => 'armada_adv', 'settings' => 'adv_page_picture', )) ); // Adv Page URL $wp_customize->add_setting('adv_page_url', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', )); $wp_customize->add_control('adv_page_url_control', array( 'label' => esc_html__('Page Advertising URL', 'armada'), 'section' => 'armada_adv', 'settings' => 'adv_page_url', )); // Adv Single Picture $wp_customize->add_setting('adv_single_picture', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'adv_single_picture_control', array( 'label' => esc_html__( 'Single Advertising Picture', 'armada' ), 'section' => 'armada_adv', 'settings' => 'adv_single_picture', )) ); // Adv Single URL $wp_customize->add_setting('adv_single_url', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', )); $wp_customize->add_control('adv_single_url_control', array( 'label' => esc_html__('Single Advertising URL', 'armada'), 'section' => 'armada_adv', 'settings' => 'adv_single_url', )); // Adv Footer Picture $wp_customize->add_setting('adv_footer_picture', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'adv_footer_picture_control', array( 'label' => esc_html__( 'Footer Advertising Picture', 'armada' ), 'section' => 'armada_adv', 'settings' => 'adv_footer_picture', )) ); // Adv Footer URL $wp_customize->add_setting('adv_footer_url', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url', )); $wp_customize->add_control('adv_footer_url_control', array( 'label' => esc_html__('Footer Advertising URL', 'armada'), 'section' => 'armada_adv', 'settings' => 'adv_footer_url', )); } add_action( 'customize_register', 'armada_adv_customizer' ); /** * Armada Tool */ function armada_tool_customizer( $wp_customize ) { // Tool Section $wp_customize->add_section('armada_tool', array( 'title' => esc_html__('Armada Tool', 'armada'), 'description' => '', 'priority' => 12, )); // Tool CSS $wp_customize->add_setting('tool_css', array( 'default' => '', 'sanitize_callback' => 'esc_textarea', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('tool_css_control', array( 'label' => esc_html__('Custom CSS', 'armada'), 'section' => 'armada_tool', 'settings' => 'tool_css', 'type' => 'textarea', )); // Tool JS $wp_customize->add_setting('tool_js', array( 'default' => '', 'sanitize_callback' => 'esc_textarea', 'capability' => 'edit_theme_options', )); $wp_customize->add_control('tool_js_control', array( 'label' => esc_html__('Custom Javascript', 'armada'), 'section' => 'armada_tool', 'settings' => 'tool_js', 'type' => 'textarea', )); } add_action( 'customize_register', 'armada_tool_customizer' );