<?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.')';
	}
}

$options = array(
	'header' => array(
		'title'   => esc_html__( 'Header', 'jt-wishbone' ),
		'type'    => 'tab',
		'options' => array(
			/* INDEX */
			'headertype' => array(
				'title'   => esc_html__( 'Header Layout', 'jt-wishbone' ),
				'type'    => 'tab',
				'options' => array(
					'header_model' => array(
						'label'   => esc_html__( 'Header Layout', 'jt-wishbone' ),
						'type'	=> 'image-picker',
						'choices' => array(
							'header1' => array(
								'small' => array(
									'height' => 50,
									'src'    => $optionimage . 'header_1.jpg'
								)
							),
							'header2' => array(
								'small' => array(
									'height' => 50,
									'src'    => $optionimage . 'header_2.jpg'
								)
							),
							'header3' => array(
								'small' => array(
									'height' => 50,
									'src'    => $optionimage . 'header_3.jpg'
								)
							),
							'header4' => array(
								'small' => array(
									'height' => 50,
									'src'    => $optionimage . 'header_4.jpg'
								)
							),
							'header5' => array(
								'small' => array(
									'height' => 50,
									'src'    => $optionimage . 'header_5.jpg'
								)
							),
						),
					),
					'stickymenu' => array(
						'type'  => 'switch',
						'value'  => false,
						'label' => esc_html__( 'Sticky Menu', 'jt-wishbone' ),
					),
				),
			),
		)
	)
);
