<?php if ( ! defined( 'FW' ) ) {
	die( 'Forbidden' );
}

//get accordion to add in tab:
$accordion_shortcode = fw_ext( 'shortcodes' )->get_shortcode( 'accordion' );

$options = array(
	'tabs'       => array(
		'type'          => 'addable-popup',
		'label'         => esc_html__( 'Tabs', 'enginx' ),
		'popup-title'   => esc_html__( 'Add/Edit Tabs', 'enginx' ),
		'desc'          => esc_html__( 'Create your tabs', 'enginx' ),
		'template'      => '{{=tab_title}}',
		'popup-options' => array(
			'tab_title'          => array(
				'type'  => 'text',
				'label' => esc_html__( 'Tab Title', 'enginx' )
			),
			$accordion_shortcode->get_options(),
		),
	),
	'small_tabs' => array(
		'type'         => 'switch',
		'value'        => '',
		'label'        => esc_html__( 'Small Tabs', 'enginx' ),
		'desc'         => esc_html__( 'Decrease tabs size', 'enginx' ),
		'left-choice'  => array(
			'value' => '',
			'label' => esc_html__( 'No', 'enginx' ),
		),
		'right-choice' => array(
			'value' => 'small-tabs',
			'label' => esc_html__( 'Yes', 'enginx' ),
		),
	),
	'id'         => array( 'type' => 'unique' ),
);