navasena/wp-content/plugins/thinkai-plugin/metabox/banner.php

61 lines
1.9 KiB
PHP
Raw Normal View History

2024-07-31 13:12:38 +07:00
<?php
return array(
'id' => 'thinkai_banner_settings',
'title' => esc_html__( "Thinkai Banner Settings", "konia" ),
'fields' => array(
array(
'id' => 'banner_source_type',
'type' => 'button_set',
'title' => esc_html__( 'Banner Source Type', 'thinkai' ),
'options' => array(
'd' => esc_html__( 'Default', 'thinkai' ),
'e' => esc_html__( 'Elementor', 'thinkai' ),
),
'default' => '',
),
array(
'id' => 'banner_elementor_template',
'type' => 'select',
'title' => __( 'Template', 'viral-buzz' ),
'data' => 'posts',
'args' => [
'post_type' => [ 'elementor_library' ],
'posts_per_page'=> -1,
],
'required' => [ 'banner_source_type', '=', 'e' ],
),
array(
'id' => 'banner_page_banner',
'type' => 'switch',
'title' => esc_html__( 'Show Banner', 'thinkai' ),
'default' => false,
'required' => [ 'banner_source_type', '=', 'd' ],
),
array(
'id' => 'banner_banner_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( 'banner_page_banner', '=', true ),
),
array(
'id' => 'banner_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( 'banner_page_banner', '=', true ),
),
array(
'id' => 'banner_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( 'banner_page_banner', '=', true ),
),
),
);