label ); ?>

get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; /******************** Agama Upgrade ******************************************/ $wp_customize->add_section( 'agama_support_section', array( 'title' => __('Agama Support', 'agama'), 'description' => __('Hey! Buy us a cofee and we shall come with new features and updates. ','agama'), 'priority' => 3, )); $wp_customize->add_setting( 'agama_support', array( 'default' => false, 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control( new Agama_Customize_Agama_upgrade( $wp_customize,'agama_support', array( 'label' => __('Agama Upgrade', 'agama'), 'section' => 'agama_support_section', 'settings' => 'agama_support', ) ) ); /******************** Agama Theme Options Panel ******************************************/ $wp_customize->add_panel('agama_theme_options', array( 'priority' => 4, 'capability' => 'edit_theme_options', 'title' => __('Agama Theme Options', 'agama') )); /******************** Agama General Settings ******************************************/ $wp_customize->add_section('agama_general_section', array( 'title' => __( 'General', 'agama' ), 'priority' => 5, 'panel' => 'agama_theme_options' )); // Frontpage Box 2 Heading $wp_customize->add_setting( 'agama_favicon_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_favicon_heading', array( 'label' => __( 'Favicon', 'agama' ), 'section' => 'agama_general_section', 'settings' => 'agama_favicon_heading' ) ) ); // Agama Favicon $wp_customize->add_setting('agama_favicon', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'agama_favicon', array( 'label' => __( 'Favicon', 'agama' ), 'description' => __( 'Upload a 16x16px png/gif image that will be your favicon.', 'agama' ), 'section' => 'agama_general_section', 'settings' => 'agama_favicon' ) ) ); // Search Page Post Thumbnails $wp_customize->add_setting('agama_search_page_thumbnails', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_search_page_thumbnails', array( 'label' => __( 'Search Page Post Thumbnails', 'agama' ), 'description' => __( 'Enable posts thumbnails on search page ?', 'agama' ), 'section' => 'agama_general_section', 'settings' => 'agama_search_page_thumbnails', 'type' => 'checkbox' ) ) ); /******************** Agama Layout Settings ******************************************/ $wp_customize->add_section('agama_layout_section', array( 'title' => __( 'Layout', 'agama' ), 'priority' => 10, 'panel' => 'agama_theme_options' )); // Layout Style $wp_customize->add_setting('agama_layout_style', array( 'default' => 'boxed', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_layout_style', array( 'label' => __( 'Layout Style', 'agama' ), 'description' => __( 'Choose layout style.', 'agama' ), 'section' => 'agama_layout_section', 'settings' => 'agama_layout_style', 'type' => 'select', 'choices' => array ( 'fullwidth' => __( 'Fullwidth', 'agama' ), 'boxed' => __( 'Boxed Layout', 'agama' ) ) ) ) ); // Sidebar Position $wp_customize->add_setting('agama_sidebar_position', array( 'default' => 'right', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_sidebar_position', array( 'label' => __( 'Sidebar Position', 'agama' ), 'section' => 'agama_layout_section', 'settings' => 'agama_sidebar_position', 'type' => 'select', 'choices' => array ( 'left' => __( 'Left', 'agama' ), 'right' => __( 'Right', 'agama' ) ) ) ) ); // Smooth Scroll $wp_customize->add_setting( 'agama_nicescroll', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_nicescroll', array( 'label' => __( 'Smooth Scroll', 'agama' ), 'description' => __( 'Enable Smooth Scroll ?', 'agama' ), 'section' => 'agama_layout_section', 'settings' => 'agama_nicescroll', 'type' => 'checkbox' ) ) ); // Back to Top $wp_customize->add_setting( 'agama_to_top', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_to_top', array( 'label' => __( 'Back to Top', 'agama' ), 'description' => __( 'Enable back to top button ?', 'agama' ), 'section' => 'agama_layout_section', 'settings' => 'agama_to_top', 'type' => 'checkbox' ) ) ); /******************** Agama Logo Settings ******************************************/ $wp_customize->add_section('agama_logo_section', array( 'title' => __( 'Logo', 'agama' ), 'priority' => 20, 'panel' => 'agama_theme_options' )); // Agama Logo $wp_customize->add_setting('agama_logo', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'agama_logo', array( 'label' => __( 'Upload Logo', 'agama' ), 'section' => 'agama_logo_section', 'settings' => 'agama_logo', 'context' => '', 'priority' => 1, ) ) ); /******************** Agama Header Settings ******************************************/ $wp_customize->add_section('agama_header_section', array( 'title' => __('Header', 'agama'), 'priority' => 30, 'panel' => 'agama_theme_options' )); // Top Navigation $wp_customize->add_setting('agama_top_navigation', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_top_navigation', array( 'label' => __('Enable Top Navigation', 'agama'), 'section' => 'agama_header_section', 'settings' => 'agama_top_navigation', 'type' => 'checkbox', 'priority' => 1, ) ) ); // Header Style $wp_customize->add_setting( 'agama_header_style', array( 'default' => 'sticky', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Headers( $wp_customize, 'agama_header_style', array( 'label' => __( 'Header Style', 'agama' ), 'description' => __( 'Select header style.', 'agama' ), 'section' => 'agama_header_section', 'settings' => 'agama_header_style' ) ) ); // Header Top Margin $wp_customize->add_setting( 'agama_header_top_margin', array( 'default' => '0px', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_header_top_margin', array( 'label' => __('Top Margin', 'agama'), 'description' => __('Works with default header only.', 'agama'), 'section' => 'agama_header_section', 'settings' => 'agama_header_top_margin', 'type' => 'select', 'choices' => array ( '0px' => '0px', '1px' => '1px', '2px' => '2px', '3px' => '3px', '4px' => '4px', '5px' => '5px', '10px' => '10px', '15px' => '15px', '20px' => '20px', '25px' => '25px', '50px' => '50px', '100px' => '100px' ) ) ) ); // Header Top Border Size $wp_customize->add_setting( 'agama_header_top_border_size', array( 'default' => '3px', 'capability' => 'edit_theme_options', 'transport' => 'postMessage', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_header_top_border_size', array( 'label' => __( 'Top Border Size', 'agama' ), 'section' => 'agama_header_section', 'settings' => 'agama_header_top_border_size', 'type' => 'select', 'choices' => array ( '1px' => '1px', '2px' => '2px', '3px' => '3px', '4px' => '4px', '5px' => '5px', '6px' => '6px', '7px' => '7px', '8px' => '8px', '9px' => '9px', '10px' => '10px' ) ) ) ); /******************** Agama Breadcrumb Settings ******************************************/ $wp_customize->add_section( 'agama_breadcrumb_section', array( 'title' => __( 'Breadcrumb', 'agama' ), 'priority' => 40, 'panel' => 'agama_theme_options' )); // Enable Breadcrumb $wp_customize->add_setting( 'agama_breadcrumb', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_breadcrumb', array( 'label' => __( 'Enable Breadcrumb ?', 'agama' ), 'section' => 'agama_breadcrumb_section', 'settings' => 'agama_breadcrumb', 'type' => 'checkbox' ) ) ); // Disable Breadcrumb on Homepage $wp_customize->add_setting( 'agama_breadcrumb_homepage', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_breadcrumb_homepage', array( 'label' => __( 'Disable Breadcrumb on Homepage ?', 'agama' ), 'section' => 'agama_breadcrumb_section', 'settings' => 'agama_breadcrumb_homepage', 'type' => 'checkbox' ) ) ); // Breadcrumb Style $wp_customize->add_setting( 'agama_breadcrumb_style', array( 'default' => 'mini', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_breadcrumb_style', array( 'label' => __( 'Breadcrumb Style', 'agama' ), 'section' => 'agama_breadcrumb_section', 'settings' => 'agama_breadcrumb_style', 'type' => 'select', 'choices' => array( 'mini' => __( 'Mini', 'agama' ), 'normal' => __( 'Normal', 'agama' ) ) ) ) ); // Breadcrumb Background Color $wp_customize->add_setting( 'agama_breadcrumb_bg_color', array( 'default' => '#F5F5F5', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_breadcrumb_bg_color', array( 'label' => __( 'Breadcrumb Background Color', 'agama' ), 'section' => 'agama_breadcrumb_section', 'settings' => 'agama_breadcrumb_bg_color' ) ) ); // Breadcrumb Links Color $wp_customize->add_setting( 'agama_breadcrumb_links_color', array( 'default' => '#444', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_breadcrumb_links_color', array( 'label' => __( 'Breadcrumb Links Color', 'agama' ), 'section' => 'agama_breadcrumb_section', 'settings' => 'agama_breadcrumb_links_color' ) ) ); // Breadcrumb Text Color $wp_customize->add_setting( 'agama_breadcrumb_text_color', array( 'default' => '#444', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_breadcrumb_text_color', array( 'label' => __( 'Breadcrumb Text Color', 'agama' ), 'section' => 'agama_breadcrumb_section', 'settings' => 'agama_breadcrumb_text_color' ) ) ); /******************** Agama Frontpage Boxes Settings ******************************************/ $wp_customize->add_section( 'agama_frontpage_boxes_section', array( 'title' => __('Frontpage Boxes', 'agama'), 'priority' => 50, 'panel' => 'agama_theme_options' )); // Enable Frontpage Boxes Everywhere $wp_customize->add_setting( 'agama_frontpage_boxes_everywhere', array( 'default' => false, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_boxes_everywhere', array( 'label' => __( 'Enable Frontpage Boxes on All Pages ?', 'agama' ), 'description' => __( 'If not enabled, the frontpage boxes will be shown only on homepage or frontpage.', 'agama' ), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_boxes_everywhere', 'type' => 'checkbox' ) ) ); // Frontpage Box 2 Heading $wp_customize->add_setting( 'agama_frontpage_box_1_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_frontpage_box_1_heading', array( 'label' => __( 'Frontpage Box 1', 'agama' ), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_1_heading' ) ) ); // Frontpage Box 1 Enable $wp_customize->add_setting( 'agama_frontpage_box_1_enable', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_1_enable', array( 'label' => __('Box 1 Enable ?', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_1_enable', 'type' => 'checkbox' ) ) ); // Frontpage Box 1 Title $wp_customize->add_setting( 'agama_frontpage_box_1_title', array( 'default' => 'Responsive Layout', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_1_title', array( 'label' => __('Box 1 Title', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_1_title', 'type' => 'text' ) ) ); // Frontpage Box 1 FA Icon $wp_customize->add_setting( 'agama_frontpage_box_1_icon', array( 'default' => 'fa-tablet', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_1_icon', array( 'label' => __('Box 1 FontAwesome Icon', 'agama'), 'description' => sprintf('%s here %s', __('Accepted inputs is "fa-*" ex: fa-tablet, check', 'agama'), __('for all FontAwesome icon classes.', 'agama')), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_1_icon', 'type' => 'text' ) ) ); // Frontpage Box 1 Icon Color $wp_customize->add_setting( 'agama_frontpage_box_1_icon_color', array( 'default' => '#f7a805', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_frontpage_box_1_icon_color', array( 'label' => __('Box 1 Icon Color', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_1_icon_color' ) ) ); // Frontpage Box 1 Image $wp_customize->add_setting( 'agama_frontpage_1_img', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'agama_frontpage_1_img', array( 'label' => __('Box 1 Image', 'agama'), 'description' => __('You can use image instead of FontAwesome icon, just upload it here.', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_1_img' ) ) ); // Frontpage Box 1 Icon URL $wp_customize->add_setting( 'agama_frontpage_box_1_icon_url', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_1_icon_url', array( 'label' => __( 'Box 1 Icon / Image URL', 'agama' ), 'description' => __( 'Starting with: http://', 'agama' ), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_1_icon_url', 'type' => 'text' ) ) ); // Frontpage Box 1 Text $wp_customize->add_setting( 'agama_frontpage_box_1_text', array( 'default' => 'Powerful Layout with Responsive functionality that can be adapted to any screen size.', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_1_text', array( 'label' => __('Box 1 Text', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_1_text', 'type' => 'textarea' ) ) ); // Frontpage Box 2 Heading $wp_customize->add_setting( 'agama_frontpage_box_2_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_frontpage_box_2_heading', array( 'label' => __( 'Frontpage Box 2', 'agama' ), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_2_heading' ) ) ); // Frontpage Box 2 Enable $wp_customize->add_setting( 'agama_frontpage_box_2_enable', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_2_enable', array( 'label' => __('Box 2 Enable ?', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_2_enable', 'type' => 'checkbox' ) ) ); // Frontpage Box 2 Title $wp_customize->add_setting( 'agama_frontpage_box_2_title', array( 'default' => 'Endless Possibilities', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_2_title', array( 'label' => __('Box 2 Title', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_2_title', 'type' => 'text' ) ) ); // Frontpage Box 2 FA Icon $wp_customize->add_setting( 'agama_frontpage_box_2_icon', array( 'default' => 'fa-cogs', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_2_icon', array( 'label' => __('Box 2 FontAwesome Icon', 'agama'), 'description' => sprintf('%s here %s', __('Accepted inputs is "fa-*" ex: fa-tablet, check', 'agama'), __('for all FontAwesome icon classes.', 'agama')), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_2_icon', 'type' => 'text' ) ) ); // Frontpage Box 2 Icon Color $wp_customize->add_setting( 'agama_frontpage_box_2_icon_color', array( 'default' => '#f7a805', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_frontpage_box_2_icon_color', array( 'label' => __('Box 2 Icon Color', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_2_icon_color' ) ) ); // Frontpage Box 2 Image $wp_customize->add_setting( 'agama_frontpage_2_img', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'agama_frontpage_2_img', array( 'label' => __('Box 2 Image', 'agama'), 'description' => __('You can use image instead of FontAwesome icon, just upload it here.', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_2_img' ) ) ); // Frontpage Box 2 Icon URL $wp_customize->add_setting( 'agama_frontpage_box_2_icon_url', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_2_icon_url', array( 'label' => __( 'Box 2 Icon / Image URL', 'agama' ), 'description' => __( 'Starting with: http://', 'agama' ), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_2_icon_url', 'type' => 'text' ) ) ); // Frontpage Box 2 Text $wp_customize->add_setting( 'agama_frontpage_box_2_text', array( 'default' => 'Complete control on each & every element that provides endless customization possibilities.', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_2_text', array( 'label' => __('Box 2 Text', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_2_text', 'type' => 'textarea' ) ) ); // Frontpage Box 3 Heading $wp_customize->add_setting( 'agama_frontpage_box_3_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_frontpage_box_3_heading', array( 'label' => __( 'Frontpage Box 3', 'agama' ), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_3_heading' ) ) ); // Frontpage Box 3 Enable $wp_customize->add_setting( 'agama_frontpage_box_3_enable', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_3_enable', array( 'label' => __('Box 3 Enable ?', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_3_enable', 'type' => 'checkbox' ) ) ); // Frontpage Box 3 Title $wp_customize->add_setting( 'agama_frontpage_box_3_title', array( 'default' => 'Boxed & Wide Layouts', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_3_title', array( 'label' => __('Box 3 Title', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_3_title', 'type' => 'text' ) ) ); // Frontpage Box 3 FA Icon $wp_customize->add_setting( 'agama_frontpage_box_3_icon', array( 'default' => 'fa-laptop', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_3_icon', array( 'label' => __('Box 3 FontAwesome Icon', 'agama'), 'description' => sprintf('%s here %s', __('Accepted inputs is "fa-*" ex: fa-tablet, check', 'agama'), __('for all FontAwesome icon classes.', 'agama')), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_3_icon', 'type' => 'text' ) ) ); // Frontpage Box 3 Icon Color $wp_customize->add_setting( 'agama_frontpage_box_3_icon_color', array( 'default' => '#f7a805', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_frontpage_box_3_icon_color', array( 'label' => __('Box 3 Icon Color', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_3_icon_color' ) ) ); // Frontpage Box 3 Image $wp_customize->add_setting( 'agama_frontpage_3_img', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'agama_frontpage_3_img', array( 'label' => __('Box 3 Image', 'agama'), 'description' => __('You can use image instead of FontAwesome icon, just upload it here.', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_3_img' ) ) ); // Frontpage Box 3 Icon URL $wp_customize->add_setting( 'agama_frontpage_box_3_icon_url', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_3_icon_url', array( 'label' => __( 'Box 3 Icon / Image URL', 'agama' ), 'description' => __( 'Starting with: http://', 'agama' ), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_3_icon_url', 'type' => 'text' ) ) ); // Frontpage Box 3 Text $wp_customize->add_setting( 'agama_frontpage_box_3_text', array( 'default' => 'Stretch your Website to the Full Width or make it boxed to surprise your visitors.', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_3_text', array( 'label' => __('Box 3 Text', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_3_text', 'type' => 'textarea' ) ) ); // Frontpage Box 4 Heading $wp_customize->add_setting( 'agama_frontpage_box_4_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_frontpage_box_4_heading', array( 'label' => __( 'Frontpage Box 4', 'agama' ), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_4_heading' ) ) ); // Frontpage Box 4 Enable $wp_customize->add_setting( 'agama_frontpage_box_4_enable', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_4_enable', array( 'label' => __('Box 4 Enable ?', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_4_enable', 'type' => 'checkbox' ) ) ); // Frontpage Box 4 Title $wp_customize->add_setting( 'agama_frontpage_box_4_title', array( 'default' => 'Powerful Performance', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_4_title', array( 'label' => __('Box 4 Title', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_4_title', 'type' => 'text' ) ) ); // Frontpage Box 4 FA Icon $wp_customize->add_setting( 'agama_frontpage_box_4_icon', array( 'default' => 'fa-magic', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_4_icon', array( 'label' => __('Box 4 FontAwesome Icon', 'agama'), 'description' => sprintf('%s here %s', __('Accepted inputs is "fa-*" ex: fa-tablet, check', 'agama'), __('for all FontAwesome icon classes.', 'agama')), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_4_icon', 'type' => 'text' ) ) ); // Frontpage Box 4 Icon Color $wp_customize->add_setting( 'agama_frontpage_box_4_icon_color', array( 'default' => '#f7a805', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_frontpage_box_4_icon_color', array( 'label' => __('Box 4 Icon Color', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_4_icon_color' ) ) ); // Frontpage Box 4 Image $wp_customize->add_setting( 'agama_frontpage_4_img', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'agama_frontpage_4_img', array( 'label' => __('Box 4 Image', 'agama'), 'description' => __('You can use image instead of FontAwesome icon, just upload it here.', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_4_img' ) ) ); // Frontpage Box 4 Icon URL $wp_customize->add_setting( 'agama_frontpage_box_4_icon_url', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_4_icon_url', array( 'label' => __( 'Box 4 Icon / Image URL', 'agama' ), 'description' => __( 'Starting with: http://', 'agama' ), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_4_icon_url', 'type' => 'text' ) ) ); // Frontpage Box 4 Text $wp_customize->add_setting( 'agama_frontpage_box_4_text', array( 'default' => 'Optimized code that are completely customizable and deliver unmatched fast performance.', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_frontpage_box_4_text', array( 'label' => __('Box 4 Text', 'agama'), 'section' => 'agama_frontpage_boxes_section', 'settings' => 'agama_frontpage_box_4_text', 'type' => 'textarea' ) ) ); /******************** Agama Blog Settings ******************************************/ $wp_customize->add_section( 'agama_blog_section', array( 'title' => __('Blog', 'agama'), 'priority' => 60, 'panel' => 'agama_theme_options' )); // Blog Layout Heading $wp_customize->add_setting( 'agama_blog_layout_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_blog_layout_heading', array( 'label' => __( 'Blog Layout', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_layout_heading' ) ) ); // Blog Layout $wp_customize->add_setting( 'agama_blog_layout', array( 'default' => 'list', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_layout', array( 'label' => __( 'Blog Layout', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_layout', 'type' => 'select', 'choices' => array ( 'list' => __( 'List Style', 'agama' ), 'grid' => __( 'Grid Style', 'agama' ), 'small_thumbs' => __( 'Small Thumbs Style', 'agama' ) ) ) ) ); // Blog Thumbnails Heading $wp_customize->add_setting( 'agama_blog_post_thumbnails_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_blog_post_thumbnails_heading', array( 'label' => __( 'Featured Thumbnails', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_post_thumbnails_heading' ) ) ); // Blog Single Post Thumbnail $wp_customize->add_setting( 'agama_blog_single_post_thumbnail', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_single_post_thumbnail', array( 'label' => __( 'Enable Featured Thumbnails on Single Post ?', 'agama' ), 'description' => __( 'If enabled, the featured thumbnail will be shown on single posts.', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_single_post_thumbnail', 'type' => 'checkbox' ) ) ); // Blog Thumbnails Permalink $wp_customize->add_setting( 'agama_blog_thumbnails_permalink', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_thumbnails_permalink', array( 'label' => __( 'Blog Thumbnails Permalink', 'agama' ), 'description' => __( 'If enabled the post thumbnail image will become clickable image link.', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_thumbnails_permalink', 'type' => 'checkbox' ) ) ); // Blog Post Meta Heading $wp_customize->add_setting( 'agama_blog_post_meta_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_blog_post_meta_heading', array( 'label' => __( 'Post Meta', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_post_meta_heading' ) ) ); // Blog Post Meta Details $wp_customize->add_setting( 'agama_blog_post_meta', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_post_meta', array( 'label' => __('Enable Blog Post Meta ?', 'agama'), 'description' => __('If enabled, post details like: date, category, author & comments count will be shown below post title.', 'agama'), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_post_meta', 'type' => 'checkbox' ) ) ); // Post Author $wp_customize->add_setting( 'agama_blog_post_author', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_post_author', array( 'label' => __('Enable Post Author ?', 'agama'), 'description' => __( 'If enabled, post author name will be visible in post meta.', 'agama'), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_post_author', 'type' => 'checkbox' ) ) ); // Blog Excerpt Heading $wp_customize->add_setting( 'agama_blog_excerpt_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_blog_excerpt_heading', array( 'label' => __( 'Excerpt', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_excerpt_heading' ) ) ); // Blog Excerpt Lenght $wp_customize->add_setting( 'agama_blog_excerpt', array( 'default' => 70, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_excerpt', array( 'label' => __( 'Blog Excerpt Lenght', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_excerpt', 'type' => 'select', 'choices' => array ( '20' => 20, '40' => 40, '60' => 60, '80' => 80, '100' => 100, '120' => 120, '140' => 140, '160' => 160, '180' => 180, '200' => 200 ) ) ) ); // Blog Excerpt Enable Read More URL $wp_customize->add_setting( 'agama_blog_readmore_url', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_readmore_url', array( 'label' => __( 'Enable Read More URL ?', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_readmore_url', 'type' => 'checkbox' ) ) ); // About Author Heading $wp_customize->add_setting( 'agama_blog_post_about_author_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_blog_post_about_author_heading', array( 'label' => __( 'About Author', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_post_about_author_heading' ) ) ); // About Author $wp_customize->add_setting( 'agama_blog_about_author', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_about_author', array( 'label' => __('Enable About Author ?', 'agama'), 'description' => __('Display about author block below post.', 'agama'), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_about_author', 'type' => 'checkbox' ) ) ); // Infinite Scroll Heading $wp_customize->add_setting( 'agama_blog_post_infinite_scroll_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_blog_post_infinite_scroll_heading', array( 'label' => __( 'Infinite Scroll', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_post_infinite_scroll_heading' ) ) ); // Blog Infinite Scroll $wp_customize->add_setting( 'agama_blog_infinite_scroll', array( 'default' => false, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_infinite_scroll', array( 'label' => __('Enable Infinite Scroll ?', 'agama'), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_infinite_scroll', 'type' => 'checkbox' ) ) ); // Infinite Scroll Trigger $wp_customize->add_setting( 'agama_blog_infinite_trigger', array( 'default' => 'button', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blog_infinite_trigger', array( 'label' => __( 'Infinite Scroll Trigger', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blog_infinite_trigger', 'type' => 'select', 'choices' => array ( 'auto' => __( 'Automatic Trigger', 'agama' ), 'button' => __( 'Button Trigger', 'agama' ) ) ) ) ); /******************** Agama Colours Settings ******************************************/ $wp_customize->add_section( 'colors', array( 'title' => __('Colours', 'agama'), 'priority' => 100, 'panel' => 'agama_theme_options' )); // Agama Primary Color $wp_customize->add_setting('agama_primary_color', array( 'default' => '#f7a805', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_primary_color', array( 'label' => __( 'Agama Primary Color', 'agama' ), 'section' => 'colors', 'settings' => 'agama_primary_color' ) ) ); // Agama Skin Heading $wp_customize->add_setting( 'agama_skin_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_skin_heading', array( 'label' => __( 'Agama Skin', 'agama' ), 'section' => 'colors', 'settings' => 'agama_skin_heading' ) ) ); // Agama Skin $wp_customize->add_setting( 'agama_skin', array( 'default' => 'light', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_skin', array( 'label' => __( 'Skin', 'agama' ), 'section' => 'colors', 'settings' => 'agama_skin', 'type' => 'select', 'choices' => array ( 'light' => __( 'Light', 'agama' ), 'dark' => __( 'Dark', 'agama' ) ) ) ) ); // Footer Area Colors Heading $wp_customize->add_setting( 'agama_footer_area_colors_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Heading( $wp_customize, 'agama_footer_area_colors_heading', array( 'label' => __( 'Footer Area Colors', 'agama' ), 'section' => 'colors', 'settings' => 'agama_skin_heading' ) ) ); // Footer Widget BG Color $wp_customize->add_setting( 'agama_footer_widget_bg_color', array( 'default' => '#314150', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_footer_widget_bg_color', array( 'label' => __( 'Footer Widget Area BG Color', 'agama' ), 'description' => __( 'Set footer widget area background color.', 'agama' ), 'section' => 'colors', 'settings' => 'agama_footer_widget_bg_color' ) ) ); // Footer Bottom Area BG Color $wp_customize->add_setting( 'agama_footer_bottom_bg_color', array( 'default' => '#293744', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'agama_footer_bottom_bg_color', array( 'label' => __( 'Footer Bottom Area BG Color', 'agama' ), 'description' => __( 'Set footer bottom area background color.', 'agama' ), 'section' => 'colors', 'settings' => 'agama_footer_bottom_bg_color' ) ) ); /******************** Agama Social Icons Settings ******************************************/ $wp_customize->add_section( 'agama_social_icons_section', array( 'title' => __( 'Social Icons', 'agama' ), 'priority' => 110, 'panel' => 'agama_theme_options' )); // Social Icons in Top Navigation ? $wp_customize->add_setting( 'agama_top_nav_social', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_top_nav_social', array( 'label' => __( 'Enable social icons in top nav ?', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'agama_top_nav_social', 'type' => 'checkbox', ) ) ); // Social Icons in Footer ? $wp_customize->add_setting( 'agama_footer_social', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_key' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_footer_social', array( 'label' => __( 'Enable social icons in footer ?', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'agama_footer_social', 'type' => 'checkbox', ) ) ); // Social URL Target $wp_customize->add_setting( 'agama_social_url_target', array( 'default' => '_self', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_social_url_target', array( 'label' => __( 'Icons URL Target', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'agama_social_url_target', 'type' => 'select', 'choices' => array ( '_self' => '_self', '_blank'=> '_blank' ) ) ) ); // Social Facebook $wp_customize->add_setting( 'social_facebook', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_facebook', array( 'label' => __( 'Facebook URL', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'social_facebook', 'type' => 'text', ) ) ); // Social Twitter $wp_customize->add_setting( 'social_twitter', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_twitter', array( 'label' => __( 'Twitter URL', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'social_twitter', 'type' => 'text', ) ) ); // Social Flickr $wp_customize->add_setting( 'social_flickr', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_flickr', array( 'label' => __( 'Flickr URL', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'social_flickr', 'type' => 'text', ) ) ); // Social RSS $wp_customize->add_setting( 'social_rss', array( 'default' => esc_url_raw( get_bloginfo('rss2_url') ), 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_rss', array( 'label' => __( 'RSS URL', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'social_rss', 'type' => 'text', ) ) ); // Social Vimeo $wp_customize->add_setting( 'social_vimeo', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_vimeo', array( 'label' => __( 'Vimeo URL', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'social_vimeo', 'type' => 'text', ) ) ); // Social YouTube $wp_customize->add_setting( 'social_youtube', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_youtube', array( 'label' => __( 'Youtube URL', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'social_youtube', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'social_instagram', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_instagram', array( 'label' => __( 'Instagram URL', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'social_instagram', 'type' => 'text', ) ) ); // Social Pinterest $wp_customize->add_setting( 'social_pinterest', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_pinterest', array( 'label' => __( 'Pinterest URL', 'agama' ), 'section' => 'agama_social_icons_section', 'settings' => 'social_pinterest', 'type' => 'text', ) ) ); // Social Tumblr $wp_customize->add_setting( 'social_tumblr', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_tumblr', array( 'label' => __('Tumblr URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_tumblr', 'type' => 'text', ) ) ); // Social Google+ $wp_customize->add_setting( 'social_google', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_google', array( 'label' => __('Google+ URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_google', 'type' => 'text', ) ) ); // Social Dribbble $wp_customize->add_setting( 'social_dribbble', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_dribbble', array( 'label' => __('Dribbble URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_dribbble', 'type' => 'text', ) ) ); // Social Digg $wp_customize->add_setting( 'social_digg', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_digg', array( 'label' => __('Digg URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_digg', 'type' => 'text', ) ) ); // Social LinkedIn $wp_customize->add_setting( 'social_linkedin', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_linkedin', array( 'label' => __('Linkedin URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_linkedin', 'type' => 'text', ) ) ); // Social Blogger $wp_customize->add_setting( 'social_blogger', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_blogger', array( 'label' => __('Blogger URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_blogger', 'type' => 'text', ) ) ); // Social Skype $wp_customize->add_setting( 'social_skype', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_skype', array( 'label' => __('Skype URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_skype', 'type' => 'text', ) ) ); // Social Forrst $wp_customize->add_setting( 'social_forrst', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_forrst', array( 'label' => __('Forrst URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_forrst', 'type' => 'text', ) ) ); // Social MySpace $wp_customize->add_setting( 'social_myspace', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_myspace', array( 'label' => __('Myspace URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_myspace', 'type' => 'text', ) ) ); // Social Deviantart $wp_customize->add_setting( 'social_deviantart', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_deviantart', array( 'label' => __('Deviantart URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_deviantart', 'type' => 'text', ) ) ); // Social Yahoo $wp_customize->add_setting( 'social_yahoo', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_yahoo', array( 'label' => __('Yahoo URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_yahoo', 'type' => 'text', ) ) ); // Social Reddit $wp_customize->add_setting( 'social_reddit', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_reddit', array( 'label' => __('Reddit URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_reddit', 'type' => 'text', ) ) ); // Social PayPal $wp_customize->add_setting( 'social_paypal', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_paypal', array( 'label' => __('PayPal URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_paypal', 'type' => 'text', ) ) ); // Social DropBox $wp_customize->add_setting( 'social_dropbox', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_dropbox', array( 'label' => __('Dropbox URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_dropbox', 'type' => 'text', ) ) ); // Social SoundCloud $wp_customize->add_setting( 'social_soundcloud', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_soundcloud', array( 'label' => __('Soundcloud URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_soundcloud', 'type' => 'text', ) ) ); // Social VK $wp_customize->add_setting( 'social_vk', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_vk', array( 'label' => __('VK URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_vk', 'type' => 'text', ) ) ); // Social Email $wp_customize->add_setting( 'social_email', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'social_email', array( 'label' => __('Email URL', 'agama'), 'section' => 'agama_social_icons_section', 'settings' => 'social_email', 'type' => 'text', ) ) ); /******************** Agama Custom CSS ******************************************/ $wp_customize->add_section( 'agama_custom_css_section', array( 'title' => __('Custom CSS', 'agama'), 'priority' => 150, 'panel' => 'agama_theme_options' )); $wp_customize->add_setting( 'agama_custom_css', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_textarea' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_custom_css', array( 'label' => __( 'Custom CSS', 'agama' ), 'section' => 'agama_custom_css_section', 'settings' => 'agama_custom_css', 'type' => 'textarea' ) ) ); /******************** Agama Footer Settings ******************************************/ $wp_customize->add_section( 'agama_footer_section', array( 'title' => __('Footer', 'agama'), 'priority' => 160, 'panel' => 'agama_theme_options' )); // Copyright $wp_customize->add_setting( 'agama_footer_copyright', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_textarea' ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_footer_copyright', array( 'label' => __( 'Footer Copyright', 'agama' ), 'description' => __( 'Write your own footer copyright.', 'agama' ), 'section' => 'agama_footer_section', 'settings' => 'agama_footer_copyright', 'type' => 'textarea', ) ) ); /******************** Agama Body Background Animated Settings ******************************************/ $wp_customize->add_section('agama_body_background_animated_section', array( 'title' => __( 'Body Background Animated', 'agama' ), 'priority' => 170, 'panel' => 'agama_theme_options' )); $wp_customize->add_setting('agama_body_background_animated', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Pro( $wp_customize, 'agama_body_background_animated', array( 'label' => __( 'Animated Background', 'agama' ), 'section' => 'agama_body_background_animated_section', 'settings' => 'agama_body_background_animated' ) ) ); /******************** Agama Slider Settings ******************************************/ $wp_customize->add_section( 'agama_slider_section', array( 'title' => __( 'Sliders', 'agama' ), 'priority' => 180, 'panel' => 'agama_theme_options' )); // Agama Pro Feature $wp_customize->add_setting( 'agama_sliders', array( 'default' => false, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Pro( $wp_customize, 'agama_sliders', array( 'label' => __( 'Sliders', 'agama' ), 'section' => 'agama_slider_section', 'settings' => 'agama_sliders', ) ) ); /******************** Agama Share Icons Settings ******************************************/ $wp_customize->add_section( 'agama_share_icons_section', array( 'title' => __( 'Share Box', 'agama' ), 'priority' => 190, 'panel' => 'agama_theme_options' )); $wp_customize->add_setting( 'agama_share_icons', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Pro( $wp_customize, 'agama_share_icons', array( 'label' => __( 'Share Box', 'agama' ), 'section' => 'agama_share_icons_section', 'settings' => 'agama_share_icons' ) ) ); /******************** Agama Typography Settings ******************************************/ $wp_customize->add_section( 'agama_typography_section', array( 'title' => __( 'Typography', 'agama' ), 'priority' => 200, 'panel' => 'agama_theme_options' )); // Agama Pro Feature $wp_customize->add_setting( 'agama_typography', array( 'default' => false, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Pro( $wp_customize, 'agama_typography', array( 'label' => __( 'Typography', 'agama' ), 'section' => 'agama_typography_section', 'settings' => 'agama_typography', ) ) ); /******************** Agama Lightbox Settings ******************************************/ $wp_customize->add_section( 'agama_lightbox_section', array( 'title' => __( 'Lightbox', 'agama' ), 'priority' => 210, 'panel' => 'agama_theme_options' )); $wp_customize->add_setting( 'agama_lightbox', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Pro( $wp_customize, 'agama_lightbox', array( 'label' => __( 'Lightbox', 'agama' ), 'description' => __( 'Lightbox', 'agama' ), 'section' => 'agama_lightbox_section', 'setting' => 'agama_lightbox' ) ) ); /******************** Agama Contact Settings ******************************************/ $wp_customize->add_section( 'agama_contact_section', array( 'title' => __( 'Contact Page', 'agama' ), 'priority' => 220, 'panel' => 'agama_theme_options' )); $wp_customize->add_setting( 'agama_contact', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Customize_Agama_Pro( $wp_customize, 'agama_contact', array( 'label' => __( 'Contact', 'agama' ), 'description' => __( 'Contact', 'agama' ), 'section' => 'agama_contact_section', 'setting' => 'agama_contact' ) ) ); /******************** Agama WooCommerce Settings ******************************************/ $wp_customize->add_section( 'agama_woocommerce_section', array( 'title' => __( 'WooCommerce', 'agama' ), 'priority' => 230, 'panel' => 'agama_theme_options' )); // Products per Page $wp_customize->add_setting( 'agama_woocommerce', array( 'default' => '12', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr' )); $wp_customize->add_control( new Agama_Customize_Agama_Pro( $wp_customize, 'agama_woocommerce', array( 'label' => __('Products per Page', 'agama'), 'section' => 'agama_woocommerce_section', 'settings' => 'agama_woocommerce', ) ) ); } add_action( 'customize_register', 'agama_customize_register' ); /** * Enqueue Javascript postMessage handlers for the Customizer. * * Binds JS handlers to make the Customizer preview reload changes asynchronously. * * @since Agama 1.0 */ function agama_customize_preview_js() { wp_register_script( 'agama-customizer', get_template_directory_uri() . '/assets/js/theme-customizer.js', array( 'customize-preview' ), uniqid(), true ); $localize = array( 'skin_url' => esc_url( get_stylesheet_directory_uri() . '/assets/css/skins/' ), 'top_nav_enable' => esc_attr( get_theme_mod( 'agama_top_navigation', true ) ) ); wp_localize_script( 'agama-customizer', 'agama', $localize ); wp_enqueue_script( 'agama-customizer' ); } add_action( 'customize_preview_init', 'agama_customize_preview_js' ); /** * Generating Dynamic CSS * * @since Agama 1.0 */ function agama_customize_css() { ?>