2020-03-11 14:51:38 +01:00
< ? php
if ( ! class_exists ( 'Kirki' ) ) {
return ;
}
/* Add Config
/* ------------------------------------ */
2020-03-11 16:50:30 +01:00
Kirki :: add_config ( 'featureon' , array (
2020-03-11 14:51:38 +01:00
'capability' => 'edit_theme_options' ,
'option_type' => 'theme_mod' ,
) );
2022-08-25 15:44:18 +02:00
/* Add Links
/* ------------------------------------ */
Kirki :: add_section ( 'morelink' , array (
'title' => esc_html__ ( 'AlxMedia' , 'featureon' ),
'type' => 'link' ,
'button_text' => esc_html__ ( 'View More Themes' , 'featureon' ),
'button_url' => 'http://alx.media/themes/' ,
'priority' => 13 ,
) );
Kirki :: add_section ( 'reviewlink' , array (
'title' => esc_html__ ( 'Like This Theme?' , 'featureon' ),
'panel' => 'options' ,
'type' => 'link' ,
'button_text' => esc_html__ ( 'Write a Review' , 'featureon' ),
'button_url' => 'https://wordpress.org/support/theme/featureon/reviews/#new-post' ,
'priority' => 1 ,
) );
2020-03-11 14:51:38 +01:00
/* Add Panels
/* ------------------------------------ */
Kirki :: add_panel ( 'options' , array (
'priority' => 10 ,
2020-03-11 16:50:30 +01:00
'title' => esc_html__ ( 'Theme Options' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
/* Add Sections
/* ------------------------------------ */
Kirki :: add_section ( 'general' , array (
'priority' => 10 ,
2020-03-11 16:50:30 +01:00
'title' => esc_html__ ( 'General' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'panel' => 'options' ,
) );
Kirki :: add_section ( 'blog' , array (
'priority' => 20 ,
2020-03-11 16:50:30 +01:00
'title' => esc_html__ ( 'Blog' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'panel' => 'options' ,
) );
Kirki :: add_section ( 'header' , array (
'priority' => 30 ,
2020-03-11 16:50:30 +01:00
'title' => esc_html__ ( 'Header' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'panel' => 'options' ,
) );
Kirki :: add_section ( 'footer' , array (
'priority' => 40 ,
2020-03-11 16:50:30 +01:00
'title' => esc_html__ ( 'Footer' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'panel' => 'options' ,
) );
Kirki :: add_section ( 'layout' , array (
'priority' => 50 ,
2020-03-11 16:50:30 +01:00
'title' => esc_html__ ( 'Layout' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'panel' => 'options' ,
) );
Kirki :: add_section ( 'sidebars' , array (
'priority' => 60 ,
2020-03-11 16:50:30 +01:00
'title' => esc_html__ ( 'Sidebars' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'panel' => 'options' ,
) );
Kirki :: add_section ( 'social' , array (
'priority' => 70 ,
2020-03-11 16:50:30 +01:00
'title' => esc_html__ ( 'Social Links' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'panel' => 'options' ,
) );
Kirki :: add_section ( 'styling' , array (
'priority' => 80 ,
2020-03-11 16:50:30 +01:00
'title' => esc_html__ ( 'Styling' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'panel' => 'options' ,
) );
/* Add Fields
/* ------------------------------------ */
// General: Mobile Sidebar
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio' ,
'settings' => 'mobile-sidebar-hide' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Mobile Sidebar Content' , 'featureon' ),
'description' => esc_html__ ( 'Hide sidebar content on low-resolution mobile devices (320px)' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'general' ,
'default' => '1' ,
'choices' => array (
2020-03-11 16:50:30 +01:00
'1' => esc_html__ ( 'Show sidebars' , 'featureon' ),
's1' => esc_html__ ( 'Hide primary sidebar' , 'featureon' ),
's2' => esc_html__ ( 'Hide secondary sidebar' , 'featureon' ),
's1-s2' => esc_html__ ( 'Hide both sidebars' , 'featureon' ),
2020-03-11 14:51:38 +01:00
),
) );
// General: Post Comments
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'post-comments' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Post Comments' , 'featureon' ),
'description' => esc_html__ ( 'Comments on posts' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'general' ,
'default' => 'on' ,
) );
// General: Page Comments
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'page-comments' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Page Comments' , 'featureon' ),
'description' => esc_html__ ( 'Comments on pages' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'general' ,
'default' => 'off' ,
) );
// General: Recommended Plugins
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'recommended-plugins' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Recommended Plugins' , 'featureon' ),
'description' => esc_html__ ( 'Enable or disable the recommended plugins notice' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'general' ,
'default' => 'on' ,
) );
// Blog: Blog Layout
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio' ,
'settings' => 'blog-layout' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Blog Layout' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => 'blog-standard' ,
'choices' => array (
2020-03-11 16:50:30 +01:00
'blog-standard' => esc_html__ ( 'Standard' , 'featureon' ),
'blog-grid' => esc_html__ ( 'Grid' , 'featureon' ),
'blog-list' => esc_html__ ( 'List' , 'featureon' ),
2020-03-11 14:51:38 +01:00
),
) );
// Blog: Heading
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'text' ,
'settings' => 'blog-heading' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Heading' , 'featureon' ),
'description' => esc_html__ ( 'Your blog heading' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => '' ,
) );
// Blog: Subheading
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'text' ,
'settings' => 'blog-subheading' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Subheading' , 'featureon' ),
'description' => esc_html__ ( 'Your blog subheading' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => '' ,
) );
// Blog: Featured Post Count (Home)
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'slider' ,
'settings' => 'featured-posts-count' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Featured Post Count (Home)' , 'featureon' ),
'description' => esc_html__ ( 'Max number of featured posts to display on the homepage. Set it to 0 to disable.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => '5' ,
'choices' => array (
'min' => '0' ,
'max' => '5' ,
'step' => '1' ,
),
) );
// Blog: Featured Post Count (Category)
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'slider' ,
'settings' => 'featured-posts-count-category' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Featured Post Count (Category)' , 'featureon' ),
'description' => esc_html__ ( 'Max number of featured posts to display on category pages. Set it to 0 to disable.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => '5' ,
'choices' => array (
'min' => '0' ,
'max' => '5' ,
'step' => '1' ,
),
) );
// Blog: Featured Category
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 'featured-category' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Featured Category' , 'featureon' ),
'description' => esc_html__ ( 'By not selecting a category, it will show your latest post(s) from all categories' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => '' ,
'choices' => Kirki_Helper :: get_terms ( 'category' ),
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a category' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
// Blog: Featured Posts Include
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'checkbox' ,
'settings' => 'featured-posts-include' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Featured Posts' , 'featureon' ),
'description' => esc_html__ ( 'To show featured posts in the slider AND the content below. Usually not recommended.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => false ,
) );
// Blog: Highlights Category Count
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'slider' ,
'settings' => 'highlight-posts-count' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Highlight Post Count' , 'featureon' ),
'description' => esc_html__ ( 'Max number of highlight posts to display. Set it to 0 to disable.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => '7' ,
'choices' => array (
'min' => '0' ,
'max' => '12' ,
'step' => '1' ,
),
) );
// Blog: Highlights Category
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 'highlight-category' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Highlights Category' , 'featureon' ),
'description' => esc_html__ ( 'The 3 latest posts' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => '' ,
'choices' => Kirki_Helper :: get_terms ( 'category' ),
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a category' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
// Blog: Frontpage Widgets Top
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'frontpage-widgets-top' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Frontpage Widgets Top' , 'featureon' ),
'description' => esc_html__ ( '2 columns of widgets' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => 'off' ,
) );
// Blog: Frontpage Widgets Bottom
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'frontpage-widgets-bottom' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Frontpage Widgets Bottom' , 'featureon' ),
'description' => esc_html__ ( '2 columns of widgets' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => 'off' ,
) );
// Blog: Thumbnail Comment Count
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'comment-count' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Thumbnail Comment Count' , 'featureon' ),
'description' => esc_html__ ( 'Comment count on thumbnails' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => 'on' ,
) );
// Blog: Excerpt Length
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'slider' ,
'settings' => 'excerpt-length' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Excerpt Length' , 'featureon' ),
'description' => esc_html__ ( 'Max number of words. Set it to 0 to disable.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => '26' ,
'choices' => array (
'min' => '0' ,
'max' => '100' ,
'step' => '1' ,
),
) );
// Blog: Single - Authorbox
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'author-bio' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Single - Author Bio' , 'featureon' ),
'description' => esc_html__ ( 'Shows post author description, if it exists' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => 'on' ,
) );
// Blog: Single - Related Posts
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio' ,
'settings' => 'related-posts' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Single - Related Posts' , 'featureon' ),
'description' => esc_html__ ( 'Shows randomized related articles below the post' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => 'categories' ,
'choices' => array (
2020-03-11 16:50:30 +01:00
'disable' => esc_html__ ( 'Disable' , 'featureon' ),
'categories' => esc_html__ ( 'Related by categories' , 'featureon' ),
'tags' => esc_html__ ( 'Related by tags' , 'featureon' ),
2020-03-11 14:51:38 +01:00
),
) );
// Blog: Single - Post Navigation
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio' ,
'settings' => 'post-nav' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Single - Post Navigation' , 'featureon' ),
'description' => esc_html__ ( 'Shows links to the next and previous article' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'blog' ,
'default' => 's1' ,
'choices' => array (
2020-03-11 16:50:30 +01:00
'disable' => esc_html__ ( 'Disable' , 'featureon' ),
's1' => esc_html__ ( 'Sidebar Primary' , 'featureon' ),
's2' => esc_html__ ( 'Sidebar Secondary' , 'featureon' ),
'content' => esc_html__ ( 'Below content' , 'featureon' ),
2020-03-11 14:51:38 +01:00
),
) );
// Header: Ads
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'header-ads' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Header Ads' , 'featureon' ),
'description' => esc_html__ ( 'Header widget ads area' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'header' ,
'default' => 'off' ,
) );
// Header: Search
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'header-search' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Header Search' , 'featureon' ),
'description' => esc_html__ ( 'Header search button' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'header' ,
'default' => 'on' ,
) );
// Header: Social Links
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'header-social' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Header Social Links' , 'featureon' ),
'description' => esc_html__ ( 'Social link icon buttons' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'header' ,
'default' => 'on' ,
) );
// Footer: Ads
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'footer-ads' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Footer Ads' , 'featureon' ),
'description' => esc_html__ ( 'Footer widget ads area' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'footer' ,
'default' => 'off' ,
) );
// Footer: Widget Columns
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio-image' ,
'settings' => 'footer-widgets' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Footer Widget Columns' , 'featureon' ),
'description' => esc_html__ ( 'Select columns to enable footer widgets. Recommended number: 3' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'footer' ,
'default' => '0' ,
'choices' => array (
'0' => get_template_directory_uri () . '/functions/images/layout-off.png' ,
'1' => get_template_directory_uri () . '/functions/images/footer-widgets-1.png' ,
'2' => get_template_directory_uri () . '/functions/images/footer-widgets-2.png' ,
'3' => get_template_directory_uri () . '/functions/images/footer-widgets-3.png' ,
'4' => get_template_directory_uri () . '/functions/images/footer-widgets-4.png' ,
),
) );
// Footer: Social Links
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'footer-social' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Footer Social Links' , 'featureon' ),
'description' => esc_html__ ( 'Social link icon buttons' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'footer' ,
'default' => 'on' ,
) );
// Footer: Custom Logo
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'image' ,
'settings' => 'footer-logo' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Footer Logo' , 'featureon' ),
'description' => esc_html__ ( 'Upload your custom logo image' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'footer' ,
'default' => '' ,
) );
// Footer: Copyright
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'text' ,
'settings' => 'copyright' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Footer Copyright' , 'featureon' ),
'description' => esc_html__ ( 'Replace the footer copyright text' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'footer' ,
'default' => '' ,
) );
// Footer: Credit
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'credit' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Footer Credit' , 'featureon' ),
'description' => esc_html__ ( 'Footer credit text' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'footer' ,
'default' => 'on' ,
) );
// Layout: Global
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio-image' ,
'settings' => 'layout-global' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Global Layout' , 'featureon' ),
'description' => esc_html__ ( 'Other layouts will override this option if they are set' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'layout' ,
'default' => 'col-3cm' ,
'choices' => array (
'col-1c' => get_template_directory_uri () . '/functions/images/col-1c.png' ,
'col-2cl' => get_template_directory_uri () . '/functions/images/col-2cl.png' ,
'col-2cr' => get_template_directory_uri () . '/functions/images/col-2cr.png' ,
'col-3cm' => get_template_directory_uri () . '/functions/images/col-3cm.png' ,
'col-3cl' => get_template_directory_uri () . '/functions/images/col-3cl.png' ,
'col-3cr' => get_template_directory_uri () . '/functions/images/col-3cr.png' ,
),
) );
// Layout: Home
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio-image' ,
'settings' => 'layout-home' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Home' , 'featureon' ),
'description' => esc_html__ ( '(is_home) Posts homepage layout' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'layout' ,
'default' => 'inherit' ,
'choices' => array (
'inherit' => get_template_directory_uri () . '/functions/images/layout-off.png' ,
'col-1c' => get_template_directory_uri () . '/functions/images/col-1c.png' ,
'col-2cl' => get_template_directory_uri () . '/functions/images/col-2cl.png' ,
'col-2cr' => get_template_directory_uri () . '/functions/images/col-2cr.png' ,
'col-3cm' => get_template_directory_uri () . '/functions/images/col-3cm.png' ,
'col-3cl' => get_template_directory_uri () . '/functions/images/col-3cl.png' ,
'col-3cr' => get_template_directory_uri () . '/functions/images/col-3cr.png' ,
),
) );
// Layout: Single
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio-image' ,
'settings' => 'layout-single' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Single' , 'featureon' ),
'description' => esc_html__ ( '(is_single) Single post layout - If a post has a set layout, it will override this.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'layout' ,
'default' => 'inherit' ,
'choices' => array (
'inherit' => get_template_directory_uri () . '/functions/images/layout-off.png' ,
'col-1c' => get_template_directory_uri () . '/functions/images/col-1c.png' ,
'col-2cl' => get_template_directory_uri () . '/functions/images/col-2cl.png' ,
'col-2cr' => get_template_directory_uri () . '/functions/images/col-2cr.png' ,
'col-3cm' => get_template_directory_uri () . '/functions/images/col-3cm.png' ,
'col-3cl' => get_template_directory_uri () . '/functions/images/col-3cl.png' ,
'col-3cr' => get_template_directory_uri () . '/functions/images/col-3cr.png' ,
),
) );
// Layout: Archive
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio-image' ,
'settings' => 'layout-archive' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Archive' , 'featureon' ),
'description' => esc_html__ ( '(is_archive) Category, date, tag and author archive layout' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'layout' ,
'default' => 'inherit' ,
'choices' => array (
'inherit' => get_template_directory_uri () . '/functions/images/layout-off.png' ,
'col-1c' => get_template_directory_uri () . '/functions/images/col-1c.png' ,
'col-2cl' => get_template_directory_uri () . '/functions/images/col-2cl.png' ,
'col-2cr' => get_template_directory_uri () . '/functions/images/col-2cr.png' ,
'col-3cm' => get_template_directory_uri () . '/functions/images/col-3cm.png' ,
'col-3cl' => get_template_directory_uri () . '/functions/images/col-3cl.png' ,
'col-3cr' => get_template_directory_uri () . '/functions/images/col-3cr.png' ,
),
) );
// Layout : Archive - Category
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio-image' ,
'settings' => 'layout-archive-category' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Archive - Category' , 'featureon' ),
'description' => esc_html__ ( '(is_category) Category archive layout' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'layout' ,
'default' => 'inherit' ,
'choices' => array (
'inherit' => get_template_directory_uri () . '/functions/images/layout-off.png' ,
'col-1c' => get_template_directory_uri () . '/functions/images/col-1c.png' ,
'col-2cl' => get_template_directory_uri () . '/functions/images/col-2cl.png' ,
'col-2cr' => get_template_directory_uri () . '/functions/images/col-2cr.png' ,
'col-3cm' => get_template_directory_uri () . '/functions/images/col-3cm.png' ,
'col-3cl' => get_template_directory_uri () . '/functions/images/col-3cl.png' ,
'col-3cr' => get_template_directory_uri () . '/functions/images/col-3cr.png' ,
),
) );
// Layout: Search
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio-image' ,
'settings' => 'layout-search' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Search' , 'featureon' ),
'description' => esc_html__ ( '(is_search) Search page layout' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'layout' ,
'default' => 'inherit' ,
'choices' => array (
'inherit' => get_template_directory_uri () . '/functions/images/layout-off.png' ,
'col-1c' => get_template_directory_uri () . '/functions/images/col-1c.png' ,
'col-2cl' => get_template_directory_uri () . '/functions/images/col-2cl.png' ,
'col-2cr' => get_template_directory_uri () . '/functions/images/col-2cr.png' ,
'col-3cm' => get_template_directory_uri () . '/functions/images/col-3cm.png' ,
'col-3cl' => get_template_directory_uri () . '/functions/images/col-3cl.png' ,
'col-3cr' => get_template_directory_uri () . '/functions/images/col-3cr.png' ,
),
) );
// Layout: Error 404
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio-image' ,
'settings' => 'layout-404' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Error 404' , 'featureon' ),
'description' => esc_html__ ( '(is_404) Error 404 page layout' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'layout' ,
'default' => 'inherit' ,
'choices' => array (
'inherit' => get_template_directory_uri () . '/functions/images/layout-off.png' ,
'col-1c' => get_template_directory_uri () . '/functions/images/col-1c.png' ,
'col-2cl' => get_template_directory_uri () . '/functions/images/col-2cl.png' ,
'col-2cr' => get_template_directory_uri () . '/functions/images/col-2cr.png' ,
'col-3cm' => get_template_directory_uri () . '/functions/images/col-3cm.png' ,
'col-3cl' => get_template_directory_uri () . '/functions/images/col-3cl.png' ,
'col-3cr' => get_template_directory_uri () . '/functions/images/col-3cr.png' ,
),
) );
// Layout: Default Page
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio-image' ,
'settings' => 'layout-page' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Default Page' , 'featureon' ),
'description' => esc_html__ ( '(is_page) Default page layout - If a page has a set layout, it will override this.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'layout' ,
'default' => 'inherit' ,
'choices' => array (
'inherit' => get_template_directory_uri () . '/functions/images/layout-off.png' ,
'col-1c' => get_template_directory_uri () . '/functions/images/col-1c.png' ,
'col-2cl' => get_template_directory_uri () . '/functions/images/col-2cl.png' ,
'col-2cr' => get_template_directory_uri () . '/functions/images/col-2cr.png' ,
'col-3cm' => get_template_directory_uri () . '/functions/images/col-3cm.png' ,
'col-3cl' => get_template_directory_uri () . '/functions/images/col-3cl.png' ,
'col-3cr' => get_template_directory_uri () . '/functions/images/col-3cr.png' ,
),
) );
2020-03-11 16:50:30 +01:00
function featureon_kirki_sidebars_select () {
2020-03-11 14:51:38 +01:00
$sidebars = array ();
if ( isset ( $GLOBALS [ 'wp_registered_sidebars' ] ) ) {
$sidebars = $GLOBALS [ 'wp_registered_sidebars' ];
}
$sidebars_choices = array ();
foreach ( $sidebars as $sidebar ) {
$sidebars_choices [ $sidebar [ 'id' ] ] = $sidebar [ 'name' ];
}
if ( ! class_exists ( 'Kirki' ) ) {
return ;
}
// Sidebars: Select
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's1-home' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Home' , 'featureon' ),
'description' => esc_html__ ( '(is_home) Primary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's2-home' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Home' , 'featureon' ),
'description' => esc_html__ ( '(is_home) Secondary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's1-single' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Single' , 'featureon' ),
'description' => esc_html__ ( '(is_single) Primary - If a single post has a unique sidebar, it will override this.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's2-single' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Single' , 'featureon' ),
'description' => esc_html__ ( '(is_single) Secondary - If a single post has a unique sidebar, it will override this.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's1-archive' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Archive' , 'featureon' ),
'description' => esc_html__ ( '(is_archive) Primary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's2-archive' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Archive' , 'featureon' ),
'description' => esc_html__ ( '(is_archive) Secondary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's1-archive-category' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Archive - Category' , 'featureon' ),
'description' => esc_html__ ( '(is_category) Primary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's2-archive-category' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Archive - Category' , 'featureon' ),
'description' => esc_html__ ( '(is_category) Secondary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's1-search' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Search' , 'featureon' ),
'description' => esc_html__ ( '(is_search) Primary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's2-search' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Search' , 'featureon' ),
'description' => esc_html__ ( '(is_search) Secondary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's1-404' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Error 404' , 'featureon' ),
'description' => esc_html__ ( '(is_404) Primary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's2-404' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Error 404' , 'featureon' ),
'description' => esc_html__ ( '(is_404) Secondary' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's1-page' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Default Page' , 'featureon' ),
'description' => esc_html__ ( '(is_page) Primary - If a page has a unique sidebar, it will override this.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 's2-page' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Default Page' , 'featureon' ),
'description' => esc_html__ ( '(is_page) Secondary - If a page has a unique sidebar, it will override this.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'sidebars' ,
'choices' => $sidebars_choices ,
'default' => '' ,
2020-03-11 16:50:30 +01:00
'placeholder' => esc_html__ ( 'Select a sidebar' , 'featureon' ),
2020-03-11 14:51:38 +01:00
) );
}
2020-03-11 16:50:30 +01:00
add_action ( 'init' , 'featureon_kirki_sidebars_select' , 999 );
2020-03-11 14:51:38 +01:00
// Social Links: List
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'repeater' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Create Social Links' , 'featureon' ),
'description' => esc_html__ ( 'Create and organize your social links' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'social' ,
2022-02-23 12:05:35 +01:00
'tooltip' => esc_html__ ( 'Font Awesome names:' , 'featureon' ) . ' <a href="https://fontawesome.com/v5/search?s=brands" target="_blank"><strong>' . esc_html__ ( 'View All' , 'featureon' ) . ' </strong></a>' ,
2020-03-11 14:51:38 +01:00
'row_label' => array (
'type' => 'text' ,
2020-03-11 16:50:30 +01:00
'value' => esc_html__ ( 'social link' , 'featureon' ),
2020-03-11 14:51:38 +01:00
),
'settings' => 'social-links' ,
'default' => '' ,
'fields' => array (
'social-title' => array (
'type' => 'text' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Title' , 'featureon' ),
'description' => esc_html__ ( 'Ex: Facebook' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'default' => '' ,
),
'social-icon' => array (
'type' => 'text' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Icon Name' , 'featureon' ),
2022-02-23 12:05:35 +01:00
'description' => esc_html__ ( 'Font Awesome icons. Ex: fa-facebook ' , 'featureon' ) . ' <a href="https://fontawesome.com/v5/search?s=brands" target="_blank"><strong>' . esc_html__ ( 'View All' , 'featureon' ) . ' </strong></a>' ,
2020-03-11 14:51:38 +01:00
'default' => 'fa-' ,
),
'social-link' => array (
'type' => 'link' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Link' , 'featureon' ),
'description' => esc_html__ ( 'Enter the full url for your icon button' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'default' => 'http://' ,
),
'social-color' => array (
'type' => 'color' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Icon Color' , 'featureon' ),
'description' => esc_html__ ( 'Set a unique color for your icon (optional)' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'default' => '' ,
),
'social-target' => array (
'type' => 'checkbox' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Open in new window' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'default' => false ,
),
)
) );
// Styling: Enable
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'dynamic-styles' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Dynamic Styles' , 'featureon' ),
'description' => esc_html__ ( 'Turn on to use the styling options below' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => 'on' ,
) );
// Styling: Boxed Layout
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'boxed' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Boxed Layout' , 'featureon' ),
'description' => esc_html__ ( 'Use a boxed layout' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => 'off' ,
) );
// Styling: Dark Layout
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'switch' ,
'settings' => 'dark' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Dark Layout' , 'featureon' ),
'description' => esc_html__ ( 'Dark base style' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => 'off' ,
) );
// Styling: Font
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'select' ,
'settings' => 'font' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Font' , 'featureon' ),
'description' => esc_html__ ( 'Select font for the theme' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => 'roboto' ,
'choices' => array (
2020-03-11 16:50:30 +01:00
'titillium-web' => esc_html__ ( 'Titillium Web, Latin (Self-hosted)' , 'featureon' ),
'titillium-web-ext' => esc_html__ ( 'Titillium Web, Latin-Ext' , 'featureon' ),
'droid-serif' => esc_html__ ( 'Droid Serif, Latin' , 'featureon' ),
'source-sans-pro' => esc_html__ ( 'Source Sans Pro, Latin-Ext' , 'featureon' ),
'lato' => esc_html__ ( 'Lato, Latin' , 'featureon' ),
'raleway' => esc_html__ ( 'Raleway, Latin' , 'featureon' ),
'ubuntu' => esc_html__ ( 'Ubuntu, Latin-Ext' , 'featureon' ),
'ubuntu-cyr' => esc_html__ ( 'Ubuntu, Latin / Cyrillic-Ext' , 'featureon' ),
'roboto' => esc_html__ ( 'Roboto, Latin-Ext' , 'featureon' ),
'roboto-cyr' => esc_html__ ( 'Roboto, Latin / Cyrillic-Ext' , 'featureon' ),
'roboto-condensed' => esc_html__ ( 'Roboto Condensed, Latin-Ext' , 'featureon' ),
'roboto-condensed-cyr' => esc_html__ ( 'Roboto Condensed, Latin / Cyrillic-Ext' , 'featureon' ),
'roboto-slab' => esc_html__ ( 'Roboto Slab, Latin-Ext' , 'featureon' ),
'roboto-slab-cyr' => esc_html__ ( 'Roboto Slab, Latin / Cyrillic-Ext' , 'featureon' ),
'playfair-display' => esc_html__ ( 'Playfair Display, Latin-Ext' , 'featureon' ),
'playfair-display-cyr' => esc_html__ ( 'Playfair Display, Latin / Cyrillic' , 'featureon' ),
'open-sans' => esc_html__ ( 'Open Sans, Latin-Ext' , 'featureon' ),
'open-sans-cyr' => esc_html__ ( 'Open Sans, Latin / Cyrillic-Ext' , 'featureon' ),
'pt-serif' => esc_html__ ( 'PT Serif, Latin-Ext' , 'featureon' ),
'pt-serif-cyr' => esc_html__ ( 'PT Serif, Latin / Cyrillic-Ext' , 'featureon' ),
'arial' => esc_html__ ( 'Arial' , 'featureon' ),
'georgia' => esc_html__ ( 'Georgia' , 'featureon' ),
'verdana' => esc_html__ ( 'Verdana' , 'featureon' ),
'tahoma' => esc_html__ ( 'Tahoma' , 'featureon' ),
2020-03-11 14:51:38 +01:00
),
) );
// Styling: Container Width
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'slider' ,
'settings' => 'container-width' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Website Max-width' , 'featureon' ),
'description' => esc_html__ ( 'Max-width of the container. If you use 2 sidebars, your container should be at least 1280px. Note: For 720px content (default) use 1460px for 2 sidebars and 1200px for 1 sidebar. If you use a combination of both, try something inbetween.' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '1460' ,
'choices' => array (
'min' => '1024' ,
'max' => '1600' ,
'step' => '1' ,
),
) );
// Styling: Featured Section Height
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'slider' ,
'settings' => 'featured-height' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Featured Section Height' , 'featureon' ),
'description' => esc_html__ ( 'Height of the featured posts section' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '540' ,
'choices' => array (
'min' => '400' ,
'max' => '700' ,
'step' => '1' ,
),
) );
// Styling: Sidebar Width
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'radio' ,
'settings' => 'sidebar-padding' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Sidebar Width' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '30' ,
'choices' => array (
2020-03-11 16:50:30 +01:00
'30' => esc_html__ ( '280px primary (30px padding)' , 'featureon' ),
'20' => esc_html__ ( '300px primary (20px padding)' , 'featureon' ),
2020-03-11 14:51:38 +01:00
),
) );
// Styling: Primary Color
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'color' ,
'settings' => 'color-1' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Primary Color' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '#0fb4d2' ,
) );
// Styling: Mobile Menu Background
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'color' ,
'settings' => 'color-mobile-menu' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Mobile Menu Color' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '' ,
) );
// Styling: Topbar Menu Color
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'color' ,
'settings' => 'color-topbar-menu' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Topbar Menu Color' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '' ,
) );
// Styling: Header Color
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'color' ,
'settings' => 'color-header' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Header Color' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '' ,
) );
// Styling: Header Menu Color
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'color' ,
'settings' => 'color-header-menu' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Header Menu Color' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '' ,
) );
// Styling: Subheader Background
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'color' ,
'settings' => 'color-subheader' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Subheader Background' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '' ,
) );
// Styling: Footer Menu Background
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'color' ,
'settings' => 'color-footer-menu' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Footer Menu Color' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '#222222' ,
) );
// Styling: Footer Background
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'color' ,
'settings' => 'color-footer' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Footer Background' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '#282828' ,
) );
// Styling: Header Logo Max-height
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'slider' ,
'settings' => 'logo-max-height' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Header Logo Image Max-height' , 'featureon' ),
'description' => esc_html__ ( 'Your logo image should have the double height of this to be high resolution' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '60' ,
'choices' => array (
'min' => '40' ,
'max' => '200' ,
'step' => '1' ,
),
) );
// Styling: Image Border Radius
2020-03-11 16:50:30 +01:00
Kirki :: add_field ( 'featureon_theme' , array (
2020-03-11 14:51:38 +01:00
'type' => 'slider' ,
'settings' => 'image-border-radius' ,
2020-03-11 16:50:30 +01:00
'label' => esc_html__ ( 'Image Border Radius' , 'featureon' ),
'description' => esc_html__ ( 'Give your thumbnails and layout images rounded corners' , 'featureon' ),
2020-03-11 14:51:38 +01:00
'section' => 'styling' ,
'default' => '0' ,
'choices' => array (
'min' => '0' ,
'max' => '15' ,
'step' => '1' ,
),
) );