10,
'title' => esc_html__( 'Theme Options', 'artcela' ),
'icon' => 'dashicons-admin-customizer',
//'description' => esc_html__( 'My panel description', 'artcela' ),
) );
/**
* Add sections
*/
Kirki::add_section( 'logo', array(
'title' => esc_attr__( 'Logo & favicon', 'artcela' ),
'priority' => 1,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'footer', array(
'title' => esc_attr__( 'Footer', 'artcela' ),
'priority' => 2,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'socialmedia', array(
'title' => esc_attr__( 'Social Media', 'artcela' ),
'priority' => 3,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'backtotop', array(
'title' => esc_attr__( 'Back to top', 'artcela' ),
'priority' => 4,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'blogpage', array(
'title' => esc_attr__( 'Blog Page', 'artcela' ),
'priority' => 5,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'slider', array(
'title' => esc_attr__( 'Slider', 'artcela' ),
'priority' => 6,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'colorselection', array(
'title' => esc_attr__( 'Theme Colors', 'artcela' ),
'priority' => 7,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'typography', array(
'title' => esc_attr__( 'Typography', 'artcela' ),
'priority' => 8,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'layout', array(
'title' => esc_attr__( 'Layout', 'artcela' ),
'priority' => 9,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'customcss', array(
'title' => esc_attr__( 'Custom css', 'artcela' ),
'priority' => 10,
'panel' => 'theme_options_maestro',
'capability' => 'edit_theme_options',
) );
/**
* Add the configuration.
* This way all the fields using the 'kirki_demo' ID
* will inherit these options
*/
Kirki::add_config( 'kirki_demo', array(
'capability' => 'edit_theme_options',
'option_type' => 'theme_mod',
//'option_name' => 'artcela_options',
) );
/**
* Add fields
*/
/// Layout /////////////////////
Kirki::add_field( 'kirki_demo', array(
'type' => 'dimension',
'settings' => 'body_width',
'priority' => 0,
'label' => esc_html__( 'Body Width', 'artcela' ),
'description' => esc_html__( 'Description Here.', 'artcela' ),
'section' => 'layout',
'default' => '1100px',
'transport' => 'auto',
'output' => array(
array(
'element' => '.site-content,.site-footer .footer-widget-area',
'property' => 'max-width',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'radio-image',
'settings' => 'bloglayoutsetting',
'label' => esc_html__( 'Option for Blog Layout', 'artcela' ),
'section' => 'layout',
'default' => '4',
'priority' => 1,
'transport' => 'auto',
'choices' => array(
'1' => get_template_directory_uri() . '/assets/images/1c.png',
'2' => get_template_directory_uri() . '/assets/images/2cl.png',
'3' => get_template_directory_uri() . '/assets/images/2cr.png',
'4' => get_template_directory_uri() . '/assets/images/3cm.png',
'5' => get_template_directory_uri() . '/assets/images/3cl.png',
'6' => get_template_directory_uri() . '/assets/images/3cr.png',
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'radio-image',
'settings' => 'archivelayoutsetting',
'label' => esc_html__( 'Option for Archive and Category page Layout', 'artcela' ),
'section' => 'layout',
'default' => '4',
'priority' => 1,
'transport' => 'auto',
'choices' => array(
'1' => get_template_directory_uri() . '/assets/images/1c.png',
'2' => get_template_directory_uri() . '/assets/images/2cl.png',
'3' => get_template_directory_uri() . '/assets/images/2cr.png',
'4' => get_template_directory_uri() . '/assets/images/3cm.png',
'5' => get_template_directory_uri() . '/assets/images/3cl.png',
'6' => get_template_directory_uri() . '/assets/images/3cr.png',
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'radio-image',
'settings' => 'pagesearchlayoutsetting',
'label' => esc_html__( 'Option for Page and Search Page Layout', 'artcela' ),
'section' => 'layout',
'default' => '4',
'priority' => 1,
'transport' => 'auto',
'choices' => array(
'1' => get_template_directory_uri() . '/assets/images/1c.png',
'2' => get_template_directory_uri() . '/assets/images/2cl.png',
'3' => get_template_directory_uri() . '/assets/images/2cr.png',
'4' => get_template_directory_uri() . '/assets/images/3cm.png',
'5' => get_template_directory_uri() . '/assets/images/3cl.png',
'6' => get_template_directory_uri() . '/assets/images/3cr.png',
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'radio-image',
'settings' => 'singlepostlayoutsetting',
'label' => esc_html__( 'Option for Single post Layout', 'artcela' ),
'section' => 'layout',
'default' => '4',
'priority' => 1,
'transport' => 'auto',
'choices' => array(
'1' => get_template_directory_uri() . '/assets/images/1c.png',
'2' => get_template_directory_uri() . '/assets/images/2cl.png',
'3' => get_template_directory_uri() . '/assets/images/2cr.png',
'4' => get_template_directory_uri() . '/assets/images/3cm.png',
'5' => get_template_directory_uri() . '/assets/images/3cl.png',
'6' => get_template_directory_uri() . '/assets/images/3cr.png',
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'custom',
'settings' => 'layoutmsg',
//'label' => esc_html__( 'This is the label', 'artcela' ),
'section' => 'layout',
'default' => '
' . esc_html__( 'These settings are used on pages with 2 sidebar. Total values must add up to 100.
', 'artcela' ) . '
',
'priority' => 2,
'active_callback' => array(
array(
array(
'setting' => 'bloglayoutsetting',
'value' => array( '4', '5' , '6' ),
'operator' => 'contains'
),
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'custom',
'settings' => 'layoutmsg1',
//'label' => esc_html__( 'This is the label', 'artcela' ),
'section' => 'layout',
'default' => '' . esc_html__( 'These settings are used on pages with 1 sidebar. Total values must add up to 100.
', 'artcela' ) . '
',
'priority' => 2,
'active_callback' => array(
array(
array(
'setting' => 'bloglayoutsetting',
'value' => array( '2', '3' ),
'operator' => 'contains'
),
),
),
) );
// Two columns layouts
Kirki::add_field( 'kirki_demo', array(
'type' => 'dimension',
'settings' => 'content_area',
'priority' => 3,
'label' => esc_html__( 'Content area ', 'artcela' ),
'description' => esc_html__( 'Description Here.', 'artcela' ),
'section' => 'layout',
'default' => '70%',
'transport' => 'auto',
'active_callback' => array(
array(
array(
'setting' => 'bloglayoutsetting',
'value' => array( '2', '3' ),
'operator' => 'contains'
),
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'dimension',
'settings' => 'sidebar1',
'priority' => 4,
'label' => esc_html__( 'sidebar 1', 'artcela' ),
'description' => esc_html__( 'Description Here.', 'artcela' ),
'section' => 'layout',
'default' => '30%',
'transport' => 'auto',
'active_callback' => array(
array(
array(
'setting' => 'bloglayoutsetting',
'value' => array( '2', '3' ),
'operator' => 'contains'
),
),
),
) );
// Three columns layouts
Kirki::add_field( 'kirki_demo', array(
'type' => 'dimension',
'settings' => 'content_area_3',
'priority' => 3,
'label' => esc_html__( 'Content area ', 'artcela' ),
'description' => esc_html__( 'Description Here.', 'artcela' ),
'section' => 'layout',
'default' => '50%',
'transport' => 'auto',
'active_callback' => array(
array(
array(
'setting' => 'bloglayoutsetting',
'value' => array( '4', '5' , '6' ),
'operator' => 'contains'
),
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'dimension',
'settings' => 'sidebar1_3',
'priority' => 4,
'label' => esc_html__( 'sidebar 1', 'artcela' ),
'description' => esc_html__( 'Description Here.', 'artcela' ),
'section' => 'layout',
'default' => '25%',
'transport' => 'auto',
'active_callback' => array(
array(
array(
'setting' => 'bloglayoutsetting',
'value' => array( '4', '5' , '6' ),
'operator' => 'contains'
),
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'dimension',
'settings' => 'sidebar2_3',
'priority' => 4,
'label' => esc_html__( 'siderbar 2', 'artcela' ),
'description' => esc_html__( 'Description Here.', 'artcela' ),
'section' => 'layout',
'default' => '25%',
'transport' => 'auto',
'active_callback' => array(
array(
array(
'setting' => 'bloglayoutsetting',
'value' => array( '4', '5' , '6' ),
'operator' => 'contains'
),
),
),
) );
// Blog
Kirki::add_field( 'kirki_demo', array(
'type' => 'radio-buttonset',
'settings' => 'blog_content',
'label' => esc_html__( 'Excerpt or Full Blog Content', 'artcela' ),
'description' => esc_html__( 'Choose to display an excerpt or full content on blog pages.', 'artcela' ),
'section' => 'blogpage',
'default' => 'excerpt',
'priority' => 10,
'choices' => array(
'excerpt' => esc_html__( 'Excerpt', 'artcela' ),
'fullcontent' => esc_html__( 'Full Content', 'artcela' ),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'number',
'settings' => 'excerpt-count',
'label' => esc_html__( 'Excerpt Length', 'artcela' ),
'description' => esc_html__( 'Insert the number of words you want to show in the post excerpts.', 'artcela' ),
'section' => 'blogpage',
'default' => 42,
'choices' => array(
'step' => 1,
),
'active_callback' => array(
array(
array(
'setting' => 'blog_content',
'value' => array( 'excerpt' ),
'operator' => '=='
),
),
),
) );
// Back to top button
Kirki::add_field( 'kirki_demo', array(
'type' => 'toggle',
'settings' => 'backtotop_setting_toggle',
'label' => esc_html__( 'Back To Top Button', 'artcela' ),
'description' => esc_html__( 'Enable/Disable Back To Top Button', 'artcela' ),
'section' => 'backtotop',
'default' => '1',
'priority' => 1,
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'image',
'priority' => 2,
'settings' => 'backtotop_setting_url',
'label' => esc_html__( 'Select image for back to top button', 'artcela' ),
'description' => esc_html__( 'Select an image file for Back to top button.', 'artcela' ),
'section' => 'backtotop',
'default' => get_stylesheet_directory_uri() . '/assets/images/to-top.png',
'transport' => 'auto',
'partial_refresh' => array(
'totop' => array(
'selector' => '#totop', // this will add the pencil edit image on .site-title
'render_callback' => 'artcela_back_to_top',
),
),
'active_callback' => array(
array(
array(
'setting' => 'backtotop_setting_toggle',
'value' => array( '1' ),
'operator' => '=='
),
),
),
) );
//////////// Logo /////////////////
Kirki::add_field( 'kirki_demo', array(
'type' => 'radio-buttonset',
'settings' => 'logo_setting',
'label' => __( 'Select image or text logo', 'artcela' ),
'section' => 'title_tagline',
'default' => 'text',
'priority' => 1,
'choices' => array(
'text' => esc_html__( 'Wp Site Title', 'artcela' ),
'image' => esc_html__( 'Image Logo', 'artcela' ),
),
// Edit button on logo on frontend
'partial_refresh' => array(
'logo' => array(
'selector' => '.site-title', // this will add the pencil edit image on .site-title
'render_callback' => '__return_false',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'image',
'priority' => 2,
'settings' => 'image_setting_url',
'label' => esc_html__( 'Image Logo', 'artcela' ),
'description' => esc_html__( 'Select an image for Logo', 'artcela' ),
'section' => 'title_tagline',
'default' => '',
'transport' => 'auto',
'partial_refresh' => array(
'logoimage' => array(
'selector' => '.site-title', // this will add the pencil edit image on .site-title
'render_callback' => '__return_false',
),
),
'active_callback' => array(
array(
array(
'setting' => 'logo_setting',
'operator' => '==',
'value' => 'image',
),
),
),
) );
//////////// Typography /////////////////
Kirki::add_field( 'kirki_demo', array(
'type' => 'custom',
'settings' => 'typoheading',
//'label' => esc_html__( 'This is the label', 'artcela' ),
'section' => 'typography',
'default' => '' . esc_html__( 'Heading', 'artcela' ) . '
',
'priority' => 2,
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_headingfont',
'label' => esc_attr__( 'Heading Typography', 'artcela' ),
'description' => esc_attr__( ' Specify the heading font properties for h1,h2,h3,h4,h5,h6.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'typography',
'default' => array(
'font-family' => '',
'variant' => '',
//'font-size' => '14px',
//'line-height' => '1.5',
'letter-spacing' => '',
//'color' => '#333333',
'text-transform' => '',
'text-align' => '',
),
'priority' => 3,
'output' => array(
array(
'element' => '.content-area h1, .content-area h2, .content-area h3, .content-area h4, .content-area h5, .content-area h6',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'custom',
'settings' => 'typocontent',
//'label' => esc_html__( 'This is the label', 'artcela' ),
'section' => 'typography',
'default' => '' . esc_html__( 'Content', 'artcela' ) . '
',
'priority' => 4,
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_posttitlefont',
'label' => esc_attr__( 'Post Title', 'artcela' ),
//'description' => esc_attr__( ' Specify the heading font properties for h1,h2,h3,h4,h5,h6.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'typography',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
//'color' => '#333333',
'text-transform' => '',
'text-align' => '',
),
'priority' => 5,
'output' => array(
array(
'element' => '.entry-title a',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_posttextfont',
'label' => esc_attr__( 'Post Text Font', 'artcela' ),
//'description' => esc_attr__( ' Specify the heading font properties for h1,h2,h3,h4,h5,h6.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'typography',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
//'color' => '#333333',
'text-transform' => '',
'text-align' => '',
),
'priority' => 6,
'output' => array(
array(
'element' => '.content-area p',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_catpostedfont',
'label' => esc_attr__( 'Category & Posted On Font', 'artcela' ),
//'description' => esc_attr__( ' Specify the heading font properties for h1,h2,h3,h4,h5,h6.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'typography',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
//'color' => '#333333',
'text-transform' => '',
//'text-align' => 'left',
),
'priority' => 7,
'output' => array(
array(
'element' => '.site-content .content-area .cat-links a,.content-area .posted-on,.content-area .recent-post-comments,.content-area .widget-time',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'custom',
'settings' => 'typosidebarmsg',
//'label' => esc_html__( 'This is the label', 'artcela' ),
'section' => 'typography',
'default' => '' . esc_html__( 'Widget', 'artcela' ) . '
',
'priority' => 8,
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_widgetfont',
'label' => esc_attr__( 'SideBar Widget Heading Font', 'artcela' ),
//'description' => esc_attr__( ' Specify the heading font properties for h1,h2,h3,h4,h5,h6.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'typography',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
//'color' => '#333333',
'text-transform' => '',
'text-align' => '',
),
'priority' => 9,
'output' => array(
array(
'element' => '.second-sidebar .widget-title, .widget-area .widget-title',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_widgetlinkfont',
'label' => esc_attr__( 'SideBar Widget Link Font', 'artcela' ),
//'description' => esc_attr__( ' Specify the heading font properties for h1,h2,h3,h4,h5,h6.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'typography',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
//'color' => '#333333',
'text-transform' => '',
'text-align' => '',
),
'priority' => 9,
'output' => array(
array(
'element' => '.second-sidebar a,.second-sidebar li a,.widget-area a, .widget-area li a',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_widgetmetafont',
'label' => esc_attr__( 'SideBar Widget cat,meta,archive Font', 'artcela' ),
//'description' => esc_attr__( ' Specify the heading font properties for h1,h2,h3,h4,h5,h6.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'typography',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
//'color' => '#333333',
'text-transform' => '',
'text-align' => '',
),
'priority' => 9,
'output' => array(
array(
'element' => '.second-sidebar .cat-links a,.second-sidebar .posted-on,.second-sidebar .recent-post-comments,.second-sidebar .widget-time,
.widget-area .cat-links a,.widget-area .posted-on,.widget-area .recent-post-comments,.widget-area .widget-time
',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_widgettextfont',
'label' => esc_attr__( 'Sidebar Widget text Font', 'artcela' ),
//'description' => esc_attr__( ' Specify the heading font properties for h1,h2,h3,h4,h5,h6.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'typography',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
//'color' => '#333333',
'text-transform' => '',
'text-align' => '',
),
'priority' => 9,
'output' => array(
array(
'element' => '.second-sidebar p , .widget-area p',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
// Social media Icon Repeater////////////////////////////////////////////
Kirki::add_field( 'kirki_demo', array(
'type' => 'repeater',
'label' => esc_attr__( 'Social Icons', 'artcela' ),
'settings' => 'social_menu_items',
'section' => 'socialmedia',
'priority' => 30,
// row label ///
'row_label' => array(
'type' => 'field',
'value' => esc_attr__('Social Menu', 'artcela' ),
'field' => 'item_text',
),
'default' => array(
array(
'item_text' => esc_attr__( 'Facebook', 'artcela' ),
'item_url' => '#',
'item_ico' => esc_attr__( 'fa-facebook', 'artcela' ),
'item_color' => esc_attr__( 'white', 'artcela' ),
'item_color_hover' => esc_attr__( '#a5a5a5', 'artcela' ),
),
array(
'item_text' => esc_attr__( 'Twitter', 'artcela' ),
'item_url' => '#',
'item_ico' => esc_attr__( 'fa-twitter', 'artcela' ),
'item_color' => esc_attr__( 'white', 'artcela' ),
'item_color_hover' => esc_attr__( '#a5a5a5', 'artcela' ),
),
array(
'item_text' => esc_attr__( 'Google Plus', 'artcela' ),
'item_url' => '#',
'item_ico' => esc_attr__( 'fa-google-plus', 'artcela' ),
'item_color' => esc_attr__( 'white', 'artcela' ),
'item_color_hover' => esc_attr__( '#a5a5a5', 'artcela' ),
),
array(
'item_text' => esc_attr__( 'LinkedIn', 'artcela' ),
'item_url' => '#',
'item_ico' => esc_attr__( 'fa-linkedin', 'artcela' ),
'item_color' => esc_attr__( 'white', 'artcela' ),
'item_color_hover' => esc_attr__( '#a5a5a5', 'artcela' ),
),
array(
'item_text' => esc_attr__( 'Adobe Behance', 'artcela' ),
'item_url' => '#',
'item_ico' => esc_attr__( 'fa-behance', 'artcela' ),
'item_color' => esc_attr__( 'white', 'artcela' ),
'item_color_hover' => esc_attr__( '#a5a5a5', 'artcela' ),
),
array(
'item_text' => esc_attr__( 'GitHub Profile', 'artcela' ),
'item_url' => '#',
'item_ico' => esc_attr__( 'fa-github', 'artcela' ),
'item_color' => esc_attr__( 'white', 'artcela' ),
'item_color_hover' => esc_attr__( '#a5a5a5', 'artcela' ),
),
),
// repeating fields
'fields' => array(
'item_text' => array(
'type' => 'text',
'label' => esc_attr__( 'Text', 'artcela' ),
'description' => esc_attr__( 'Social Profile Name', 'artcela' ),
),
'item_url' => array(
'type' => 'url',
'label' => esc_attr__( 'URL', 'artcela' ),
'description' => esc_attr__( 'Social Profile URL', 'artcela' ),
),
'item_ico' => array(
'type' => 'text',
'label' => esc_attr__( 'Icon', 'artcela' ),
'description' => 'List of Icons',
),
'item_color' => array(
'type' => 'color',
'label' => esc_attr__( 'Icon Color', 'artcela' ),
),
'item_color_hover' => array(
'type' => 'color',
'label' => esc_attr__( 'Icon Hover Color', 'artcela' ),
),
)
) );
/*
// Theme_mod settings to check.
*/
Kirki::add_field( 'kirki_demo', array(
'type' => 'checkbox',
'settings' => 'checkbox_demo',
'label' => esc_attr__( 'Checkbox demo', 'artcela' ),
'description' => esc_attr__( 'This is a simple checkbox', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'checkbox',
'default' => true,
'priority' => 10,
) );
// Footer
// Use for php 5.2 and below or you will get anonymous function error
function artcela_copyright_footer_text_callback(){
return wp_kses_post( get_theme_mod( 'copyright_footer_text' ) );
}
Kirki::add_field( 'kirki_demo', array(
'type' => 'textarea',
'settings' => 'copyright_footer_text',
'label' => __( 'Footer Text', 'artcela' ),
'description' => __( 'Add some text to the footer', 'artcela' ),
'section' => 'footer',
'default' => 'Made with love!',
'priority' => 1,
'transport' => 'auto',
'partial_refresh' => array(
'footercopyrihttext' => array(
'selector' => '.site-info p',
'render_callback' => 'artcela_copyright_footer_text_callback',
),
),
)
);
Kirki::add_field( 'kirki_demo', array(
'type' => 'radio-image',
'settings' => 'footerselectsetting',
'label' => esc_html__( 'Select Footer', 'artcela' ),
'section' => 'footer',
'default' => '1',
'priority' => 2,
'transport' => 'auto',
'choices' => array(
'1' => get_template_directory_uri() . '/assets/images/footer1.png',
'2' => get_template_directory_uri() . '/assets/images/footer2.png',
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_footerheadingfonts',
'label' => esc_attr__( 'Footer Widget Heading Font', 'artcela' ),
'description' => esc_attr__( 'Specify the footer heading font properties.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'footer',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
'color' => '',
'text-transform' => '',
'text-align' => '',
),
'priority' => 3,
'output' => array(
array(
'element' => '.footer-widget .widget-title',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_footerwidgettextfonts',
'label' => esc_attr__( 'Footer Widget text Font', 'artcela' ),
'description' => esc_attr__( 'Specify the Footer Widget text font properties.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'footer',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
'color' => '',
'text-transform' => '',
'text-align' => '',
),
'priority' => 4,
'output' => array(
array(
'element' => '.footer-widget p',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_footerwidgetlinkfonts',
'label' => esc_attr__( 'Footer Widget Link Font', 'artcela' ),
'description' => esc_attr__( 'Specify the Footer Widget Link font properties.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'footer',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
'color' => '',
'text-transform' => '',
'text-align' => '',
),
'priority' => 5,
'output' => array(
array(
'element' => '.footer-widget li a ,.footer-widget a ',
),
array(
'element' => '.footer-widget .cat-item ,.footer-widget .widget_recent_entries li',
'property' => 'border-color',
'choice' => 'color',
),
),
'transport' => 'refresh',
// Edit button on logo on frontend
) );
Kirki::add_field( 'kirki_demo', array(
'settings' => 'dimensions',
'section' => 'footer',
'label' => esc_html__( 'Footer Copyright margin Option', 'artcela' ),
'type' => 'dimensions',
'default' => array(
'top' => '5px',
'right' => '10px',
'bottom' => '0px',
'left' => '10px',
),
'transport' => 'auto',
'output' => array(
array(
'element' => '.site-info p',
'property' => 'margin',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'settings' => 'dimensions_copyright',
'section' => 'footer',
'label' => esc_html__( 'Footer Copyright padding Option', 'artcela' ),
'type' => 'dimensions',
'default' => array(
'top' => '10px',
'right' => '10px',
'bottom' => '10px',
'left' => '10px',
),
'transport' => 'auto',
'output' => array(
array(
'element' => '.site-info p',
'property' => 'padding',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'background',
'settings' => 'background_footerbackground',
'label' => esc_html__( 'Footer Background', 'artcela' ),
'description' => esc_html__( 'Footer Background with image, color, etc..', 'artcela' ),
'section' => 'footer',
'default' => array(
'background-color' => '',
'background-image' => '',
'background-repeat' => 'repeat',
'background-position' => 'center center',
'background-size' => 'cover',
'background-attachment' => 'scroll',
),
'transport' => 'auto',
'output' => array(
array(
'element' => '.site-footer .footer-widget-area ,.site-footer',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'background',
'settings' => 'background_footerwidgetbackground',
'label' => esc_html__( 'Footer Widget Background', 'artcela' ),
'description' => esc_html__( 'Footer Widget Background with image, color, etc.', 'artcela' ),
'section' => 'footer',
'default' => array(
'background-color' => '',
'background-image' => '',
'background-repeat' => 'repeat',
'background-position' => 'center center',
'background-size' => 'cover',
'background-attachment' => 'scroll',
),
'transport' => 'auto',
'output' => array(
array(
'element' => '.footer-widget .widget',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'background',
'settings' => 'background_footercopyrightbackground',
'label' => esc_html__( 'Footer-Copyright-Area Background', 'artcela' ),
'description' => esc_html__( 'Footer-Copyright-Area with image, color, etc., color, etc.', 'artcela' ),
'section' => 'footer',
'default' => array(
'background-color' => '',
'background-image' => '',
'background-repeat' => 'repeat',
'background-position' => 'center center',
'background-size' => 'cover',
'background-attachment' => 'scroll',
),
'transport' => 'auto',
'output' => array(
array(
'element' => '.site-info',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'typography',
'settings' => 'typography_copyrightareafonts',
'label' => esc_attr__( 'Footer-Copyright-Area Font', 'artcela' ),
'description' => esc_attr__( 'Specify the footer copyright area font properties.', 'artcela' ),
'help' => esc_attr__( 'This is a tooltip', 'artcela' ),
'section' => 'footer',
'default' => array(
'font-family' => '',
'variant' => '',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
'color' => '',
'text-transform' => '',
'text-align' => '',
),
'priority' => 6,
'output' => array(
array(
'element' => '.site-info p',
),
),
'transport' => 'auto',
// Edit button on logo on frontend
) );
// Slider
Kirki::add_field( 'kirki_demo', array(
'type' => 'toggle',
'settings' => 'slider_setting_toggle',
'label' => esc_html__( 'Slider ', 'artcela' ),
'description' => esc_html__( 'Enable/Disable Slider', 'artcela' ),
'section' => 'slider',
'default' => '1',
'priority' => 1,
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'radio-image',
'settings' => 'sliderselectsetting',
'label' => esc_html__( 'Select Featured Post Slider', 'artcela' ),
'section' => 'slider',
'default' => '2',
'priority' => 3,
'transport' => 'auto',
'choices' => array(
'2' => get_template_directory_uri() . '/assets/images/slider2.png',
'3' => get_template_directory_uri() . '/assets/images/slider3.png',
'4' => get_template_directory_uri() . '/assets/images/slider4.png',
),
'transport' => 'auto',
'partial_refresh' => array(
'slider' => array(
'selector' => '.multisliderout .featured-posts', // this will add the pencil edit image on .site-title
'render_callback' => '__return_false',
),
),
'active_callback' => array(
array(
array(
'setting' => 'slider_setting_toggle',
'value' => array( '1' ),
'operator' => '=='
),
),
),
) );
////////// SLIDER Select Posts by category ////////////////
Kirki::add_field( 'kirki_demo', array(
'type' => 'select',
'settings' => 'sliderpostcats',
'label' => __( 'Category posts to Show in slider', 'artcela' ),
'description' => esc_attr__( 'Select Multiple or Single Category to Show post from in slider.', 'artcela' ),
'section' => 'slider',
'priority' => 2,
'multiple' => 9,
'default' => '111111111111111111',
//'choices' => Kirki_Helper::get_posts( array( 'posts_per_page' => -1,) ),
'choices' => Kirki_Helper::get_terms( array('taxonomy' => 'category') ),
// 'choices' => Kirki_Helper::get_posts( array( 'posts_per_page' => -1,'category' => '36' ) ),
'active_callback' => array(
array(
array(
'setting' => 'slider_setting_toggle',
'value' => array( '1' ),
'operator' => '=='
),
),
),
) );
/// Theme Colors
Kirki::add_field( 'kirki_demo', array(
'type' => 'color',
'settings' => 'color_demo_preset',
'label' => esc_attr__( 'Theme primary color', 'artcela' ),
'section' => 'colorselection',
//'default' => '#3d9fff',
'priority' => 1,
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'multicolor',
'settings' => 'posttitlecolor',
'label' => esc_html__( 'Post title Color', 'artcela' ),
'section' => 'colorselection',
'priority' => 2,
'choices' => array(
'link' => esc_html__( 'Color', 'artcela' ),
'hover' => esc_html__( 'Hover', 'artcela' ),
),
'default' => array(
'link' => '',
'hover' => '',
),
'output' => array(
array(
'choice' => 'link',
'element' => '.entry-header .entry-title a',
'property' => 'color',
),
array(
'choice' => 'hover',
'element' => '.entry-header .entry-title a:hover',
'property' => 'color',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'color',
'settings' => 'categorymetacolor',
'label' => esc_attr__( 'Post Category Color Option', 'artcela' ),
'section' => 'colorselection',
//'default' => '#81d742',
'priority' => 3,
'transport' => 'auto',
'output' => array(
array(
'element' => '.site-content .content-area .cat-links a',
'property' => 'color',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'color',
'settings' => 'postedonmetacolor',
'label' => esc_attr__( 'Post Posted on Color Option', 'artcela' ),
'section' => 'colorselection',
//'default' => '#81d742',
'priority' => 4,
'transport' => 'auto',
'output' => array(
array(
'element' => '.site-content .content-area .recent-post-comments,.site-content .content-area .posted-on a',
'property' => 'color',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'color',
'settings' => 'postauthorcolor',
'label' => esc_attr__( 'Post author Color Option', 'artcela' ),
'section' => 'colorselection',
//'default' => '#81d742',
'priority' => 5,
'transport' => 'auto',
'output' => array(
array(
'element' => '.site-content .content-area .author-profile-cs a',
'property' => 'color',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'color',
'settings' => 'pagetitlecolor',
'label' => esc_attr__( 'Page Title Color', 'artcela' ),
'section' => 'colorselection',
//'default' => '#81d742',
'priority' => 6,
'transport' => 'auto',
'output' => array(
array(
'element' => '.page-template-default .entry-title',
'property' => 'color',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'color',
'settings' => 'contentcolor',
'label' => esc_attr__( 'Post Content Color', 'artcela' ),
'section' => 'colorselection',
//'default' => '#81d742',
'priority' => 7,
'transport' => 'auto',
'output' => array(
array(
'element' => '.entry-content p',
'property' => 'color',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'color',
'settings' => 'sidebarwidgettitlecolor',
'label' => esc_attr__( 'Sidebar Widget Title Color', 'artcela' ),
'section' => 'colorselection',
//'default' => '#81d742',
'priority' => 8,
'transport' => 'auto',
'output' => array(
array(
'element' => '.second-sidebar .widget-title , .widget-area .widget-title',
'property' => 'color',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'color',
'settings' => 'sidebarwidgettextcolor',
'label' => esc_attr__( 'Sidebar Widget Text Color', 'artcela' ),
'section' => 'colorselection',
//'default' => '#81d742',
'priority' => 9,
'transport' => 'auto',
'output' => array(
array(
'element' => '.second-sidebar p , .widget-area p',
'property' => 'color',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'color',
'settings' => 'sidebarwidgetmetacolor',
'label' => esc_attr__( 'Sidebar Widget meta Color', 'artcela' ),
'section' => 'colorselection',
//'default' => '#81d742',
'priority' => 10,
'transport' => 'auto',
'output' => array(
array(
'element' => '.recent-post-comments , .posted-on a ,.widget-time',
'property' => 'color',
),
),
) );
Kirki::add_field( 'kirki_demo', array(
'type' => 'multicolor',
'settings' => 'sidebarwidgetlink',
'label' => esc_html__( 'Sidebar Widget Link Color Option', 'artcela' ),
'section' => 'colorselection',
'priority' => 11,
'choices' => array(
'link' => esc_html__( 'Color', 'artcela' ),
'hover' => esc_html__( 'Hover', 'artcela' ),
),
'default' => array(
'link' => '',
'hover' => '',
),
'output' => array(
array(
'choice' => 'link',
'element' => '.widget-area a , .widget-area li a',
'property' => 'color',
),
array(
'choice' => 'link',
'element' => '.widget-area li',
'property' => 'border-color',
),
array(
'choice' => 'hover',
'element' => '.widget-area a:hover , .widget-area ul li a:hover',
'property' => 'color',
),
),
) );
}
// customizer styles
function kirki_demo_configuration_sample_styling( $config ) {
return wp_parse_args( array(
'logo_image' => get_template_directory_uri() . '/assets/images/customizerlogo.png',
'description' => esc_html__( 'The theme description.', 'artcela' ),
//'color_accent' => '#bbb',//hover color
//'color_back' => '#fff',// background color
'disable_loader' => true,
), $config );
}
add_filter( 'kirki_config', 'kirki_demo_configuration_sample_styling' );
?>