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



$optionimage = get_template_directory_uri() . '/assets/img/options/';

$args = array(
	'hide_empty' => 1
);
$posttags = get_tags($args);
$choices = array();
if($posttags){
	foreach($posttags as $tag) { 
		$choices[$tag->term_id] = $tag->name.' ('.$tag->count.')';
	}
}

$slidearray = array(
	'wideslider' => array(
		'small' => array(
			'height' => 60,
			'src'    => $optionimage . '2.jpg'
		)
	),
	'wishbonecarousel' => array(
		'small' => array(
			'height' => 60,
			'src'    => $optionimage . '1.jpg'
		)
	),
	'grid' => array(
		'small' => array(
			'height' => 60,
			'src'    => $optionimage . '3.jpg'
		)
	),
	'twocol' => array(
		'small' => array(
			'height' => 60,
			'src'    => $optionimage . '4.jpg'
		)
	),
	'onecol' => array(
		'small' => array(
			'height' => 60,
			'src'    => $optionimage . '5.jpg'
		)
	),
);


$options = array(
	'slidetype' => array(
		'label'   => esc_html__( 'Hero Section', 'jt-wishbone' ),
		'type'	=> 'image-picker',
		'desc'	=> esc_html__( 'As known as Slideshow, headline section, etc', 'jt-wishbone' ),
		'choices' => $slidearray,
	),

	/**
	 * Slider Setting
	 * id: fetchnumb
	 */
	'index_fetchnumb'  => array(
		'type'  => 'text',
		'label' => esc_html__( 'Fetch Number', 'jt-wishbone' ),
		'desc' => esc_html__( 'How many posts?', 'jt-wishbone' ),
	),

	/**
	 * Slider Setting
	 * id: demo_group_multi_select
	 */
	'index_slider_tags' => array(
		'type'       => 'multi-select',
		'label'      => esc_html__( 'Posts tagged under:', 'jt-wishbone' ),
		'desc'      => esc_html__( 'Make sure each posts have their featured image', 'jt-wishbone' ),
		'choices' => $choices
	),
);