112 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			112 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| return array(
 | |
| 	'title'      => esc_html__( 'Archive Page Settings', 'thinkai' ),
 | |
| 	'id'         => 'archive_setting',
 | |
| 	'desc'       => '',
 | |
| 	'subsection' => true,
 | |
| 	'fields'     => array(
 | |
| 		array(
 | |
| 			'id'      => 'archive_source_type',
 | |
| 			'type'    => 'button_set',
 | |
| 			'title'   => esc_html__( 'Archive Source Type', 'thinkai' ),
 | |
| 			'options' => array(
 | |
| 				'd' => esc_html__( 'Default', 'thinkai' ),
 | |
| 				'e' => esc_html__( 'Elementor', 'thinkai' ),
 | |
| 			),
 | |
| 			'default' => 'd',
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'       => 'archive_elementor_template',
 | |
| 			'type'     => 'select',
 | |
| 			'title'    => __( 'Template', 'thinkai' ),
 | |
| 			'data'     => 'posts',
 | |
| 			'args'     => [
 | |
| 				'post_type' => [ 'elementor_library' ],
 | |
| 				'posts_per_page'=> -1,
 | |
| 			],
 | |
| 			'required' => [ 'archive_source_type', '=', 'e' ],
 | |
| 		),
 | |
| 
 | |
| 		array(
 | |
| 			'id'       => 'archive_default_st',
 | |
| 			'type'     => 'section',
 | |
| 			'title'    => esc_html__( 'Archive Default', 'thinkai' ),
 | |
| 			'indent'   => true,
 | |
| 			'required' => [ 'archive_source_type', '=', 'd' ],
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'      => 'archive_page_banner',
 | |
| 			'type'    => 'switch',
 | |
| 			'title'   => esc_html__( 'Show Banner', 'thinkai' ),
 | |
| 			'desc'    => esc_html__( 'Enable to show banner on blog', 'thinkai' ),
 | |
| 			'default' => true,
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'       => 'archive_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( 'archive_page_banner', '=', true ),
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'       => 'archive_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( 'archive_page_banner', '=', true ),
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'       => 'archive_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( 'archive_page_banner', '=', true ),
 | |
| 		),
 | |
| 
 | |
| 		array(
 | |
| 			'id'       => 'archive_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'       => 'archive_page_sidebar',
 | |
| 			'type'     => 'select',
 | |
| 			'title'    => esc_html__( 'Sidebar', 'thinkai' ),
 | |
| 			'desc'     => esc_html__( 'Select sidebar to show at blog listing page', 'thinkai' ),
 | |
| 			'required' => array(
 | |
| 				array( 'archive_sidebar_layout', '=', array( 'left', 'right' ) ),
 | |
| 			),
 | |
| 			'options'  => thinkai_get_sidebars(),
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'       => 'archive_default_ed',
 | |
| 			'type'     => 'section',
 | |
| 			'indent'   => false,
 | |
| 			'required' => [ 'archive_source_type', '=', 'd' ],
 | |
| 		),
 | |
| 	),
 | |
| ); |