| Server IP : 172.67.71.254 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/leapdubai/public_html/wp-content/themes/printx/inc/ |
Upload File : |
<?php
new \Kirki\Panel(
'panel_id',
[
'priority' => 10,
'title' => esc_html__( 'Printx Panel', 'printx' ),
'description' => esc_html__( 'Printx Panel Description.', 'printx' ),
]
);
// header_top_section
function header_top_section(){
// header_top_bar section
new \Kirki\Section(
'header_top_section',
[
'title' => esc_html__( 'Header Info', 'printx' ),
'description' => esc_html__( 'Header Section Information.', 'printx' ),
'panel' => 'panel_id',
'priority' => 100,
]
);
// header_top_bar section
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_header_elementor_switch',
'label' => esc_html__( 'Header Custom/Elementor Switch', 'printx' ),
'description' => esc_html__( 'Header Custom/Elementor On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Radio_Image(
[
'settings' => 'header_layout_custom',
'label' => esc_html__( 'Choose Header Style', 'printx' ),
'section' => 'header_top_section',
'priority' => 10,
'choices' => [
'header_1' => get_template_directory_uri() . '/inc/img/header/header-1.png',
'header_2' => get_template_directory_uri() . '/inc/img/header/header-2.png',
'header_3' => get_template_directory_uri() . '/inc/img/header/header-3.png',
'header_4' => get_template_directory_uri() . '/inc/img/header/header-4.png',
'header_5' => get_template_directory_uri() . '/inc/img/header/header-5.png',
],
'default' => 'header_1',
'active_callback' => [
[
'setting' => 'printx_header_elementor_switch',
'operator' => '==',
'value' => false
]
]
]
);
$header_posttype = array(
'post_type' => 'tp-header',
'posts_per_page' => -1,
);
$header_posttype_loop = get_posts($header_posttype);
$header_post_obj_arr = array();
foreach($header_posttype_loop as $post){
$header_post_obj_arr[$post->ID] = $post->post_title;
}
wp_reset_postdata();
new \Kirki\Field\Select(
[
'settings' => 'printx_header_templates',
'label' => esc_html__( 'Elementor Header Template', 'printx' ),
'section' => 'header_top_section',
'placeholder' => esc_html__( 'Choose an option', 'printx' ),
'choices' => $header_post_obj_arr,
'active_callback' => [
[
'setting' => 'printx_header_elementor_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_topbar_switch',
'label' => esc_html__( 'Header Topbar Switch', 'printx' ),
'description' => esc_html__( 'Header Topbar switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
// topbar text
new \Kirki\Field\Textarea(
[
'settings' => 'header_top_left_text',
'label' => esc_html__( 'Topbar Left Text', 'printx' ),
'section' => 'header_top_section',
'default' => esc_html__( 'Header topbar left text here.', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Textarea(
[
'settings' => 'header_top_middle_text',
'label' => esc_html__( 'Topbar Middle Text', 'printx' ),
'section' => 'header_top_section',
'default' => esc_html__( 'Header topbar middle text here.', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_top_btn_text',
'label' => esc_html__( 'Middle Button Text', 'printx' ),
'section' => 'header_top_section',
'default' => esc_html__( 'Shop', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_top_btn_url',
'label' => esc_html__( 'Middle Button URL', 'printx' ),
'section' => 'header_top_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Textarea(
[
'settings' => 'header_top_right_text',
'label' => esc_html__( 'Topbar Right Text', 'printx' ),
'section' => 'header_top_section',
'default' => esc_html__( 'Header topbar right text here.', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Date(
[
'settings' => 'header_top_right_date',
'label' => esc_html__( 'Topbar Count Down Date', 'printx' ),
'section' => 'header_top_section',
'default' => '2024-05-30',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
]
]
]
);
// top social
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_topSocial_switch',
'label' => esc_html__( 'Header Top Social', 'printx' ),
'description' => esc_html__( 'Header top social switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_top_facebook',
'label' => esc_html__( 'Facebook URL', 'printx' ),
'section' => 'header_top_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
],
[
'setting' => 'header_topSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_top_twitter',
'label' => esc_html__( 'Twitter URL', 'printx' ),
'section' => 'header_top_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
],
[
'setting' => 'header_topSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_top_linkedin',
'label' => esc_html__( 'Linkedin URL', 'printx' ),
'section' => 'header_top_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
],
[
'setting' => 'header_topSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_top_instagram',
'label' => esc_html__( 'Instagram URL', 'printx' ),
'section' => 'header_top_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
],
[
'setting' => 'header_topSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_top_youtube',
'label' => esc_html__( 'Youtube URL', 'printx' ),
'section' => 'header_top_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
],
[
'setting' => 'header_topSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_multicurrency_switch',
'label' => esc_html__( 'Header Multi Currency Switch', 'printx' ),
'description' => esc_html__( 'Header multi currency switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_lang_switch',
'label' => esc_html__( 'Header Language Switch', 'printx' ),
'description' => esc_html__( 'Header language switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
'active_callback' => [
[
'setting' => 'header_topbar_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_extra_switch',
'label' => esc_html__( 'Header Extra Info Switch', 'printx' ),
'description' => esc_html__( 'Header Extra Info switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_cat_switch',
'label' => esc_html__( 'Header Category Switch', 'printx' ),
'description' => esc_html__( 'Header category switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_cat_heading',
'label' => esc_html__( 'Category Heading', 'printx' ),
'section' => 'header_top_section',
'default' => esc_html__( 'Top Categories', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_cat_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_search_switch',
'label' => esc_html__( 'Header Search Switch', 'printx' ),
'description' => esc_html__( 'Header Search switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_right_switch',
'label' => esc_html__( 'Header Right Switch', 'printx' ),
'description' => esc_html__( 'Header Right switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_right_account',
'label' => esc_html__( 'Header Right Account Switch', 'printx' ),
'description' => esc_html__( 'Header right account switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
'active_callback' => [
[
'setting' => 'header_right_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_account_url',
'label' => esc_html__( 'Account URL', 'printx' ),
'section' => 'header_top_section',
'default' => esc_html__( '#', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_right_account',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_right_wishlist',
'label' => esc_html__( 'Header Right Wishlist Switch', 'printx' ),
'description' => esc_html__( 'Header right wishlist switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
'active_callback' => [
[
'setting' => 'header_right_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_wishlist_url',
'label' => esc_html__( 'Wishlist URL', 'printx' ),
'section' => 'header_top_section',
'default' => esc_html__( '#', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_right_wishlist',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_right_cart',
'label' => esc_html__( 'Header Right Cart Switch', 'printx' ),
'description' => esc_html__( 'Header right cart switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
'active_callback' => [
[
'setting' => 'header_right_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_cart_url',
'label' => esc_html__( 'Cart URL', 'printx' ),
'section' => 'header_top_section',
'default' => esc_html__( '#', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_right_cart',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_button_text',
'label' => esc_html__( 'Right Button Text', 'printx' ),
'section' => 'header_top_section',
'default' => esc_html__( 'Get A Quote', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_right_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_button_link',
'label' => esc_html__( 'Right Button URL', 'printx' ),
'section' => 'header_top_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_right_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_preloader_switch',
'label' => esc_html__( 'Header Preloader Switch', 'printx' ),
'description' => esc_html__( 'Header Preloader switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_backtotop_switch',
'label' => esc_html__( 'Header Back to Top Switch', 'printx' ),
'description' => esc_html__( 'Header Back to Top switch On/Off', 'printx' ),
'section' => 'header_top_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
}
header_top_section();
// header_side_section
function header_side_section(){
new \Kirki\Section(
'header_side_section',
[
'title' => esc_html__( 'Header Side Info', 'printx' ),
'description' => esc_html__( 'Header Side Information.', 'printx' ),
'panel' => 'panel_id',
'priority' => 110,
]
);
// side switch
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_side_switch',
'label' => esc_html__( 'Header Side Info Active', 'printx' ),
'description' => esc_html__( 'Header side info switch On/Off', 'printx' ),
'section' => 'header_side_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Image(
[
'settings' => 'printx_sidebar_logo',
'label' => esc_html__( 'Header Sidebar Logo', 'printx' ),
'description' => esc_html__( 'Theme Sidebar Logo Here', 'printx' ),
'section' => 'header_side_section',
'default' => get_template_directory_uri() . '/assets/img/logo/white-logo.png',
]
);
new \Kirki\Field\Textarea(
[
'settings' => 'header_sideAbout_text',
'label' => esc_html__( 'About Text', 'printx' ),
'section' => 'header_side_section',
'default' => esc_html__( 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima incidunt eaque a cumque', 'printx' ),
'priority' => 10,
]
);
// side contact
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_sideCon_switch',
'label' => esc_html__( 'Header Side Contact', 'printx' ),
'description' => esc_html__( 'Header side contact switch On/Off', 'printx' ),
'section' => 'header_side_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_sidCon_title',
'label' => esc_html__( 'Contact Title', 'printx' ),
'section' => 'header_side_section',
'default' => esc_html__( 'Contact', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideCon_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_side_location',
'label' => esc_html__( 'Location', 'printx' ),
'section' => 'header_side_section',
'default' => __('Melbone st, Australia.', 'printx'),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideCon_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_side_loc_url',
'label' => esc_html__( 'Location URL', 'printx' ),
'section' => 'header_side_section',
'default' => __('#', 'printx'),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideCon_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_side_email',
'label' => esc_html__( 'Email Address', 'printx' ),
'section' => 'header_side_section',
'default' => __('printx@gmail.com', 'printx'),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideCon_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_side_mail_url',
'label' => esc_html__( 'Email URL', 'printx' ),
'section' => 'header_side_section',
'default' => __('#', 'printx'),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideCon_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_side_phone',
'label' => esc_html__( 'Phone Number', 'printx' ),
'section' => 'header_side_section',
'default' => __('48 555 223 224', 'printx'),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideCon_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_side_phone_url',
'label' => esc_html__( 'Phone Number URL', 'printx' ),
'section' => 'header_side_section',
'default' => __('#', 'printx'),
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideCon_switch',
'operator' => '==',
'value' => true
]
]
]
);
// newsletter
new \Kirki\Field\Text(
[
'settings' => 'header_side_letter_title',
'label' => esc_html__( 'Newsletter Title', 'printx' ),
'section' => 'header_side_section',
'default' => __('Get Updates', 'printx'),
'priority' => 10,
]
);
new \Kirki\Field\Text(
[
'settings' => 'header_side_letter_shortcode',
'label' => esc_html__( 'Newsletter Shortcode', 'printx' ),
'section' => 'header_side_section',
'default' => __('', 'printx'),
'priority' => 10,
]
);
// side social
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'header_sideSocial_switch',
'label' => esc_html__( 'Header Side Social', 'printx' ),
'description' => esc_html__( 'Header side social switch On/Off', 'printx' ),
'section' => 'header_side_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_side_facebook',
'label' => esc_html__( 'Facebook URL', 'printx' ),
'section' => 'header_side_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_side_twitter',
'label' => esc_html__( 'Twitter URL', 'printx' ),
'section' => 'header_side_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_side_linkedin',
'label' => esc_html__( 'Linkedin URL', 'printx' ),
'section' => 'header_side_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_side_instagram',
'label' => esc_html__( 'Instagram URL', 'printx' ),
'section' => 'header_side_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_side_youtube',
'label' => esc_html__( 'Youtube URL', 'printx' ),
'section' => 'header_side_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'header_sideSocial_switch',
'operator' => '==',
'value' => true
]
]
]
);
}
header_side_section();
// header_social_section
function header_social_section(){
new \Kirki\Section(
'header_social_section',
[
'title' => esc_html__( 'Header Social', 'printx' ),
'description' => esc_html__( 'Header Social URL.', 'printx' ),
'panel' => 'panel_id',
'priority' => 120,
]
);
// header_top_bar section
new \Kirki\Field\URL(
[
'settings' => 'header_facebook_link',
'label' => esc_html__( 'Facebook URL', 'printx' ),
'section' => 'header_social_section',
'default' => '#',
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_twitter_link',
'label' => esc_html__( 'Twitter URL', 'printx' ),
'section' => 'header_social_section',
'default' => '#',
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_linkedin_link',
'label' => esc_html__( 'Linkedin URL', 'printx' ),
'section' => 'header_social_section',
'default' => '#',
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_instagram_link',
'label' => esc_html__( 'Instagram URL', 'printx' ),
'section' => 'header_social_section',
'default' => '#',
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'header_youtube_link',
'label' => esc_html__( 'Youtube URL', 'printx' ),
'section' => 'header_social_section',
'default' => '#',
'priority' => 10,
]
);
}
// header_social_section();
// header_logo_section
function header_logo_section(){
// header_logo_section section
new \Kirki\Section(
'header_logo_section',
[
'title' => esc_html__( 'Header Logo', 'printx' ),
'description' => esc_html__( 'Header Logo Settings.', 'printx' ),
'panel' => 'panel_id',
'priority' => 130,
]
);
// header_logo_section section
new \Kirki\Field\Image(
[
'settings' => 'header_logo',
'label' => esc_html__( 'Header Logo', 'printx' ),
'description' => esc_html__( 'Theme Default/Primary Logo Here', 'printx' ),
'section' => 'header_logo_section',
'default' => get_template_directory_uri() . '/assets/img/logo/logo.png',
]
);
new \Kirki\Field\Image(
[
'settings' => 'header_secondary_logo',
'label' => esc_html__( 'Header Secondary Logo', 'printx' ),
'description' => esc_html__( 'Theme Secondary Logo Here', 'printx' ),
'section' => 'header_logo_section',
'default' => get_template_directory_uri() . '/assets/img/logo/white-logo.png',
]
);
new \Kirki\Field\Image(
[
'settings' => 'header_sticky_logo',
'label' => esc_html__( 'Header Sticky Logo', 'printx' ),
'description' => esc_html__( 'Theme Sticky Logo Here', 'printx' ),
'section' => 'header_logo_section',
'default' => get_template_directory_uri() . '/assets/img/logo/logo.png',
'active_callback' => [
[
'setting' => 'header_layout_custom',
'operator' => '==',
'value' => 'header_3'
]
]
]
);
}
header_logo_section();
// header_logo_section
function header_breadcrumb_section(){
// header_logo_section section
new \Kirki\Section(
'header_breadcrumb_section',
[
'title' => esc_html__( 'Breadcrumb', 'printx' ),
'description' => esc_html__( 'Breadcrumb Settings.', 'printx' ),
'panel' => 'panel_id',
'priority' => 160,
]
);
// header_logo_section section
new \Kirki\Field\Image(
[
'settings' => 'breadcrumb_image',
'label' => esc_html__( 'Breadcrumb Image', 'printx' ),
'description' => esc_html__( 'Breadcrumb Image add/remove', 'printx' ),
'section' => 'header_breadcrumb_section',
]
);
new \Kirki\Field\Color(
[
'settings' => 'breadcrumb_bg_color',
'label' => __( 'Breadcrumb BG Color', 'printx' ),
'description' => esc_html__( 'You can change breadcrumb bg color from here.', 'printx' ),
'section' => 'header_breadcrumb_section',
'default' => '#F8E7EF',
]
);
new \Kirki\Field\Dimensions(
[
'settings' => 'breadcrumb_padding',
'label' => esc_html__( 'Dimensions Control', 'printx' ),
'description' => esc_html__( 'Description', 'printx' ),
'section' => 'header_breadcrumb_section',
'default' => [
'padding-top' => '',
'padding-bottom' => '',
],
]
);
new \Kirki\Field\Typography(
[
'settings' => 'breadcrumb_typography',
'label' => esc_html__( 'Typography Control', 'printx' ),
'description' => esc_html__( 'The full set of options.', 'printx' ),
'section' => 'header_breadcrumb_section',
'priority' => 10,
'transport' => 'auto',
'default' => [
'font-family' => '',
'variant' => '',
'color' => '',
'font-size' => '',
'line-height' => '',
'text-align' => '',
],
'output' => [
[
'element' => '.tpbreadcrumb-title',
],
],
]
);
}
header_breadcrumb_section();
// portfolios section
function portfolios_section(){
// header_logo_section section
new \Kirki\Section(
'portfolios_section',
[
'title' => esc_html__( 'Portfolios', 'printx' ),
'description' => esc_html__( 'Portfolios Settings.', 'printx' ),
'panel' => 'panel_id',
'priority' => 160,
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'port_breadcrumb_shape',
'label' => esc_html__( 'Portfolio Breadcrumb Shape', 'printx' ),
'description' => esc_html__( 'Portfolio Breadcrumb shape switch On/Off', 'printx' ),
'section' => 'portfolios_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'port_related_post',
'label' => esc_html__( 'Portfolio Details Related Post', 'printx' ),
'description' => esc_html__( 'Portfolio Details Related Post switch On/Off', 'printx' ),
'section' => 'portfolios_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Text(
[
'settings' => 'port_related_post_title',
'label' => esc_html__( 'Related Post Title', 'printx' ),
'section' => 'portfolios_section',
'default' => esc_html__( 'Related Portfolio Posts', 'printx' ),
'priority' => 10,
'active_callback' => [
[
'setting' => 'port_related_post',
'operator' => '==',
'value' => true
]
]
]
);
}
portfolios_section();
// full theme typography
function full_site_typography(){
// header_logo_section section
new \Kirki\Section(
'full_site_typography',
[
'title' => esc_html__( 'Typography', 'seomy' ),
'description' => esc_html__( 'Typography Settings.', 'seomy' ),
'panel' => 'panel_id',
'priority' => 190,
]
);
new \Kirki\Field\Typography(
[
'settings' => 'printx_typo_body',
'label' => esc_html__( 'Typography Body Text', 'printx' ),
'description' => esc_html__( 'Body Typography Control.', 'printx' ),
'section' => 'full_site_typography',
'priority' => 10,
'transport' => 'auto',
'default' => [
'font-family' => '',
'variant' => '',
'color' => '',
'font-size' => '',
'line-height' => '',
'text-align' => '',
],
'output' => [
[
'element' => 'body',
],
],
]
);
new \Kirki\Field\Typography(
[
'settings' => 'printx_typo_h1',
'label' => esc_html__( 'Typography Heading 1 Font', 'printx' ),
'description' => esc_html__( 'H1 Typography Control.', 'printx' ),
'section' => 'full_site_typography',
'priority' => 10,
'transport' => 'auto',
'default' => [
'font-family' => '',
'variant' => '',
'color' => '',
'font-size' => '',
'line-height' => '',
'text-align' => '',
],
'output' => [
[
'element' => 'h1',
],
],
]
);
new \Kirki\Field\Typography(
[
'settings' => 'printx_typo_h2',
'label' => esc_html__( 'Typography Heading 2 Font', 'printx' ),
'description' => esc_html__( 'H2 Typography Control.', 'printx' ),
'section' => 'full_site_typography',
'priority' => 10,
'transport' => 'auto',
'default' => [
'font-family' => '',
'variant' => '',
'color' => '',
'font-size' => '',
'line-height' => '',
'text-align' => '',
],
'output' => [
[
'element' => 'h2',
],
],
]
);
new \Kirki\Field\Typography(
[
'settings' => 'printx_typo_h3',
'label' => esc_html__( 'Typography Heading 3 Font', 'printx' ),
'description' => esc_html__( 'H3 Typography Control.', 'printx' ),
'section' => 'full_site_typography',
'priority' => 10,
'transport' => 'auto',
'default' => [
'font-family' => '',
'variant' => '',
'color' => '',
'font-size' => '',
'line-height' => '',
'text-align' => '',
],
'output' => [
[
'element' => 'h3',
],
],
]
);
new \Kirki\Field\Typography(
[
'settings' => 'printx_typo_h4',
'label' => esc_html__( 'Typography Heading 4 Font', 'printx' ),
'description' => esc_html__( 'H4 Typography Control.', 'printx' ),
'section' => 'full_site_typography',
'priority' => 10,
'transport' => 'auto',
'default' => [
'font-family' => '',
'variant' => '',
'color' => '',
'font-size' => '',
'line-height' => '',
'text-align' => '',
],
'output' => [
[
'element' => 'h4',
],
],
]
);
new \Kirki\Field\Typography(
[
'settings' => 'printx_typo_h5',
'label' => esc_html__( 'Typography Heading 5 Font', 'printx' ),
'description' => esc_html__( 'H5 Typography Control.', 'printx' ),
'section' => 'full_site_typography',
'priority' => 10,
'transport' => 'auto',
'default' => [
'font-family' => '',
'variant' => '',
'color' => '',
'font-size' => '',
'line-height' => '',
'text-align' => '',
],
'output' => [
[
'element' => 'h5',
],
],
]
);
new \Kirki\Field\Typography(
[
'settings' => 'printx_typo_h6',
'label' => esc_html__( 'Typography Heading 6 Font', 'printx' ),
'description' => esc_html__( 'H6 Typography Control.', 'printx' ),
'section' => 'full_site_typography',
'priority' => 10,
'transport' => 'auto',
'default' => [
'font-family' => '',
'variant' => '',
'color' => '',
'font-size' => '',
'line-height' => '',
'text-align' => '',
],
'output' => [
[
'element' => 'h6',
],
],
]
);
}
full_site_typography();
// header_logo_section
function footer_layout_section(){
// header_logo_section section
new \Kirki\Section(
'footer_layout_section',
[
'title' => esc_html__( 'Footer', 'printx' ),
'description' => esc_html__( 'Footer Settings.', 'printx' ),
'panel' => 'panel_id',
'priority' => 190,
]
);
// footer_widget_number section
new \Kirki\Field\Select(
[
'settings' => 'footer_widget_number',
'label' => esc_html__( 'Footer Widget Number', 'printx' ),
'section' => 'footer_layout_section',
'default' => '4',
'placeholder' => esc_html__( 'Choose an option', 'printx' ),
'choices' => [
'1' => esc_html__( '1', 'printx' ),
'2' => esc_html__( '2', 'printx' ),
'3' => esc_html__( '3', 'printx' ),
'4' => esc_html__( '4', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_footer_elementor_switch',
'label' => esc_html__( 'Footer Custom/Elementor Switch', 'printx' ),
'description' => esc_html__( 'Footer Custom/Elementor On/Off', 'printx' ),
'section' => 'footer_layout_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Radio_Image(
[
'settings' => 'footer_layout',
'label' => esc_html__( 'Footer Layout Control', 'printx' ),
'section' => 'footer_layout_section',
'priority' => 10,
'choices' => [
'footer_1' => get_template_directory_uri() . '/inc/img/footer/footer-1.png',
'footer_2' => get_template_directory_uri() . '/inc/img/footer/footer-2.png',
'footer_3' => get_template_directory_uri() . '/inc/img/footer/footer-3.png',
'footer_4' => get_template_directory_uri() . '/inc/img/footer/footer-4.png',
'footer_5' => get_template_directory_uri() . '/inc/img/footer/footer-5.png',
],
'default' => 'footer_1',
'active_callback' => [
[
'setting' => 'printx_footer_elementor_switch',
'operator' => '==',
'value' => false
]
]
]
);
$footer_posttype = array(
'post_type' => 'tp-footer',
'posts_per_page' => -1,
);
$footer_posttype_loop = get_posts($footer_posttype);
$footer_post_obj_arr = array();
foreach($footer_posttype_loop as $post){
$footer_post_obj_arr[$post->ID] = $post->post_title;
}
wp_reset_postdata();
new \Kirki\Field\Select(
[
'settings' => 'printx_footer_templates',
'label' => esc_html__( 'Elementor Footer Template', 'printx' ),
'section' => 'footer_layout_section',
'placeholder' => esc_html__( 'Choose an option', 'printx' ),
'choices' => $footer_post_obj_arr,
'active_callback' => [
[
'setting' => 'printx_footer_elementor_switch',
'operator' => '==',
'value' => true
]
]
]
);
// footer_layout_section section
new \Kirki\Field\Image(
[
'settings' => 'footer_bg_image',
'label' => esc_html__( 'Footer BG Image', 'printx' ),
'description' => esc_html__( 'Footer Image add/remove', 'printx' ),
'section' => 'footer_layout_section',
]
);
new \Kirki\Field\Color(
[
'settings' => 'footer_bg_color',
'label' => __( 'Footer BG Color', 'printx' ),
'description' => esc_html__( 'You can change footer bg color from here.', 'printx' ),
'section' => 'footer_layout_section',
'default' => '',
]
);
// footer social
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_footer_social_switch',
'label' => esc_html__( 'Footer Social', 'printx' ),
'section' => 'footer_layout_section',
'default' => false,
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_facebook_link',
'label' => esc_html__( 'Facebook URL', 'printx' ),
'section' => 'footer_layout_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'printx_footer_social_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_twitter_link',
'label' => esc_html__( 'Twitter URL', 'printx' ),
'section' => 'footer_layout_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'printx_footer_social_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_linkedin_link',
'label' => esc_html__( 'Linkedin URL', 'printx' ),
'section' => 'footer_layout_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'printx_footer_social_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_instagram_link',
'label' => esc_html__( 'Instagram URL', 'printx' ),
'section' => 'footer_layout_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'printx_footer_social_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_youtube_link',
'label' => esc_html__( 'Youtube URL', 'printx' ),
'section' => 'footer_layout_section',
'default' => '#',
'priority' => 10,
'active_callback' => [
[
'setting' => 'printx_footer_social_switch',
'operator' => '==',
'value' => true
]
]
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_footer_lang_switch',
'label' => esc_html__( 'Footer Language', 'printx' ),
'section' => 'footer_layout_section',
'default' => false,
'priority' => 10,
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_footer2_switch',
'label' => esc_html__( 'Footer Custom/Elementor Switch', 'printx' ),
'description' => esc_html__( 'Footer Custom/Elementor On/Off', 'printx' ),
'section' => 'footer_layout_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_footer2_switch',
'label' => esc_html__( 'Footer 2 Active Switch', 'printx' ),
'description' => esc_html__( 'Footer style 2 On/Off', 'printx' ),
'section' => 'footer_layout_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_footer3_switch',
'label' => esc_html__( 'Footer 3 Active Switch', 'printx' ),
'description' => esc_html__( 'Footer style 3 On/Off', 'printx' ),
'section' => 'footer_layout_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_footer4_switch',
'label' => esc_html__( 'Footer 4 Active Switch', 'printx' ),
'description' => esc_html__( 'Footer style 4 On/Off', 'printx' ),
'section' => 'footer_layout_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_footer5_switch',
'label' => esc_html__( 'Footer 5 Active Switch', 'printx' ),
'description' => esc_html__( 'Footer style 5 On/Off', 'printx' ),
'section' => 'footer_layout_section',
'default' => 'off',
'choices' => [
'on' => esc_html__( 'Enable', 'printx' ),
'off' => esc_html__( 'Disable', 'printx' ),
],
]
);
new \Kirki\Field\Image(
[
'settings' => 'footer_bottom_image',
'label' => esc_html__( 'Footer Bottom Image', 'printx' ),
'description' => esc_html__( 'Footer Image add/remove', 'printx' ),
'section' => 'footer_layout_section',
]
);
new \Kirki\Field\Text(
[
'settings' => 'footer_bottom_img_link',
'label' => esc_html__( 'Image Link', 'printx' ),
'section' => 'footer_layout_section',
'priority' => 10,
]
);
new \Kirki\Field\Image(
[
'settings' => 'footer_bottom_image_2',
'label' => esc_html__( 'Footer Bottom Image 2', 'printx' ),
'description' => esc_html__( 'Footer Image add/remove', 'printx' ),
'section' => 'footer_layout_section',
]
);
new \Kirki\Field\Text(
[
'settings' => 'footer_bottom_img_link_2',
'label' => esc_html__( 'Image Link 2', 'printx' ),
'section' => 'footer_layout_section',
'priority' => 10,
]
);
new \Kirki\Field\Image(
[
'settings' => 'footer_bottom_image_3',
'label' => esc_html__( 'Footer Bottom Image 3', 'printx' ),
'description' => esc_html__( 'Footer Image add/remove', 'printx' ),
'section' => 'footer_layout_section',
]
);
new \Kirki\Field\Text(
[
'settings' => 'footer_bottom_img_link_3',
'label' => esc_html__( 'Image Link 3', 'printx' ),
'section' => 'footer_layout_section',
'priority' => 10,
]
);
new \Kirki\Field\Textarea(
[
'settings' => 'footer_bottom_text',
'label' => esc_html__( 'Footer Bottom Text', 'printx' ),
'section' => 'footer_layout_section',
'priority' => 10,
]
);
new \Kirki\Field\Text(
[
'settings' => 'footer_copyright',
'label' => esc_html__( 'Footer Copyright', 'printx' ),
'section' => 'footer_layout_section',
'default' => esc_html__( 'Copyright © 2023 Theme_Pure. All Rights Reserved', 'printx' ),
'priority' => 10,
]
);
}
footer_layout_section();
// blog_section
function blog_section(){
// blog_section section
new \Kirki\Section(
'blog_section',
[
'title' => esc_html__( 'Blog Section', 'printx' ),
'description' => esc_html__( 'Blog Section Settings.', 'printx' ),
'panel' => 'panel_id',
'priority' => 150,
]
);
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_blog_btn_switch',
'label' => esc_html__( 'Blog BTN On/Off', 'printx' ),
'section' => 'blog_section',
'default' => true,
'priority' => 10,
]
);
// blog_section Category meta
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_blog_cat',
'label' => esc_html__( 'Blog Category Meta On/Off', 'printx' ),
'section' => 'blog_section',
'default' => false,
'priority' => 10,
]
);
// blog_section Author Meta
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_blog_author',
'label' => esc_html__( 'Blog Author Meta On/Off', 'printx' ),
'section' => 'blog_section',
'default' => true,
'priority' => 10,
]
);
// blog_section Date Meta
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_blog_date',
'label' => esc_html__( 'Blog Date Meta On/Off', 'printx' ),
'section' => 'blog_section',
'default' => true,
'priority' => 10,
]
);
// blog_section Comments Meta
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_blog_comments',
'label' => esc_html__( 'Blog Comments Meta On/Off', 'printx' ),
'section' => 'blog_section',
'default' => true,
'priority' => 10,
]
);
// blog_section Blog BTN text
new \Kirki\Field\Text(
[
'settings' => 'printx_blog_btn',
'label' => esc_html__( 'Blog Button Text', 'printx' ),
'section' => 'blog_section',
'default' => "Read More",
'priority' => 10,
]
);
}
blog_section();
// 404 section
function error_404_section(){
// 404_section section
new \Kirki\Section(
'error_404_section',
[
'title' => esc_html__( '404 Page', 'printx' ),
'description' => esc_html__( '404 Page Settings.', 'printx' ),
'panel' => 'panel_id',
'priority' => 150,
]
);
// 404_section
new \Kirki\Field\Text(
[
'settings' => 'printx_error_title',
'label' => esc_html__( 'Not Found Title', 'printx' ),
'section' => 'error_404_section',
'default' => "Page not found",
'priority' => 10,
]
);
// 404_section description
new \Kirki\Field\Text(
[
'settings' => 'printx_error_link_text',
'label' => esc_html__( 'Error Link Text', 'printx' ),
'section' => 'error_404_section',
'default' => "Back To Home",
'priority' => 10,
]
);
// 404_section description
new \Kirki\Field\Textarea(
[
'settings' => 'printx_error_desc',
'label' => esc_html__( 'Error des', 'printx' ),
'section' => 'error_404_section',
'default' => "The page requested couldn't be found. This could be a spelling error in the URL or a removed page",
'priority' => 10,
]
);
// 404_section description
new \Kirki\Field\Image(
[
'settings' => 'printx_error_image',
'label' => esc_html__( 'Error Image', 'printx' ),
'section' => 'error_404_section',
'default' => get_template_directory_uri() . '/assets/img/error/thumb-1-1.png',
'priority' => 10,
]
);
}
error_404_section();
// theme color section
function theme_color_section(){
new \Kirki\Section(
'theme_color_section',
[
'title' => esc_html__( 'Theme Color', 'printx' ),
'description' => esc_html__( 'Poorex theme color Settings.', 'printx' ),
'panel' => 'panel_id',
'priority' => 150,
]
);
// HEAD 1
new \Kirki\Pro\Field\Headline(
[
'settings' => 'printx_c1_head',
'label' => esc_html__( 'Theme Color 1 (Gradient)', 'kirki-pro' ),
'section' => 'theme_color_section',
]
);
new \Kirki\Field\Color(
[
'settings' => 'color_1_1',
'label' => __( 'Gradient Color 1', 'printx' ),
'description' => esc_html__( 'this is color 1 control.', 'printx' ),
'section' => 'theme_color_section',
'default' => '#FF4E8D',
]
);
new \Kirki\Field\Color(
[
'settings' => 'color_1_2',
'label' => __( 'Gradient Color 2', 'printx' ),
'description' => esc_html__( 'this is color 2 control.', 'printx' ),
'section' => 'theme_color_section',
'default' => '#AE34E8',
]
);
new \Kirki\Field\Color(
[
'settings' => 'color_1_3',
'label' => __( 'Gradient Color 3', 'printx' ),
'description' => esc_html__( 'this is color 3 control.', 'printx' ),
'section' => 'theme_color_section',
'default' => '#3E8DFF',
]
);
// HEAD 2
new \Kirki\Pro\Field\Headline(
[
'settings' => 'printx_c2_head',
'label' => esc_html__( 'Theme Color 2', 'kirki-pro' ),
'section' => 'theme_color_section',
]
);
new \Kirki\Field\Color(
[
'settings' => 'color_2',
'label' => __( 'Theme Color 2', 'printx' ),
'description' => esc_html__( 'this is theme color 2 control.', 'printx' ),
'section' => 'theme_color_section',
'default' => '#6B14FA',
]
);
// HEAD 3
new \Kirki\Pro\Field\Headline(
[
'settings' => 'printx_c3_head',
'label' => esc_html__( 'Theme Color 3', 'kirki-pro' ),
'section' => 'theme_color_section',
]
);
new \Kirki\Field\Color(
[
'settings' => 'color_3',
'label' => __( 'Theme Color 3', 'printx' ),
'description' => esc_html__( 'this is theme color 3 control.', 'printx' ),
'section' => 'theme_color_section',
'default' => '#951DF6',
]
);
// HEAD 4
new \Kirki\Pro\Field\Headline(
[
'settings' => 'printx_c4_head',
'label' => esc_html__( 'Theme Body Text Color', 'kirki-pro' ),
'section' => 'theme_color_section',
]
);
new \Kirki\Field\Color(
[
'settings' => 'color_4',
'label' => __( 'Theme Body Text Color', 'printx' ),
'description' => esc_html__( 'this is theme body text control.', 'printx' ),
'section' => 'theme_color_section',
'default' => '#72747C',
]
);
}
theme_color_section();
// footer_social_section
function footer_social_section(){
new \Kirki\Section(
'footer_social_section',
[
'title' => esc_html__( 'Footer Social', 'printx' ),
'description' => esc_html__( 'Footer Social URL.', 'printx' ),
'panel' => 'panel_id',
'priority' => 190,
]
);
// footer_top_bar section
new \Kirki\Field\Checkbox_Switch(
[
'settings' => 'printx_footer_social_switch',
'label' => esc_html__( 'Footer Social', 'printx' ),
'section' => 'footer_social_section',
'default' => false,
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_facebook_link',
'label' => esc_html__( 'Facebook URL', 'printx' ),
'section' => 'footer_social_section',
'default' => '#',
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_twitter_link',
'label' => esc_html__( 'Twitter URL', 'printx' ),
'section' => 'footer_social_section',
'default' => '#',
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_linkedin_link',
'label' => esc_html__( 'Linkedin URL', 'printx' ),
'section' => 'footer_social_section',
'default' => '#',
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_instagram_link',
'label' => esc_html__( 'Instagram URL', 'printx' ),
'section' => 'footer_social_section',
'default' => '#',
'priority' => 10,
]
);
new \Kirki\Field\URL(
[
'settings' => 'footer_youtube_link',
'label' => esc_html__( 'Youtube URL', 'printx' ),
'section' => 'footer_social_section',
'default' => '#',
'priority' => 10,
]
);
}
// footer_social_section();