10, 'title' => esc_html__( 'Theme Options', 'cafe-cafeteria' ), ) ); // HEADER SECTION Kirki::add_section( 'cafe_cafeteria_section_header', array( 'title' => esc_html__( 'Header Settings', 'cafe-cafeteria' ), 'description' => esc_html__( 'Here you can add different type of social icons.', 'cafe-cafeteria' ), 'panel' => 'cafe_cafeteria_panel_id', 'priority' => 160, ) ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_enable_socail_link', 'section' => 'cafe_cafeteria_section_header', 'default' => '

' . __( 'Social Media Link', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'repeater', 'section' => 'cafe_cafeteria_section_header', 'priority' => 10, 'row_label' => [ 'type' => 'field', 'value' => esc_html__( 'Social Icon', 'cafe-cafeteria' ), 'field' => 'link_text', ], 'button_label' => esc_html__('Add New Social Icon', 'cafe-cafeteria' ), 'settings' => 'cafe_cafeteria_social_links_settings', 'default' => '', 'fields' => [ 'link_text' => [ 'type' => 'text', 'label' => esc_html__( 'Icon', 'cafe-cafeteria' ), 'description' => esc_html__( 'Add the fontawesome class ex: "fab fa-facebook-f".', 'cafe-cafeteria' ), 'default' => '', ], 'link_url' => [ 'type' => 'url', 'label' => esc_html__( 'Social Link', 'cafe-cafeteria' ), 'description' => esc_html__( 'Add the social icon url here.', 'cafe-cafeteria' ), 'default' => '', ], ], 'choices' => [ 'limit' => 5 ], ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_button1_text', 'section' => 'cafe_cafeteria_section_header', 'default' => '

' . __( 'Button 1 Text', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'label' => __( 'Add Text', 'cafe-cafeteria' ), 'settings' => 'cafe_cafeteria_register_text', 'section' => 'cafe_cafeteria_section_header', 'default' => '', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'link', 'label' => __( 'Add Link', 'cafe-cafeteria' ), 'settings' => 'cafe_cafeteria_register_link', 'section' => 'cafe_cafeteria_section_header', 'default' => '', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_button2_text', 'section' => 'cafe_cafeteria_section_header', 'default' => '

' . __( 'Button 2 Text', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'label' => __( 'Add Text', 'cafe-cafeteria' ), 'settings' => 'cafe_cafeteria_login_text', 'section' => 'cafe_cafeteria_section_header', 'default' => '', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'link', 'label' => __( 'Add Link', 'cafe-cafeteria' ), 'settings' => 'cafe_cafeteria_login_link', 'section' => 'cafe_cafeteria_section_header', 'default' => '', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_enable_search', 'section' => 'cafe_cafeteria_section_header', 'default' => '

' . __( 'Enable / Disable Search Box', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'switch', 'settings' => 'cafe_cafeteria_search_box_enable', 'label' => esc_html__( 'Search Enable / Disable Button', 'cafe-cafeteria' ), 'section' => 'cafe_cafeteria_section_header', 'default' => '1', 'priority' => 10, 'choices' => [ 'on' => esc_html__( 'Enable', 'cafe-cafeteria' ), 'off' => esc_html__( 'Disable', 'cafe-cafeteria' ), ], ] ); // SLIDER SECTION Kirki::add_section( 'cafe_cafeteria_blog_slide_section', array( 'title' => esc_html__( ' Slider Settings', 'cafe-cafeteria' ), 'description' => esc_html__( 'You have to select post category to show slider.', 'cafe-cafeteria' ), 'panel' => 'cafe_cafeteria_panel_id', 'priority' => 160, ) ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_enable_heading', 'section' => 'cafe_cafeteria_blog_slide_section', 'default' => '

' . __( 'Enable / Disable Slider', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'switch', 'settings' => 'cafe_cafeteria_blog_box_enable', 'label' => esc_html__( 'Section Enable / Disable', 'cafe-cafeteria' ), 'section' => 'cafe_cafeteria_blog_slide_section', 'default' => '0', 'priority' => 10, 'choices' => [ 'on' => esc_html__( 'Enable', 'cafe-cafeteria' ), 'off' => esc_html__( 'Disable', 'cafe-cafeteria' ), ], ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_slider_heading', 'section' => 'cafe_cafeteria_blog_slide_section', 'default' => '

' . __( 'Slider', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'number', 'settings' => 'cafe_cafeteria_blog_slide_number', 'label' => esc_html__( 'Number of slides to show', 'cafe-cafeteria' ), 'section' => 'cafe_cafeteria_blog_slide_section', 'default' => 3, 'choices' => [ 'min' => 0, 'max' => 80, 'step' => 1, ], ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'select', 'settings' => 'cafe_cafeteria_blog_slide_category', 'label' => esc_html__( 'Select the category to show slider ( Image Dimension 1600 x 600 )', 'cafe-cafeteria' ), 'section' => 'cafe_cafeteria_blog_slide_section', 'default' => '', 'placeholder' => esc_html__( 'Select an category...', 'cafe-cafeteria' ), 'priority' => 10, 'choices' => cafe_cafeteria_get_categories_select(), ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_slider_button_heading', 'section' => 'cafe_cafeteria_blog_slide_section', 'default' => '

' . __( 'Slider Button Text', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'settings' => 'cafe_cafeteria_slider_button_text', 'section' => 'cafe_cafeteria_blog_slide_section', 'default' => 'Shop Now', 'priority' => 10, ] ); // OUR STORY SECTION Kirki::add_section( 'cafe_cafeteria_our_story_section', array( 'title' => esc_html__( 'Our Story Settings', 'cafe-cafeteria' ), 'description' => esc_html__( 'You have to select page to show our story section.', 'cafe-cafeteria' ), 'panel' => 'cafe_cafeteria_panel_id', 'priority' => 160, ) ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_services_enable_heading', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '

' . __( 'Enable / Disable Our Story Section', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'switch', 'settings' => 'cafe_cafeteria_our_story_enable', 'label' => esc_html__( 'Section Enable / Disable', 'cafe-cafeteria' ), 'section' => 'cafe_cafeteria_our_story_section', 'default' => '0', 'priority' => 10, 'choices' => [ 'on' => esc_html__( 'Enable', 'cafe-cafeteria' ), 'off' => esc_html__( 'Disable', 'cafe-cafeteria' ), ], ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_our_story_section_title_heading', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '

' . __( 'Secton Title', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'settings' => 'cafe_cafeteria_our_story_section_title', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_our_story_image1_heading', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '

' . __( 'Image 1', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'image', 'settings' => 'cafe_cafeteria_our_story_image1', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_our_story_image2_heading', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '

' . __( 'Image 2', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'image', 'settings' => 'cafe_cafeteria_our_story_image2', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_our_story_text_heading', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '

' . __( 'Heading', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'settings' => 'cafe_cafeteria_our_story_heading_text', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_our_story_page_heading', 'section' => 'cafe_cafeteria_our_story_section', 'default' => '

' . __( 'Page Dropdown', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'dropdown-pages', 'settings' => 'cafe_cafeteria_our_story', 'section' => 'cafe_cafeteria_our_story_section', 'default' => 42, 'priority' => 10, ] ); // FOOTER SECTION Kirki::add_section( 'cafe_cafeteria_footer_section', array( 'title' => esc_html__( 'Footer Settings', 'cafe-cafeteria' ), 'description' => esc_html__( 'Here you can change copyright text', 'cafe-cafeteria' ), 'panel' => 'cafe_cafeteria_panel_id', 'priority' => 160, ) ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_footer_text_heading', 'section' => 'cafe_cafeteria_footer_section', 'default' => '

' . __( 'Footer Copyright Text', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'settings' => 'cafe_cafeteria_footer_text', 'section' => 'cafe_cafeteria_footer_section', 'default' => '', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'cafe_cafeteria_footer_enable_heading', 'section' => 'cafe_cafeteria_footer_section', 'default' => '

' . __( 'Enable / Disable Footer Link', 'cafe-cafeteria' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'switch', 'settings' => 'cafe_cafeteria_copyright_enable', 'label' => esc_html__( 'Section Enable / Disable', 'cafe-cafeteria' ), 'section' => 'cafe_cafeteria_footer_section', 'default' => '1', 'priority' => 10, 'choices' => [ 'on' => esc_html__( 'Enable', 'cafe-cafeteria' ), 'off' => esc_html__( 'Disable', 'cafe-cafeteria' ), ], ] ); }