navasena/wp-content/themes/thinkai/includes/resource/options/search_setting.php

119 lines
3.7 KiB
PHP
Raw Permalink Normal View History

2024-07-31 13:12:38 +07:00
<?php
return array(
'title' => esc_html__( 'Search Page Settings', 'thinkai' ),
'id' => 'search_setting',
'desc' => '',
'subsection' => true,
'fields' => array(
array(
'id' => 'search_source_type',
'type' => 'button_set',
'title' => esc_html__( 'Search Source Type', 'thinkai' ),
'options' => array(
'd' => esc_html__( 'Default', 'thinkai' ),
'e' => esc_html__( 'Elementor', 'thinkai' ),
),
'default' => 'd',
),
array(
'id' => 'search_elementor_template',
'type' => 'select',
'title' => __( 'Template', 'thinkai' ),
'data' => 'posts',
'args' => [
'post_type' => [ 'elementor_library' ],
'posts_per_page'=> -1,
],
'required' => [ 'search_source_type', '=', 'e' ],
),
array(
'id' => 'search_default_st',
'type' => 'section',
'title' => esc_html__( 'Search Default', 'thinkai' ),
'indent' => true,
'required' => [ 'search_source_type', '=', 'd' ],
),
array(
'id' => 'search_page_banner',
'type' => 'switch',
'title' => esc_html__( 'Show Banner', 'thinkai' ),
'desc' => esc_html__( 'Enable to show banner on blog', 'thinkai' ),
'default' => true,
),
array(
'id' => 'search_features_list',
'type' => 'textarea',
'title' => esc_html__( 'Banner Feature List', 'thinkai' ),
'desc' => esc_html__( 'Enter the Feature List to show in banner section', 'thinkai' ),
'required' => array( 'search_page_banner', '=', true ),
),
array(
'id' => 'search_banner_title',
'type' => 'text',
'title' => esc_html__( 'Banner Section Title', 'thinkai' ),
'desc' => esc_html__( 'Enter the title to show in banner section', 'thinkai' ),
'required' => array( 'search_page_banner', '=', true ),
),
array(
'id' => 'search_page_background',
'type' => 'media',
'url' => true,
'title' => esc_html__( 'Background Image', 'thinkai' ),
'desc' => esc_html__( 'Insert background image for banner', 'thinkai' ),
'default' => array(
'url' => THINKAI_URI . 'assets/images/breadcrumb/breadcrumb-1.jpg',
),
'required' => array( 'search_page_banner', '=', true ),
),
array(
'id' => 'search_sidebar_layout',
'type' => 'image_select',
'title' => esc_html__( 'Layout', 'thinkai' ),
'subtitle' => esc_html__( 'Select main content and sidebar alignment.', 'thinkai' ),
'options' => array(
'left' => array(
'alt' => esc_html__( '2 Column Left', 'thinkai' ),
'img' => get_template_directory_uri() . '/assets/images/redux/2cl.png',
),
'full' => array(
'alt' => esc_html__( '1 Column', 'thinkai' ),
'img' => get_template_directory_uri() . '/assets/images/redux/1col.png',
),
'right' => array(
'alt' => esc_html__( '2 Column Right', 'thinkai' ),
'img' => get_template_directory_uri() . '/assets/images/redux/2cr.png',
),
),
'default' => 'right',
),
array(
'id' => 'search_page_sidebar',
'type' => 'select',
'title' => esc_html__( 'Sidebar', 'thinkai' ),
'desc' => esc_html__( 'Select sidebar to show at blog listing page', 'thinkai' ),
'required' => array(
array( 'search_sidebar_layout', '=', array( 'left', 'right' ) ),
),
'options' => thinkai_get_sidebars(),
),
array(
'id' => 'search_default_ed',
'type' => 'section',
'indent' => false,
'required' => [ 'search_source_type', '=', 'd' ],
),
),
);