'edit_theme_options', 'option_type' => 'theme_mod', ) ); /** * Configuration sample for the Kirki Customizer */ function kirki_demo_configuration_sample() { $args = array( 'logo_image' => get_template_directory_uri().'/assests/images/logo.png', 'description' => __( 'This is the theme description. You can edit it in the Kirki configuration and add whatever you want here.', 'blue-paper' ), // 'color_accent' => '#151515', // 'color_back' => '#fff', 'disable_loader' => true, ); return $args; } function wpc_setting_panels_sections( $wp_customize ) { /** * Add Panel general settings */ $wp_customize->add_panel( 'wpc_general_settings', array( 'priority' => 10, 'title' => __( 'General Theme Options', 'blue-paper' ), 'description' => __( 'site general settings', 'blue-paper' ), 'icon' => 'dashicons-admin-settings', ) ); /** * Add Panel typography */ $wp_customize->add_panel( 'wpc_typo_settings', array( 'priority' => 11, 'title' => __( 'Typography', 'blue-paper' ), 'description' => __( 'Typography settings', 'blue-paper' ), 'icon' => 'dashicons-admin-settings', ) ); /** * Add Layout Panel */ $wp_customize->add_panel( 'wpc_layout_settings', array( 'priority' => 11, 'title' => __( 'Layout', 'blue-paper' ), 'description' => __( 'Site Layout settings', 'blue-paper' ), 'icon' => 'dashicons-admin-settings', ) ); /** * Add Header Panel */ $wp_customize->add_panel( 'wpc_header_settings', array( 'priority' => 11, 'title' => __( 'Header', 'blue-paper' ), 'description' => __( 'Site Header settings', 'blue-paper' ), 'icon' => 'dashicons-admin-settings', ) ); /** * Add Sidebar Panel */ $wp_customize->add_panel( 'wpc_sidebar_settings', array( 'priority' => 11, 'title' => __( 'Sidebar', 'blue-paper' ), 'description' => __( 'Site Sidebar settings', 'blue-paper' ), 'icon' => 'dashicons-admin-settings', ) ); /** * Add Blog Panel */ $wp_customize->add_panel( 'wpc_blog_settings', array( 'priority' => 11, 'title' => __( 'Blog', 'blue-paper' ), 'description' => __( 'Site Blog settings', 'blue-paper' ), 'icon' => 'dashicons-admin-settings', ) ); /** * Add footer Panel */ $wp_customize->add_panel( 'wpc_footer_settings', array( 'priority' => 11, 'title' => __( 'Footer', 'blue-paper' ), 'description' => __( 'Site Footer settings', 'blue-paper' ), 'icon' => 'dashicons-admin-settings', ) ); /** * general section settings */ $wp_customize->add_section( 'wpc_primary_colors', array( 'title' => __( 'Primary Colors', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_general_settings', 'icon' => 'dashicons-admin-settings', ) ); $wp_customize->add_section( 'wpc_social_share', array( 'title' => __( 'Social Share', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_general_settings', ) ); $wp_customize->add_section( 'wpc_pre_loader', array( 'title' => __( 'Pre Loader', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_general_settings', ) ); $wp_customize->add_section( 'wpc_page_title', array( 'title' => __( 'Page Title', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_general_settings', ) ); $wp_customize->add_section( 'wpc_top_to_bottom', array( 'title' => __( 'Bottom To Top', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_general_settings', ) ); // typography section $wp_customize->add_section( 'body_typo_sec', array( 'title' => __( 'Body', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_typo_settings', 'icon' => 'dashicons-admin-settings', ) ); $wp_customize->add_section( 'button_typo_sec', array( 'title' => __( 'Buttons', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_typo_settings', ) ); $wp_customize->add_section( 'menu_typo_sec', array( 'title' => __( 'Main Menu', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_typo_settings', ) ); $wp_customize->add_section( 'blog_title_typo_sec', array( 'title' => __( 'Blog Title', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_typo_settings', ) ); $wp_customize->add_section( 'site_heading_typo_sec', array( 'title' => __( 'Heading', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_typo_settings', ) ); $wp_customize->add_section( 'widget_heading_typo_sec', array( 'title' => __( 'Sidebar Widget Heading', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_typo_settings', ) ); $wp_customize->add_section( 'footer_callout_typo_sec', array( 'title' => __( 'Footer Callout', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_typo_settings', ) ); $wp_customize->add_section( 'footer_copyright_typo_sec', array( 'title' => __( 'Copyright Text', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_typo_settings', ) ); // layout section $wp_customize->add_section( 'site_layout_sec', array( 'title' => __( 'Page Content Layout', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_layout_settings', ) ); // Header section $wp_customize->add_section( 'site_header_sec', array( 'title' => __( 'General', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_header_settings', ) ); $wp_customize->add_section( 'site_logo_sec', array( 'title' => __( 'Logo', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_header_settings', ) ); $wp_customize->add_section( 'site_menu_sec', array( 'title' => __( 'Menu', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_header_settings', ) ); $wp_customize->add_section( 'header_social_sec', array( 'title' => __( 'Social Links', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_header_settings', ) ); $wp_customize->add_section( 'header_post_carousel_sec', array( 'title' => __( 'Post Carousel', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_header_settings', ) ); $wp_customize->add_section( 'header_topbar', array( 'title' => __( 'Topbar', 'blue-paper' ), 'priority' => 10, 'panel' => 'wpc_header_settings', ) ); $wp_customize->add_section( 'sidebar_sec', array( 'title' => __( 'Sidebar', 'blue-paper' ), 'priority' => 11, //'panel' => 'wpc_sidebar_settings', ) ); $wp_customize->add_section( 'blog_settings', array( 'title' => __( 'Archives & Entries', 'blue-paper' ), 'priority' => 11, 'panel' => 'wpc_blog_settings', ) ); $wp_customize->add_section( 'single_post_settings', array( 'title' => __( 'Single', 'blue-paper' ), 'priority' => 11, 'panel' => 'wpc_blog_settings', ) ); $wp_customize->add_section( 'footer_callout_settings', array( 'title' => __( 'Callout', 'blue-paper' ), 'priority' => 11, 'panel' => 'wpc_footer_settings', ) ); $wp_customize->add_section( 'footer_carousel', array( 'title' => __( 'Post Carousel', 'blue-paper' ), 'priority' => 11, 'panel' => 'wpc_footer_settings', ) ); $wp_customize->add_section( 'footer_social_link', array( 'title' => __( 'Footer social', 'blue-paper' ), 'priority' => 11, 'panel' => 'wpc_footer_settings', ) ); $wp_customize->add_section( 'footer_copyright_text', array( 'title' => __( 'Footer Copyright', 'blue-paper' ), 'priority' => 11, 'panel' => 'wpc_footer_settings', ) ); //More code to come } function wpc_settings_fields($fields) { /** * general section settings */ $fields[] = array( 'type' => 'color', 'settings' => 'primar_color', 'label' => __( 'Primary Color', 'blue-paper' ), 'description' => __( 'Choose Primary color', 'blue-paper' ), 'section' => 'wpc_primary_colors', 'priority' => 10, 'default' => '', 'output' => array( array( 'element' => '', 'property' => 'color' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_social_share', 'label' => __( 'Social Share', 'blue-paper' ), 'description' => __( 'Enable / Disable Social Share', 'blue-paper' ), 'section' => 'wpc_social_share', 'default' => 1, 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'on', 'blue-paper' ), 'disable' => esc_attr__( 'off', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_facebook_share', 'label' => __( 'Facebook', 'blue-paper' ), 'description' => __( 'Enable Facebook', 'blue-paper' ), 'section' => 'wpc_social_share', 'default' => 1, 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'on', 'blue-paper' ), 'disable' => esc_attr__( 'off', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_twitter_share', 'label' => __( 'Twitter', 'blue-paper' ), 'description' => __( 'Enable Twitter', 'blue-paper' ), 'section' => 'wpc_social_share', 'default' => 1, 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'on', 'blue-paper' ), 'disable' => esc_attr__( 'off', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_pintrest_share', 'label' => __( 'Pintrest', 'blue-paper' ), 'description' => __( 'Enable pintrest', 'blue-paper' ), 'section' => 'wpc_social_share', 'default' => 1, 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'on', 'blue-paper' ), 'disable' => esc_attr__( 'off', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_linkedin_share', 'label' => __( 'Linked in', 'blue-paper' ), 'description' => __( 'Enable Linked in', 'blue-paper' ), 'section' => 'wpc_social_share', 'default' => 1, 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'on', 'blue-paper' ), 'disable' => esc_attr__( 'off', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_googleplus_share', 'label' => __( 'Google Plus', 'blue-paper' ), 'description' => __( 'Enable Google Plus', 'blue-paper' ), 'section' => 'wpc_social_share', 'default' => 1, 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'on', 'blue-paper' ), 'disable' => esc_attr__( 'off', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_pre_loader', 'label' => __( 'Pre Loader', 'blue-paper' ), 'description' => __( 'Enable / Disable pre loader', 'blue-paper' ), 'section' => 'wpc_pre_loader', 'default' => 1, 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'on', 'blue-paper' ), 'disable' => esc_attr__( 'off', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'select', 'settings' => 'enable_page_title', 'label' => __( 'Page Title', 'blue-paper' ), 'description' => __( 'Enable / Disable page title', 'blue-paper' ), 'section' => 'wpc_page_title', 'default' => 1, 'priority' => 10, 'choices' => array( 'true' => esc_attr__( 'Enable', 'blue-paper' ), 'false' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_top_to_bottom', 'label' => __( 'Bottom To Top', 'blue-paper' ), 'description' => __( 'Enable / Disable bottom to top button', 'blue-paper' ), 'section' => 'wpc_top_to_bottom', 'default' => 1, 'priority' => 10, 'choices' => array( 'true' => esc_attr__( 'Enable', 'blue-paper' ), 'false' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'bottom_to_top_bg', 'label' => __( 'Background', 'blue-paper' ), 'description' => __( 'add background color', 'blue-paper' ), 'section' => 'wpc_top_to_bottom', 'default' => '#464646', 'priority' => 10, 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '#back-to-top', 'property' => 'background-color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'bottom_to_top_color', 'label' => __( 'Color', 'blue-paper' ), 'description' => __( 'choose color', 'blue-paper' ), 'section' => 'wpc_top_to_bottom', 'default' => '', 'priority' => 10, 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '#back-to-top', 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'bottom_to_top_hover_bg', 'label' => __( 'Background on hover', 'blue-paper' ), 'description' => __( 'choose background on hover', 'blue-paper' ), 'section' => 'wpc_top_to_bottom', 'default' => '#555', 'priority' => 10, 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '#back-to-top:hover', 'property' => 'background-color', ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'body_typo', 'section' => 'body_typo_sec', 'default' => array( 'font-family' => 'Lato', 'variant' => 'regular', 'font-size' => '14px', 'line-height' => '1.5', 'letter-spacing' => '0', 'color' => '#717171', 'text-transform' => 'none', ), 'priority' => 10, 'output' => array( array( 'element' => 'body', ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'buttons_typo', 'section' => 'button_typo_sec', 'default' => array( 'font-family' => 'Roboto', 'variant' => 'regular', 'font-size' => '14px', 'line-height' => '1.5', 'letter-spacing' => '0', 'color' => '#333333', 'text-transform' => 'none', ), 'priority' => 10, 'output' => array( array( 'element' => 'button', ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'menu_typo', 'label' => __( 'Main Menu', 'blue-paper' ), 'description' => __( 'Choose typography for main menu', 'blue-paper' ), 'section' => 'menu_typo_sec', 'default' => array( 'font-family' => "inherit", 'variant' => 'regular', 'font-size' => '14px', 'letter-spacing' => '0', 'text-transform' => 'none', ), 'priority' => 10, 'output' => array( array( 'element' => '.header_s .menu-block .ownavigation .navbar-nav > li a', ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'sub_menu_typo', 'label' => __( 'Main Menu: Dropdowns', 'blue-paper' ), 'description' => __( 'Choose typography for dropdowns menu', 'blue-paper' ), 'section' => 'menu_typo_sec', 'default' => array( 'font-family' => "inherit", 'variant' => 'regular', 'font-size' => '14px', 'letter-spacing' => '0', 'text-transform' => 'none', ), 'priority' => 10, 'output' => array( array( 'element' => '.header_s .ownavigation .navbar-nav li .dropdown-menu li > a', ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'post_title_typo', 'label' => __( 'Blog Entry Title', 'blue-paper' ), 'description' => __( 'Choose typography for Blog Post Title', 'blue-paper' ), 'section' => 'blog_title_typo_sec', 'default' => array( 'font-family' => "inherit", 'variant' => '', 'font-size' => '1.846em', 'letter-spacing' => '1.25', 'text-transform' => 'none', ), 'priority' => 10, 'output' => array( array( 'element' => '.type-post .entry-header .entry-title', ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'heading_typo', 'label' => __( 'Heading Typography', 'blue-paper' ), 'description' => __( 'Choose typography for site heading', 'blue-paper' ), 'section' => 'site_heading_typo_sec', 'default' => array( 'font-family' => "inherit", 'variant' => '600', 'font-size' => '24px', 'letter-spacing' => '1.25', 'text-transform' => 'none', ), 'priority' => 10, 'output' => array( array( 'element' => 'body h1,h2,h3,h4,h5,h6', ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'sidebar_heading_typo', 'label' => __( 'Sidebar Widget Heading', 'blue-paper' ), 'description' => __( 'Choose typography for Widget Title', 'blue-paper' ), 'section' => 'widget_heading_typo_sec', 'default' => array( 'font-family' => "inherit", 'variant' => '600', 'font-size' => '16px', 'letter-spacing' => '1.66', 'text-transform' => 'none', ), 'priority' => 10, 'output' => array( array( 'element' => array( '.widget-title', '.widget_latestposts .latest-content h5', ), ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'callout_heading_typo', 'label' => __( 'Callout Heading', 'blue-paper' ), 'description' => __( 'Choose typography for Widget Title', 'blue-paper' ), 'section' => 'footer_callout_typo_sec', 'default' => array( 'font-family' => "inherit", 'variant' => '600', 'font-size' => '24px', 'letter-spacing' => '-0.6', 'line-height' => '1.25', 'text-transform' => 'capitalize', ), 'priority' => 10, 'output' => array( array( 'element' => '.subscribe-block .container > h3', ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'callout_btn_typo', 'label' => __( 'Callout Button', 'blue-paper' ), 'description' => __( 'Choose typography for Callout Button', 'blue-paper' ), 'section' => 'footer_callout_typo_sec', 'default' => array( 'font-family' => "inherit", 'variant' => '600', 'font-size' => '14px', 'text-transform' => 'uppercase', ), 'priority' => 10, 'output' => array( array( 'element' => '.subscribe-block .container > form .btn', ), ), ); $fields[] = array( 'type' => 'typography', 'settings' => 'copyright_typo', 'label' => __( 'Copyright Text', 'blue-paper' ), 'description' => __( 'Choose typography for cppyright Text', 'blue-paper' ), 'section' => 'footer_copyright_typo_sec', 'default' => array( 'font-family' => "inherit", 'variant' => 'regular', 'font-size' => '14px', 'text-transform' => 'none', ), 'priority' => 10, 'output' => array( array( 'element' => '.copyright > p', ), ), ); // site layout section fields $fields[] = array( 'type' => 'select', 'settings' => 'content_layout', 'label' => esc_html__( 'Page Content Layout', 'blue-paper' ), 'description' => 'Content Layout Select your default content layout for your site. You can always browse to different tabs in the Customizer such as the blog tab to alter your layout specifically for your page', 'section' => 'site_layout_sec', 'default' => 'right_sidebar', 'priority' => 10, 'choices' => array( 'right_sidebar' => esc_attr__( 'Right Sidebar', 'blue-paper' ), 'left_sidebar' => esc_attr__( 'Left Sidebar', 'blue-paper' ), 'full_width' => esc_attr__( 'Full Width', 'blue-paper' ), ), ); // header section $fields[] = array( 'type' => 'select', 'settings' => 'enable_header', 'label' => __( 'Enable Header', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable header globaly', 'blue-paper' ), 'section' => 'site_header_sec', 'default' => 'true`', 'priority' => 10, 'choices' => array( "true" => esc_attr__( 'Enable', 'blue-paper' ), "false" => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'select', 'settings' => 'site_header_layout', 'label' => esc_html__( 'Header Style', 'blue-paper' ), 'description' => 'Choose Header style', 'section' => 'site_header_sec', 'default' => 'center-logo', 'priority' => 10, 'choices' => array( 'center-logo' => esc_attr__( 'Center Logo', 'blue-paper' ), 'left-logo' => esc_attr__( 'Left Logo', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_header_search', 'label' => __( 'Enable / Disable Search Icon', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable header search icon', 'blue-paper' ), 'section' => 'site_header_sec', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_header_login', 'label' => __( 'Enable / Disable User Login', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable header User Login Navigation', 'blue-paper' ), 'section' => 'site_header_sec', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'image', 'settings' => 'site_logo', 'label' => __( 'Upload Logo', 'blue-paper' ), 'description' => __( 'Choose Logo', 'blue-paper' ), 'section' => 'site_logo_sec', 'priority' => 10, 'default' => '', ); $fields[] = array( 'type' => 'dimension', 'settings' => 'logo_top_margin', 'label' => __( 'Margin Top', 'blue-paper' ), 'section' => 'site_logo_sec', 'default' => esc_attr__( '20px', 'blue-paper' ), 'description' => __( 'add logo top margin by default : 30px', 'blue-paper' ), 'priority' => 10, 'output' => array( array( 'element' => '.header_s .header-pad', 'property' => 'padding-top', ), ), ); $fields[] = array( 'type' => 'dimension', 'settings' => 'logo_bottom_margin', 'label' => __( 'Margin Bottom', 'blue-paper' ), 'section' => 'site_logo_sec', 'default' => esc_attr__( '20px', 'blue-paper' ), 'description' => __( 'add logo bottom margin by default : 30px', 'blue-paper' ), 'priority' => 10, 'output' => array( array( 'element' => '.header_s .header-pad', 'property' => 'padding-bottom', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'navbar_background', 'label' => esc_attr__( 'Background Control', 'blue-paper' ), 'description' => esc_attr__( 'Choose navbar background color', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.header_s .menu-block', 'property' => 'background-color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'navbar_top_border', 'label' => esc_attr__( 'Navbar Top Border', 'blue-paper' ), 'description' => esc_attr__( 'Choose top border color', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => '.header_s .menu-block', 'property' => 'border-top-color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'link_color', 'label' => esc_attr__( 'Link Color', 'blue-paper' ), 'description' => esc_attr__( 'choose link color', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.header_s .ownavigation .navbar-nav > li.dropdown .dropdown-toggle::after', '.header_s .menu-block .ownavigation .navbar-nav > li a', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'link_hover_color', 'label' => esc_attr__( 'Link:hover Color', 'blue-paper' ), 'description' => esc_attr__( 'choose link color on hover', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.header_s .menu-block .ownavigation .navbar-nav li a:hover', '.header_s .ownavigation .navbar-nav > li.dropdown:hover .dropdown-toggle::after', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'link_active_color', 'label' => esc_attr__( 'Link:active Color', 'blue-paper' ), 'description' => esc_attr__( 'choose link color on active', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.header_s .menu-block .ownavigation .navbar-nav > li.current_page_item a', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'dropdown_background', 'label' => esc_attr__( 'Dropdown Background Color', 'blue-paper' ), 'description' => esc_attr__( 'choose background for dropdown', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.header_s .ownavigation ul li > .dropdown-menu', ), 'property' => 'background-color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'dropdown_link_border', 'label' => esc_attr__( 'Border Color', 'blue-paper' ), 'description' => esc_attr__( 'Choose Dropdown Link Border Color', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.header_s .ownavigation .navbar-nav li .dropdown-menu li > a', ), 'property' => 'border-top-color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'dropdown_link_color', 'label' => esc_attr__( 'Dropdown Link Color', 'blue-paper' ), 'description' => esc_attr__( 'Choose Dropdown Link Color', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.header_s .ownavigation .navbar-nav li .dropdown-menu li > a', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'dropdown_link_hover_color', 'label' => esc_attr__( 'Dropdown Link Hover Color', 'blue-paper' ), 'description' => esc_attr__( 'Choose Dropdown Link Color on hover', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.header_s .ownavigation .navbar-nav li .dropdown-menu li > a:hover', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'search_icon_color', 'label' => esc_attr__( 'Search Icon Color', 'blue-paper' ), 'description' => esc_attr__( 'choose search icon color here', 'blue-paper' ), 'section' => 'site_menu_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.pe-7s-search:before', ), 'property' => 'color', ), ), ); // header social section $fields[] = array( 'type' => 'switch', 'settings' => 'enable_header_social', 'label' => __( 'Enable / Disable Social', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable header social section', 'blue-paper' ), 'section' => 'header_social_sec', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'url', 'settings' => 'header_facebook_social', 'label' => esc_attr__( 'Facebook', 'blue-paper' ), 'section' => 'header_social_sec', 'description' => esc_attr__( 'Add facebook social link here', 'blue-paper' ), 'default' => 'http://facebook.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'header_twitter_social', 'label' => esc_attr__( 'Twitter', 'blue-paper' ), 'section' => 'header_social_sec', 'description' => esc_attr__( 'Add Twitter social link here', 'blue-paper' ), 'default' => 'http://twitter.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'header_linkedin_social', 'label' => esc_attr__( 'Linkedin', 'blue-paper' ), 'section' => 'header_social_sec', 'description' => esc_attr__( 'Add Linkedin social link here', 'blue-paper' ), 'default' => 'http://linkedin.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'header_googleplus_social', 'label' => esc_attr__( 'Google Plus', 'blue-paper' ), 'section' => 'header_social_sec', 'description' => esc_attr__( 'Add Google Plus social link here', 'blue-paper' ), 'default' => 'http://googleplus.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'header_instagram_social', 'label' => esc_attr__( 'Instagram', 'blue-paper' ), 'section' => 'header_social_sec', 'description' => esc_attr__( 'Add Instagram social link here', 'blue-paper' ), 'default' => 'http://googleplus.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'header_youtube_social', 'label' => esc_attr__( 'Youtube', 'blue-paper' ), 'section' => 'header_social_sec', 'description' => esc_attr__( 'Add Youtube social link here', 'blue-paper' ), 'default' => '', ); $fields[] = array( 'type' => 'url', 'settings' => 'header_pintrest_social', 'label' => esc_attr__( 'Pintrest', 'blue-paper' ), 'section' => 'header_social_sec', 'description' => esc_attr__( 'Add Pintrest social link here', 'blue-paper' ), 'default' => '', ); $fields[] = array( 'type' => 'url', 'settings' => 'header_rss_social', 'label' => esc_attr__( 'Rss', 'blue-paper' ), 'section' => 'header_social_sec', 'description' => esc_attr__( 'Add Rss social link here', 'blue-paper' ), 'default' => '', ); $fields[] = array( 'type' => 'color', 'settings' => 'social_icon_color', 'label' => esc_attr__( 'Social Icon Color', 'blue-paper' ), 'description' => esc_attr__( 'choose header social icon color here', 'blue-paper' ), 'section' => 'header_social_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.top-header .top-social li > a', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'social_icon_hover_color', 'label' => esc_attr__( 'Social Icon Hover Color', 'blue-paper' ), 'description' => esc_attr__( 'choose header social icon color on hover', 'blue-paper' ), 'section' => 'header_social_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.top-header .top-social li > a:hover', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'text', 'settings' => 'header_carousel_cat_id', 'label' => __( 'Category ID', 'blue-paper' ), 'description' => esc_attr__( 'add category id for posts carousel, This carousel will be show up in header section', 'blue-paper' ), 'section' => 'header_post_carousel_sec', 'default' => '1', 'priority' => 10, ); $fields[] = array( 'type' => 'text', 'settings' => 'header_carousel_post_count', 'label' => __( 'Count', 'blue-paper' ), 'description' => esc_attr__( 'Enter a digit how many do you want to show', 'blue-paper' ), 'section' => 'header_post_carousel_sec', 'default' => '6', 'priority' => 10, ); // topbar settings start $fields[] = array( 'type' => 'select', 'settings' => 'enable_header_topbar', 'label' => __( 'Topbar', 'blue-paper' ), 'description' => esc_attr__( 'Enable or disable topbar', 'blue-paper' ), 'section' => 'header_topbar', 'priority' => 10, 'default' => 'true', 'choices' => array( 'true' => esc_attr__( 'Enable', 'blue-paper' ), 'false' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'text', 'settings' => 'tobar_phone', 'label' => __( 'Phone', 'blue-paper' ), 'description' => esc_attr__( 'Add Phone number for topbar', 'blue-paper' ), 'section' => 'header_topbar', 'priority' => 10, 'default' => '+1 2225 668 6559', ); $fields[] = array( 'type' => 'text', 'settings' => 'tobar_email', 'label' => __( 'Email', 'blue-paper' ), 'description' => esc_attr__( 'Add Email for topbar', 'blue-paper' ), 'section' => 'header_topbar', 'priority' => 10, 'default' => 'admin@wpcalipers.com', ); $fields[] = array( 'type' => 'text', 'settings' => 'tobar_location', 'label' => __( 'Location', 'blue-paper' ), 'description' => esc_attr__( 'Add Location for topbar', 'blue-paper' ), 'section' => 'header_topbar', 'priority' => 10, 'default' => 'address, city, NY, 95035', ); $fields[] = array( 'type' => 'color', 'settings' => 'tobar_bg', 'label' => __( 'Background', 'blue-paper' ), 'description' => esc_attr__( 'Add topbar background', 'blue-paper' ), 'section' => 'header_topbar', 'priority' => 10, 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.topbar', ), 'property' => 'background-color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'tobar_text_color', 'label' => __( 'color', 'blue-paper' ), 'description' => esc_attr__( 'Add text color', 'blue-paper' ), 'section' => 'header_topbar', 'priority' => 10, 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.topbar', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'tobar_icon_clr', 'label' => __( 'Icone Color', 'blue-paper' ), 'description' => esc_attr__( 'Add icon color eg: email , phone', 'blue-paper' ), 'section' => 'header_topbar', 'priority' => 10, 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.topbar .fa', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'sidebar_background_clr', 'label' => esc_attr__( 'Sidebar Background Color', 'blue-paper' ), 'description' => esc_attr__( 'Choose background color', 'blue-paper' ), 'section' => 'sidebar_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.widget-area', ), 'property' => 'background-color', ), ), ); $fields[] = array( 'type' => 'dimension', 'settings' => 'sidebar_padding', 'label' => esc_attr__( 'Padding', 'blue-paper' ), 'default' => esc_attr__( '', 'blue-paper' ), 'description' => esc_attr__( 'Add Padding for sidebar ', 'blue-paper' ), 'section' => 'sidebar_sec', 'default' => '', 'output' => array( array( 'element' => array( '.widget-area', ), 'property' => 'padding', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'sidebar_link_clr', 'label' => esc_attr__( 'Link Color', 'blue-paper' ), 'description' => esc_attr__( 'Choose Link color', 'blue-paper' ), 'section' => 'sidebar_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.widget-area a', '.widget_latestposts .latest-content h5 > a', ), 'property' => 'color', ), ), ); $fields[] = array( 'type' => 'color', 'settings' => 'sidebar_link_hover_clr', 'label' => esc_attr__( 'Link Hover Color', 'blue-paper' ), 'description' => esc_attr__( 'Choose Link color on hover', 'blue-paper' ), 'section' => 'sidebar_sec', 'default' => '', 'choices' => array( 'alpha' => true, ), 'output' => array( array( 'element' => array( '.widget-area a:hover', '.widget_latestposts .latest-content h5 > a:hover', ), 'property' => 'color', ), ), ); // blog settings $fields[] = array( 'type' => 'select', 'settings' => 'blog_layout_settings', 'label' => esc_attr__( 'Archive Layout', 'blue-paper' ), 'description' => esc_attr__( 'Choose Layout', 'blue-paper' ), 'section' => 'blog_settings', 'default' => 'right_sidebar', 'choices' => array( 'right_sidebar' => esc_attr__( 'Right Sidebar', 'blue-paper' ), 'left_sidebar' => esc_attr__( 'Left Sidebar', 'blue-paper' ), 'full_width' => esc_attr__( 'No Sidebar', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'select', 'settings' => 'blog_archive_style', 'label' => esc_attr__( 'Style', 'blue-paper' ), 'description' => esc_attr__( 'Choose archive page style', 'blue-paper' ), 'section' => 'blog_settings', 'default' => 'left-thumbnail', 'choices' => array( 'left-thumbnail' => esc_attr__( 'Left Thumbnail', 'blue-paper' ), 'grid' => esc_attr__( 'Two Columns', 'blue-paper' ), 'top-thumbnail' => esc_attr__( 'Top Thumbnail', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'text', 'settings' => 'read_more_text', 'label' => esc_attr__( 'Read More Button Text', 'blue-paper' ), 'description' => esc_attr__( '', 'blue-paper' ), 'section' => 'blog_settings', 'default' => 'Read More', ); // single page settings $fields[] = array( 'type' => 'select', 'settings' => 'single_layout_settings', 'label' => esc_attr__( 'Layout', 'blue-paper' ), 'description' => esc_attr__( 'Choose single page layout', 'blue-paper' ), 'section' => 'single_post_settings', 'default' => 'right_sidebar', 'choices' => array( 'right_sidebar' => esc_attr__( 'Right Sidebar', 'blue-paper' ), 'left_sidebar' => esc_attr__( 'Left Sidebar', 'blue-paper' ), 'full_width' => esc_attr__( 'No Sidebar', 'blue-paper' ), ), ); // $fields[] = array( // 'type' => 'select', // 'settings' => 'single_style_settings', // 'label' => esc_attr__( 'Style', 'blue-paper' ), // 'description' => esc_attr__( 'Choose single page style', 'blue-paper' ), // 'section' => 'single_post_settings', // 'default' => 'default', // 'choices' => array( // 'default' => esc_attr__( 'Default', 'blue-paper' ), // 'top_feature' => esc_attr__( 'Top Feature', 'blue-paper' ), // 'top_title_overlay' => esc_attr__( 'Top Title Overlay', 'blue-paper' ), // ), // ); $fields[] = array( 'type' => 'switch', 'settings' => 'enable_related_post', 'label' => __( 'Enable / Disable Realated Post', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable Related posts carousel', 'blue-paper' ), 'section' => 'single_post_settings', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'author_meta', 'label' => __( 'Enable / Disable Author', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable Author on single page', 'blue-paper' ), 'section' => 'single_post_settings', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'cat_meta', 'label' => __( 'Enable / Disable Category', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable category on single page', 'blue-paper' ), 'section' => 'single_post_settings', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'author_meta', 'label' => __( 'Enable / Disable Post Author', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable author on single page', 'blue-paper' ), 'section' => 'single_post_settings', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'date_meta', 'label' => __( 'Enable / Disable date', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable date on single page', 'blue-paper' ), 'section' => 'single_post_settings', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'single_social_share', 'label' => __( 'Enable Social Share', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable social share section on single page', 'blue-paper' ), 'section' => 'single_post_settings', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'switch', 'settings' => 'single_tags', 'label' => __( 'Enable Tags', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable Tags section on single page', 'blue-paper' ), 'section' => 'single_post_settings', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); // footer callout $fields[] = array( 'type' => 'switch', 'settings' => 'footer_callout', 'label' => __( 'Callout', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable callout on single page', 'blue-paper' ), 'section' => 'footer_callout_settings', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'text', 'settings' => 'callout_heading', 'label' => __( 'Callout', 'blue-paper' ), 'description' => esc_attr__( 'Add Callout Heading', 'blue-paper' ), 'section' => 'footer_callout_settings', 'default' => 'Subscribe', 'priority' => 10, ); $fields[] = array( 'type' => 'textarea', 'settings' => 'callout_text', 'label' => __( 'Callout description', 'blue-paper' ), 'description' => esc_attr__( 'add short description for callout', 'blue-paper' ), 'section' => 'footer_callout_settings', 'default' => 'Subscribe to a newsletter to receive latest post and updates', 'priority' => 10, ); $fields[] = array( 'type' => 'text', 'settings' => 'callout_btn_text', 'label' => __( 'Button Text', 'blue-paper' ), 'description' => esc_attr__( 'add callout button text', 'blue-paper' ), 'section' => 'footer_callout_settings', 'default' => 'Get it Now', 'priority' => 10, ); $fields[] = array( 'type' => 'text', 'settings' => 'callout_btn_link', 'label' => __( 'Button Link', 'blue-paper' ), 'description' => esc_attr__( 'add callout button Link', 'blue-paper' ), 'section' => 'footer_callout_settings', 'default' => 'https://wpcalipers.com', 'priority' => 10, ); $fields[] = array( 'type' => 'switch', 'settings' => 'footer_carousel', 'label' => __( 'Carousel', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable footer carousel', 'blue-paper' ), 'section' => 'footer_carousel', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'text', 'settings' => 'carousel_cat_id', 'label' => __( 'Category ID', 'blue-paper' ), 'description' => esc_attr__( 'add category id for posts carousel', 'blue-paper' ), 'section' => 'footer_carousel', 'default' => '1', 'priority' => 10, ); // footer social links $fields[] = array( 'type' => 'switch', 'settings' => 'footer_social_enable', 'label' => __( 'Enable', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable footer social link section', 'blue-paper' ), 'section' => 'footer_social_link', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'url', 'settings' => 'footer_facebook_social', 'label' => esc_attr__( 'Facebook', 'blue-paper' ), 'section' => 'footer_social_link', 'description' => esc_attr__( 'Add facebook social link here', 'blue-paper' ), 'default' => 'http://facebook.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'footer_twitter_social', 'label' => esc_attr__( 'Twitter', 'blue-paper' ), 'section' => 'footer_social_link', 'description' => esc_attr__( 'Add Twitter social link here', 'blue-paper' ), 'default' => 'http://twitter.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'footer_linkedin_social', 'label' => esc_attr__( 'Linkedin', 'blue-paper' ), 'section' => 'footer_social_link', 'description' => esc_attr__( 'Add Linkedin social link here', 'blue-paper' ), 'default' => 'http://linkedin.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'footer_googleplus_social', 'label' => esc_attr__( 'Google Plus', 'blue-paper' ), 'section' => 'footer_social_link', 'description' => esc_attr__( 'Add Google Plus social link here', 'blue-paper' ), 'default' => 'http://googleplus.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'footer_instagram_social', 'label' => esc_attr__( 'Instagram', 'blue-paper' ), 'section' => 'footer_social_link', 'description' => esc_attr__( 'Add Instagram social link here', 'blue-paper' ), 'default' => 'http://googleplus.com', ); $fields[] = array( 'type' => 'url', 'settings' => 'footer_youtube_social', 'label' => esc_attr__( 'Youtube', 'blue-paper' ), 'section' => 'footer_social_link', 'description' => esc_attr__( 'Add Youtube social link here', 'blue-paper' ), 'default' => '', ); $fields[] = array( 'type' => 'url', 'settings' => 'footer_pintrest_social', 'label' => esc_attr__( 'Pintrest', 'blue-paper' ), 'section' => 'footer_social_link', 'description' => esc_attr__( 'Add Pintrest social link here', 'blue-paper' ), 'default' => '', ); $fields[] = array( 'type' => 'url', 'settings' => 'footer_rss_social', 'label' => esc_attr__( 'Rss', 'blue-paper' ), 'section' => 'footer_social_link', 'description' => esc_attr__( 'Add Rss social link here', 'blue-paper' ), 'default' => '', ); // footer copyright $fields[] = array( 'type' => 'switch', 'settings' => 'footer_copyright_enable', 'label' => __( 'Enable', 'blue-paper' ), 'description' => esc_attr__( 'Enable or Disable footer copyright section', 'blue-paper' ), 'section' => 'footer_copyright_text', 'default' => '1', 'priority' => 10, 'choices' => array( 'enable' => esc_attr__( 'Enable', 'blue-paper' ), 'disable' => esc_attr__( 'Disable', 'blue-paper' ), ), ); $fields[] = array( 'type' => 'textarea', 'settings' => 'footer_copyright', 'label' => esc_attr__( 'Copyright Text', 'blue-paper' ), 'section' => 'footer_copyright_text', 'description' => esc_attr__( 'Add copyright text', 'blue-paper' ), 'default' => 'Copyright @ 2017 CALIPERS TECH', ); return $fields; } add_filter( 'kirki/config', 'kirki_demo_configuration_sample' ); add_action( 'customize_register', 'wpc_setting_panels_sections' ); add_filter( 'kirki/fields', 'wpc_settings_fields' ); ?>