get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_setting( 'background_color' )->transport = 'postMessage'; $wp_customize->get_setting('custom_logo')->transport = 'refresh'; } add_action( 'customize_register', 'animal_caretaker_customize_register' ); if ( ! defined( 'ANIMAL_CARETAKER_BUY_NOW_1' ) ) { define('ANIMAL_CARETAKER_BUY_NOW_1',__('https://www.mishkatwp.com/themes/animal-caretaker-wordpress-theme/','animal-caretaker')); } if ( ! defined( 'ANIMAL_CARETAKER_BUNDLE_1' ) ) { define('ANIMAL_CARETAKER_BUNDLE_1',__('https://www.mishkatwp.com/themes/wordpress-theme-bundle/','animal-caretaker')); } if ( class_exists("Kirki")){ /* Single Post Options */ new \Kirki\Section( 'animal_caretaker_single_post_options', [ 'title' => esc_html__( 'Single Post Options', 'animal-caretaker' ), 'priority' => 30, ] ); /* Single Post Content Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_single_post_content_on_off', 'label' => esc_html__( 'Single Post Content On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_single_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Single Post Meta Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_single_meta_on_off', 'label' => esc_html__( 'Single Post Meta On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_single_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Single Post Feature Image Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_single_post_image_on_off', 'label' => esc_html__( 'Single Post Feature Image On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_single_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Single Post Pagination Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_single_post_pagination_on_off', 'label' => esc_html__( 'Single Post Pagination On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_single_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Buy Our Premium Theme For More Feature', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'priority' => 100, 'section' => 'animal_caretaker_single_post_options', ] ); /* Page Options */ new \Kirki\Section( 'animal_caretaker_single_page_options', [ 'title' => esc_html__( 'Page Sidebar Options', 'animal-caretaker' ), 'priority' => 30, ] ); new \Kirki\Field\Radio( [ 'settings' => 'animal_caretaker_single_page_sidebar_option', 'label' => esc_html__( 'Page Sidebar Settings', 'animal-caretaker' ), 'section' => 'animal_caretaker_single_page_options', 'default' => 'right', 'priority' => 10, 'choices' => [ 'right' => esc_html__( 'Page With Right Sidebar', 'animal-caretaker' ), 'left' => esc_html__( 'Page With Left Sidebar', 'animal-caretaker' ), 'none' => esc_html__( 'Page With No Sidebar', 'animal-caretaker' ), ], ] ); /* Page Options End*/ /* Post Options */ new \Kirki\Section( 'animal_caretaker_post_options', [ 'title' => esc_html__( 'Post Options', 'animal-caretaker' ), 'priority' => 30, ] ); /* Post Image Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_post_image_on_off', 'label' => esc_html__( 'Post Image On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Post Heading Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_post_heading_on_off', 'label' => esc_html__( 'Post Heading On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Post Content Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_post_content_on_off', 'label' => esc_html__( 'Post Content On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Post Date Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_post_date_on_off', 'label' => esc_html__( 'Post Date On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Post Comments Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_post_comment_on_off', 'label' => esc_html__( 'Post Comments On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Post Author Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_post_author_on_off', 'label' => esc_html__( 'Post Author On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Post Categories Option End */ new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_post_categories_on_off', 'label' => esc_html__( 'Post Categories On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_post_options', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); /* Post limit Option End */ new \Kirki\Field\Slider( [ 'settings' => 'animal_caretaker_post_content_limit', 'label' => esc_html__( 'Post Content Limit', 'animal-caretaker' ), 'section' => 'animal_caretaker_post_options', 'default' => 15, 'choices' => [ 'min' => 0, 'max' => 50, 'step' => 1, ], ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Buy Our Premium Theme For More Feature', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'priority' => 100, 'section' => 'animal_caretaker_post_options', ] ); /* Post Options End */ /* Post Options */ new \Kirki\Section( 'animal_caretaker_post_layouts_section', [ 'title' => esc_html__( 'Post Layout Options', 'animal-caretaker' ), 'priority' => 30, ] ); new \Kirki\Field\Radio_Image( [ 'settings' => 'animal_caretaker_post_layout', 'label' => esc_html__( 'Blog Layout', 'animal-caretaker' ), 'section' => 'animal_caretaker_post_layouts_section', 'default' => 'two_column_right', 'priority' => 10, 'choices' => [ 'one_column' => get_template_directory_uri().'/images/1column.png', 'two_column_right' => get_template_directory_uri().'/images/right-sidebar.png', 'two_column_left' => get_template_directory_uri().'/images/left-sidebar.png', 'three_column' => get_template_directory_uri().'/images/3column.png', 'four_column' => get_template_directory_uri().'/images/4column.png', 'grid_post' => get_template_directory_uri().'/images/grid.png', ], ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Buy Our Premium Theme For More Feature', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'priority' => 100, 'section' => 'animal_caretaker_post_layouts_section', ] ); /* Post Options End */ /* 404 Page */ new \Kirki\Section( 'animal_caretaker_404_page_section', [ 'title' => esc_html__( '404 Page', 'animal-caretaker' ), 'description' => esc_html__( 'Here you can add 404 Page information.', 'animal-caretaker' ), 'priority' => 30, ] ); new \Kirki\Field\Text( [ 'settings' => 'animal_caretaker_404_page_heading', 'label' => esc_html__( 'Add Heading', 'animal-caretaker' ), 'section' => 'animal_caretaker_404_page_section', 'default' => esc_html__( '404', 'animal-caretaker' ), 'priority' => 10, ] ); new \Kirki\Field\Text( [ 'settings' => 'animal_caretaker_404_page_content', 'label' => esc_html__( 'Add Content', 'animal-caretaker' ), 'section' => 'animal_caretaker_404_page_section', 'default' => esc_html__( 'Ops! Something happened...', 'animal-caretaker' ), 'priority' => 10, ] ); new \Kirki\Field\Text( [ 'settings' => 'animal_caretaker_404_page_button', 'label' => esc_html__( 'Add Button', 'animal-caretaker' ), 'section' => 'animal_caretaker_404_page_section', 'default' => esc_html__( 'Home', 'animal-caretaker' ), 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Buy Our Premium Theme For More Feature', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'priority' => 100, 'section' => 'animal_caretaker_404_page_section', ] ); /* 404 Page End */ /* Responsive Options */ new \Kirki\Section( 'animal_caretaker_responsive_options_section', [ 'title' => esc_html__( 'Responsive Options', 'animal-caretaker' ), 'priority' => 10, ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_responsive_preloader_setting', 'label' => esc_html__( 'Preloader On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_responsive_options_section', 'default' => 'off', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_responsive_scroll_to_top_setting', 'label' => esc_html__( 'Scroll To Top On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_responsive_options_section', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Buy Our Premium Theme For More Feature', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'section' => 'animal_caretaker_responsive_options_section', ] ); /* Responsive End */ /* General Options */ new \Kirki\Section( 'animal_caretaker_general_options_section', [ 'title' => esc_html__( 'General Options', 'animal-caretaker' ), 'priority' => 10, ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_sticky_header_setting', 'label' => esc_html__( 'Show Hide Sticky Header', 'animal-caretaker' ), 'section' => 'animal_caretaker_general_options_section', 'default' => 'off', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_preloader_setting', 'label' => esc_html__( 'Preloader On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_general_options_section', 'default' => 'off', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_scroll_to_top_setting', 'label' => esc_html__( 'Scroll To Top On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_general_options_section', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); new \Kirki\Field\Select( [ 'settings' => 'animal_caretaker_scroll_to_top_type', 'label' => esc_html__( 'Scroll To Top Type', 'animal-caretaker' ), 'section' => 'animal_caretaker_general_options_section', 'default' => 'advance-scroll', 'placeholder' => esc_html__( 'Choose an option', 'animal-caretaker' ), 'choices' => [ 'advance-scroll' => __('Type 1','animal-caretaker'), 'simple-scroll' => __('Type 2','animal-caretaker'), ], ] ); new \Kirki\Field\Select( [ 'settings' => 'animal_caretaker_scroll_top_alignment', 'label' => esc_html__( 'Scroll Top Alignment', 'animal-caretaker' ), 'section' => 'animal_caretaker_general_options_section', 'default' => 'Right', 'choices' => [ 'Left' => esc_html__( 'Left Align', 'animal-caretaker' ), 'Center' => esc_html__( 'Center Align', 'animal-caretaker' ), 'Right' => esc_html__( 'Right Align', 'animal-caretaker' ), ], ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'slider', 'settings' => 'animal_caretaker_container_width', 'label' => esc_html__( 'Theme Container Width', 'animal-caretaker' ), 'section' => 'animal_caretaker_general_options_section', 'default' => 100, 'choices' => [ 'min' => 50, 'max' => 100, 'step' => 1, ], ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Buy Our Premium Theme For More Feature', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'priority' => 100, 'section' => 'animal_caretaker_general_options_section', ] ); /* General Options End */ /* Logo */ /* Logo Size limit Option End */ new \Kirki\Field\Slider( [ 'settings' => 'animal_caretaker_logo_resizer_setting', 'label' => esc_html__( 'Logo Size Limit', 'animal-caretaker' ), 'section' => 'title_tagline', 'default' => 70, 'choices' => [ 'min' => 10, 'max' => 300, 'step' => 10, ], ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_site_title_setting', 'label' => esc_html__( 'Site Title On / Off', 'animal-caretaker' ), 'section' => 'title_tagline', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_tagline_setting', 'label' => esc_html__( 'Tagline On / Off', 'animal-caretaker' ), 'section' => 'title_tagline', 'default' => 'off', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Buy Our Premium Theme For More Feature', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'priority' => 100, 'section' => 'title_tagline', ] ); /* Logo End */ /* Typography Section */ new \Kirki\Section( 'animal_caretaker_theme_typography_section', [ 'title' => esc_html__( 'Theme Typography', 'animal-caretaker' ), 'description' => esc_html__( 'Here you can customize Heading or other body text font settings', 'animal-caretaker' ), 'priority' => 30, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'animal_caretaker_all_headings_typography', 'section' => 'animal_caretaker_theme_typography_section', 'default' => '
a. Add more About Us Effortlessly
b. Easily change the color of specific text elements
c. Buy Our Premium Theme For About Us Section
', 'animal-caretaker' ), ] ); /* Pro About Us End */ /* Pro Pet Store */ new \Kirki\Section( 'animal_caretaker_pet_store_section', [ 'title' => esc_html__( 'Pet Store Section', 'animal-caretaker' ), 'panel' => 'animal_caretaker_home_page_section', 'priority' => 30, ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Details for the Premium Theme', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'section' => 'animal_caretaker_pet_store_section', 'description' => __( 'a. Add more Pet Store Effortlessly
b. Easily change the color of specific text elements
c. Buy Our Premium Theme For Pet Store Section
', 'animal-caretaker' ), ] ); /* Pro Pet Store End */ /* Home Products */ new \Kirki\Section( 'animal_caretaker_home_product_section', [ 'title' => esc_html__( 'Home Products', 'animal-caretaker' ), 'description' => esc_html__( 'Here you can select product category to display products.', 'animal-caretaker' ), 'panel' => 'animal_caretaker_home_page_section', 'priority' => 30, ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_product_on_off', 'label' => esc_html__( 'Products On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_home_product_section', 'default' => 'off', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); new \Kirki\Field\Text( [ 'settings' => 'animal_caretaker_featured_product_heading', 'label' => esc_html__( 'Main Heading', 'animal-caretaker' ), 'section' => 'animal_caretaker_home_product_section', ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Buy Our Premium Theme For More Feature', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'priority' => 100, 'section' => 'animal_caretaker_home_product_section', ] ); /* Pro Our Achievenment */ new \Kirki\Section( 'animal_caretaker_our_achivenment_section', [ 'title' => esc_html__( 'Our Achivenment Section', 'animal-caretaker' ), 'panel' => 'animal_caretaker_home_page_section', 'priority' => 30, ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Details for the Premium Theme', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'section' => 'animal_caretaker_our_achivenment_section', 'description' => __( 'a. Add more Our Achovenment Effortlessly
b. Easily change the color of specific text elements
c. Buy Our Premium Theme For Our Achovenment Section
', 'animal-caretaker' ), ] ); /* Pro Our Achovenment End */ /* Pro Our Services */ new \Kirki\Section( 'animal_caretaker_our_services_section', [ 'title' => esc_html__( 'Our Services Section', 'animal-caretaker' ), 'panel' => 'animal_caretaker_home_page_section', 'priority' => 30, ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Details for the Premium Theme', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'section' => 'animal_caretaker_our_services_section', 'description' => __( 'a. Add more Our Services Effortlessly
b. Easily change the color of specific text elements
c. Buy Our Premium Theme For Our Services Section
', 'animal-caretaker' ), ] ); /* Pro Our Services End */ /* Pro Newsletter */ new \Kirki\Section( 'animal_caretaker_newsletter_section', [ 'title' => esc_html__( 'Newsletter Section', 'animal-caretaker' ), 'panel' => 'animal_caretaker_home_page_section', 'priority' => 30, ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Details for the Premium Theme', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'section' => 'animal_caretaker_newsletter_section', 'description' => __( 'a. Add more Newsletter Effortlessly
b. Easily change the color of specific text elements
c. Buy Our Premium Theme For Newsletter Section
', 'animal-caretaker' ), ] ); /* Pro Newsletter End */ /* Pro Testimonial */ new \Kirki\Section( 'animal_caretaker_testimonial_section', [ 'title' => esc_html__( 'Testimonial Section', 'animal-caretaker' ), 'panel' => 'animal_caretaker_home_page_section', 'priority' => 30, ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Details for the Premium Theme', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'section' => 'animal_caretaker_testimonial_section', 'description' => __( 'a. Add more Testimonial Effortlessly
b. Easily change the color of specific text elements
c. Buy Our Premium Theme For Testimonial Section
', 'animal-caretaker' ), ] ); /* Pro Testimonial End */ /* Pro Gallery */ new \Kirki\Section( 'animal_caretaker_gallery_section', [ 'title' => esc_html__( 'Gallery Section', 'animal-caretaker' ), 'panel' => 'animal_caretaker_home_page_section', 'priority' => 30, ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Details for the Premium Theme', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'section' => 'animal_caretaker_gallery_section', 'description' => __( 'a. Add more Gallery Effortlessly
b. Easily change the color of specific text elements
c. Buy Our Premium Theme For Gallery Section
', 'animal-caretaker' ), ] ); /* Pro Gallery End */ /* Pro Latest News */ new \Kirki\Section( 'animal_caretaker_recent_blog_section', [ 'title' => esc_html__( 'Latest News Section', 'animal-caretaker' ), 'panel' => 'animal_caretaker_home_page_section', 'priority' => 30, ] ); Kirki::add_field( 'theme_config_id', [ 'label' => esc_html__( 'Details for the Premium Theme', 'animal-caretaker' ), 'default' => '' . __( 'Buy Pro', 'animal-caretaker' ) . '' . '' . __( 'Buy All Themes In Single Package', 'animal-caretaker' ) . '', 'type' => 'custom', 'section' => 'animal_caretaker_recent_blog_section', 'description' => __( 'a. Add more Latest News Effortlessly
b. Easily change the color of specific text elements
c. Buy Our Premium Theme For Latest News Section
', 'animal-caretaker' ), ] ); /* Pro Latest News End */ /* Footer */ new \Kirki\Section( 'animal_caretaker_footer_section', [ 'title' => esc_html__( 'Footer', 'animal-caretaker' ), 'panel' => 'animal_caretaker_home_page_section', 'priority' => 30, ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_footer_widgets_on_off', 'label' => esc_html__( 'Footer Widgets On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_footer_section', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); new \Kirki\Field\Checkbox_Switch( [ 'settings' => 'animal_caretaker_copyright_on_off', 'label' => esc_html__( 'Footer Copyright On / Off', 'animal-caretaker' ), 'section' => 'animal_caretaker_footer_section', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'animal-caretaker' ), 'off' => esc_html__( 'Disable', 'animal-caretaker' ), ], ] ); new \Kirki\Field\Text( [ 'settings' => 'animal_caretaker_copyright_content_text', 'label' => esc_html__( 'Copyright Text', 'animal-caretaker' ), 'section' => 'animal_caretaker_footer_section', ] ); new \Kirki\Field\Select( [ 'settings' => 'animal_caretaker_copyright_alignment', 'label' => esc_html__( 'Copyright Text Alignment', 'animal-caretaker' ), 'section' => 'animal_caretaker_footer_section', 'default' => 'Center', 'choices' => [ 'Left' => esc_html__( 'Left Align', 'animal-caretaker' ), 'Center' => esc_html__( 'Center Align', 'animal-caretaker' ), 'Right' => esc_html__( 'Right Align', 'animal-caretaker' ), ], ] ); new \Kirki\Field\Image( [ 'settings' => 'animal_caretaker_footer_background_image', 'label' => esc_html__( 'Select Your Appropriate Image for footer background', 'animal-caretaker' ), 'section' => 'animal_caretaker_footer_section', 'default' => '', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'color', 'settings' => 'animal_caretaker_footer_background_color', 'label' => __( 'Select Your Appropriate Color for footer background', 'animal-caretaker' ), 'section' => 'animal_caretaker_footer_section', 'default' => '#282a2e', ] ); } function animal_caretaker_customizer_settings( $wp_customize ) { $animal_caretaker_args = array( 'type' => 'product', 'child_of' => 0, 'parent' => '', 'orderby' => 'term_group', 'order' => 'ASC', 'hide_empty' => false, 'hierarchical' => 1, 'number' => '', 'taxonomy' => 'product_cat', 'pad_counts' => false ); $categories = get_categories($animal_caretaker_args); $cat_posts = array(); $m = 0; $cat_posts[]='Select'; foreach($categories as $category){ if($m==0){ $default = $category->slug; $m++; } $cat_posts[$category->slug] = $category->name; } $wp_customize->add_setting('animal_caretaker_featured_product_category',array( 'default' => 'select', 'sanitize_callback' => 'animal_caretaker_sanitize_select', )); $wp_customize->add_control('animal_caretaker_featured_product_category',array( 'type' => 'select', 'choices' => $cat_posts, 'label' => __('Select category to display products ','animal-caretaker'), 'section' => 'animal_caretaker_home_product_section', )); } add_action( 'customize_register', 'animal_caretaker_customizer_settings' );