61 lines
1.8 KiB
PHP
61 lines
1.8 KiB
PHP
|
<?php
|
||
|
|
||
|
return array(
|
||
|
'id' => 'thinkai_sidebar_settings',
|
||
|
'title' => esc_html__( "Thinkai Sidebar Settings", "konia" ),
|
||
|
'fields' => array(
|
||
|
array(
|
||
|
'id' => 'sidebar_source_type',
|
||
|
'type' => 'button_set',
|
||
|
'title' => esc_html__( 'Sidebar Source Type', 'thinkai' ),
|
||
|
'options' => array(
|
||
|
'd' => esc_html__( 'Default', 'thinkai' ),
|
||
|
'e' => esc_html__( 'Elementor', 'thinkai' ),
|
||
|
),
|
||
|
'default'=> '',
|
||
|
),
|
||
|
array(
|
||
|
'id' => 'sidebar_elementor_template',
|
||
|
'type' => 'select',
|
||
|
'title' => __( 'Template', 'viral-buzz' ),
|
||
|
'data' => 'posts',
|
||
|
'args' => [
|
||
|
'post_type' => [ 'elementor_library' ],
|
||
|
'posts_per_page'=> -1,
|
||
|
],
|
||
|
'required' => [ 'sidebar_source_type', '=', 'e' ],
|
||
|
),
|
||
|
array(
|
||
|
'id' => 'sidebar_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',
|
||
|
),
|
||
|
),
|
||
|
'required' => [ 'sidebar_source_type', '=', 'd' ],
|
||
|
),
|
||
|
|
||
|
array(
|
||
|
'id' => 'sidebar_page_sidebar',
|
||
|
'type' => 'select',
|
||
|
'title' => esc_html__( 'Sidebar', 'thinkai' ),
|
||
|
'required' => array(
|
||
|
array( 'sidebar_sidebar_layout', '=', array( 'left', 'right' ) ),
|
||
|
),
|
||
|
'options' => thinkais_get_sidebars(),
|
||
|
'required' => [ 'sidebar_source_type', '=', 'd' ],
|
||
|
),
|
||
|
),
|
||
|
);
|