<?php
/**
 * @copyright	Copyright (c) 2016 AmyTheme (http://www.amytheme.com). All rights reserved.
 * @license		http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */

defined( 'ABSPATH' ) or die;

// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// FRAMEWORK SETTINGS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$theme	= wp_get_theme();

$settings	= array(
	'menu_title'		=> esc_html__( 'Amy Movie', 'amy-movie' ),
	'menu_type'			=> 'menu',
	'menu_slug'			=> 'amy-movie',
	'menu_icon'			=> get_template_directory_uri() . '/images/config/icon_setting.png',
	'framework_title'	=> sprintf( esc_html__( 'Amy Movie Theme v%1$s Configuration', 'amy-movie' ), $theme->get( 'Version' ) ),
	'ajax_save'			=> false,
	'show_reset_all'	=> false,
);

// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// FRAMEWORK OPTIONS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$options		= array();

// ---------------------------------------------------------
// TOP BAR
// ---------------------------------------------------------
$menus 			= wp_get_nav_menus();
$menu_fields 	= array();

if ( ! empty( $menus ) ) {
	foreach ( $menus as $menu ) {
		$menu_fields[ $menu->slug ] = $menu->name;
	}
}

$top_bar_fields	= array(
	array(
		'id'				=> 'module',
		'type'				=> 'select',
		'title'				=> esc_html__( 'Module Type', 'amy-movie' ),
		'default_option'	=> esc_html__( 'Choose a Module', 'amy-movie' ),
		'options'			=> array(
			'text'		=> esc_html__( 'Text', 'amy-movie' ),
			'link'		=> esc_html__( 'Link', 'amy-movie' ),
			'social'	=> esc_html__( 'Social List', 'amy-movie' ),
			'login'		=> esc_html__( 'WP Login', 'amy-movie' ),
			'menu'		=> esc_html__( 'Menu', 'amy-movie' ),
		),
	),

	array(
		'id'				=> 'icon',
		'type'				=> 'icon',
		'title'				=> esc_html__( 'Icon', 'amy-movie' ),
		'dependency'		=> array( 'module', 'any', 'text,link' ),
	),

	array(
		'id'				=> 'text',
		'type'				=> 'text',
		'title'				=> esc_html__( 'Text', 'amy-movie' ),
		'multilang'			=> true,
		'dependency'		=> array( 'module', 'any', 'text,link' ),
	),

	array(
		'id'				=> 'm_color',
		'type'				=> 'color_picker',
		'title'				=> esc_html__( 'Color', 'amy-movie' ),
		'dependency'		=> array( 'module', 'any', 'text,link' ),
	),

	array(
		'id'				=> 'm_bg_color',
		'type'				=> 'color_picker',
		'title'				=> esc_html__( 'Background Color', 'amy-movie' ),
		'dependency'		=> array( 'module', 'any', 'text,link' ),
	),

	array(
		'id'				=> 'link',
		'type'				=> 'text',
		'title'				=> esc_html__( 'Link URL', 'amy-movie' ),
		'multilang'			=> true,
		'attributes'		=> array(
			'placeholder'		=> 'http://',
		),
		'dependency'		=> array( 'module', '==', 'link' ),
	),

	array(
		'id'				=> 'target',
		'type'				=> 'select',
		'title'				=> esc_html__( 'Link Target', 'amy-movie' ),
		'options'			=> array(
			''			=> '_self',
			'_blank'	=> '_blank',
		),
		'dependency'		=> array( 'module', '==', 'link' ),
	),

	array(
		'id'				=> 'menu_slug',
		'type'				=> 'select',
		'title'				=> esc_html__( 'Chosen menu', 'amy-movie' ),
		'options'			=> $menu_fields,
		'dependency'		=> array( 'module', '==', 'menu' ),
	),

	array(
		'id'				=> 'class',
		'type'				=> 'text',
		'title'				=> esc_html__( 'CSS Class', 'amy-movie' ),
		'multilang'			=> true,
		'dependency'		=> array( 'module', '!=', '' ),
	),
	array(
		'id'				=> 'visible_type',
		'type'				=> 'select',
		'title'				=> esc_html__( 'Visible to', 'amy-movie' ),
		'options'			=> array(
			'any'		=> esc_html__( 'Everyone', 'amy-movie' ),
			'user'		=> esc_html__( 'User Only', 'amy-movie' ),
			'guest'		=> esc_html__( 'Guest Only', 'amy-movie' ),
		),
		'dependency'		=> array( 'module', '!=', '' ),
	),
);


$options[]	= array(
	'name'		=> 'top_bar',
	'title'		=> esc_html__( 'Top Bar', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'			=> 'top_bar',
			'type'			=> 'switcher',
			'title'			=> esc_html__( 'Enable Top Bar', 'amy-movie' ),
			'default'		=> 1,
		),

		array(
			'id'				=> 'top_bar_left',
			'type'				=> 'group',
			'title'				=> esc_html__( 'Top Bar Left', 'amy-movie' ),
			'button_title'		=> esc_html__( 'Add New Module', 'amy-movie' ),
			'accordion_title'	=> esc_html__( 'New Module', 'amy-movie' ),
			'dependency'		=> array( 'top_bar', '==', 1 ),
			'fields'			=> $top_bar_fields,
		),
		array(
			'id'				=> 'top_bar_right',
			'type'				=> 'group',
			'title'				=> esc_html__( 'Top Bar Right', 'amy-movie' ),
			'button_title'		=> esc_html__( 'Add New Module', 'amy-movie' ),
			'accordion_title'	=> esc_html__( 'New Module', 'amy-movie' ),
			'dependency'		=> array( 'top_bar', '==', 1 ),
			'fields'			=> $top_bar_fields,
		),
	),
);

// ---------------------------------------------------------
// HEADER
// ---------------------------------------------------------
$options[]	= array(
	'name'		=> 'header',
	'title'		=> esc_html__( 'Header', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'	=> 'favicon',
			'type'	=> 'image',
			'title'	=> esc_html__( 'Favicon', 'amy-movie' ),
		),

		array(
			'id'		=> 'logo_text',
			'type'		=> 'text',
			'default'	=> get_bloginfo( 'name' ),
			'title'		=> esc_html__( 'Site Logo Text', 'amy-movie' ),
			'info'		=> esc_html__( 'This is optional if you upload any logo, this is will disable...', 'amy-movie' ),
		),

		array(
			'id'	=> 'logo',
			'type'	=> 'image',
			'title'	=> esc_html__( 'Site Logo - All4Share.net', 'amy-movie' ),
		),

		array(
			'id'	=> 'logo2x',
			'type'	=> 'image',
			'title'	=> esc_html__( 'Site Logo @2x for Retina', 'amy-movie' ),
		),

		array(
			'id'	=> 'logo_padding_top',
			'type'	=> 'number',
			'title'	=> esc_html__( 'Logo Padding Top', 'amy-movie' ),
			'after'	=> '<em>px</em>',
		),

		array(
			'id'	=> 'logo_padding_bottom',
			'type'	=> 'number',
			'title'	=> esc_html__( 'Logo Padding Bottom', 'amy-movie' ),
			'after'	=> '<em>px</em>',
		),

		array(
			'id'		=> 'header_style',
			'type'		=> 'image_select',
			'title'		=> esc_html__( 'Header Style', 'amy-movie' ),
			'options'	=> array(
				'default'	=> get_template_directory_uri() . '/images/config/header-style-default.png',
				'left'		=> get_template_directory_uri() . '/images/config/header-style-left.png',
				'center'	=> get_template_directory_uri() . '/images/config/header-style-center.png',
			),
			'attributes'			=> array(
				'data-depend-id'	=> 'header_style',
			),
			'radio'		=> true,
			'default'	=> 'default',
		),

		array(
			'id'		=> 'header_skin',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Header Skin', 'amy-movie' ),
			'options'	=> array(
				'light'		=> esc_html__( 'Light', 'amy-movie' ),
				'dark'		=> esc_html__( 'Dark', 'amy-movie' ),
			),
			'default'		=> 'light',
			'dependency'	=> array( 'header_style', '==', 'default' ),
		),

		array(
			'id'		=> 'dark_module_login',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Show module login', 'amy-movie' ),
			'default'	=> false,
			'dependency'	=> array( 'header_style|header_skin', '==|==', 'default|dark' ),
		),

		array(
			'id'		=> 'show_search',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Show search on header', 'amy-movie' ),
			'dependency'	=> array( 'header_style', '==', 'default' ),
			'default'	=> false,
		),

		array(
			'id'		=> 'menu_max_width',
			'type'		=> 'number',
			'title'		=> esc_html__( 'Disable menu in max-width', 'amy-movie' ),
			'default'	=> '992',
			'label'		=> esc_html__( 'you can set it eg. 1200, 992, 768 or any width etc..', 'amy-movie' ),
		),
	),
);

// ----------------------------------------------
// FOOTER
// ----------------------------------------------
$options[]	= array(
	'name'		=> 'footer',
	'title'		=> esc_html__( 'Footer', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'		=> 'enable_footer',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Enable Footer', 'amy-movie' ),
			'label'		=> esc_html__( 'Enable footer widgets area in all pages.', 'amy-movie' ),
			'default'	=> true,
		),

		array(
			'id'		=> 'footer_bg',
			'type'		=> 'image',
			'title'		=> esc_html__( 'Footer Background Image', 'amy-movie' ),
		),

		array(
			'id'		=> 'footer_widgets_before',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Footer Widgets Before', 'amy-movie' ),
			'label'		=> esc_html__( 'A full-width widget before footer widgets', 'amy-movie' ),
			'default'	=> false,
		),

		array(
			'id'		=> 'footer_widgets',
			'type'		=> 'image_select',
			'title'		=> esc_html__( 'Footer Widgets', 'amy-movie' ),
			'options'	=> array(
				'1'			=> get_template_directory_uri() . '/images/config/footer-widget-1.png',
				'2'			=> get_template_directory_uri() . '/images/config/footer-widget-2.png',
				'3'			=> get_template_directory_uri() . '/images/config/footer-widget-3.png',
				'4'			=> get_template_directory_uri() . '/images/config/footer-widget-4.png',
				'5'			=> get_template_directory_uri() . '/images/config/footer-widget-5.png',
				'6'			=> get_template_directory_uri() . '/images/config/footer-widget-6.png',
				'7'			=> get_template_directory_uri() . '/images/config/footer-widget-7.png',
				'8'			=> get_template_directory_uri() . '/images/config/footer-widget-8.png',
				'9'			=> get_template_directory_uri() . '/images/config/footer-widget-9.png',
				'10'		=> get_template_directory_uri() . '/images/config/footer-widget-10.png',
			),
			'radio'		=> true,
			'default'	=> '4',
		),

		array(
			'id'		=> 'footer_widgets_after',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Footer Widgets After', 'amy-movie' ),
			'label'		=> esc_html__( 'A full-width widget after footer widgets', 'amy-movie' ),
			'default'	=> false,
		),

		array(
			'id'		=> 'enable_copyright',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Enable Copyright', 'amy-movie' ),
			'label'		=> esc_html__( 'Enable copyright on all pages.', 'amy-movie' ),
			'default'	=> true,
		),

		array(
			'id'				=> 'copyright_left',
			'type'				=> 'group',
			'title'				=> esc_html__( 'Copyright Left', 'amy-movie' ),
			'button_title'		=> esc_html__( 'Add New Module', 'amy-movie' ),
			'accordion_title'	=> esc_html__( 'New Module', 'amy-movie' ),
			'dependency'		=> array( 'enable_copyright', '==', 1 ),
			'fields'			=> $top_bar_fields,
		),

		array(
			'id'				=> 'copyright_right',
			'type'				=> 'group',
			'title'				=> esc_html__( 'Copyright Right', 'amy-movie' ),
			'button_title'		=> esc_html__( 'Add New Module', 'amy-movie' ),
			'accordion_title'	=> esc_html__( 'New Module', 'amy-movie' ),
			'dependency'		=> array( 'enable_copyright', '==', 1 ),
			'fields'			=> $top_bar_fields,
		),
	),
);

// ----------------------------------------------
// MOVIE
// ----------------------------------------------
$options[]	= array(
	'name'		=> 'movie',
	'title'		=> esc_html__( 'Movie', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'		=> 'movie_general_heading',
			'type'		=> 'heading',
			'content'	=> esc_html__( 'General', 'amy-movie' ),
		),

		array(
			'id'		=> 'enable_m_cinema',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Enable Cinema System', 'amy-movie' ),
			'default'	=> true,
			'label'		=> esc_html__( 'If disable all featured interest cinema will disable', 'amy-movie' ),
		),

		array(
			'id' 			=> 'search_number',
			'type' 			=> 'text',
			'title' 		=> esc_html__( 'Search Per Page', 'amy-movie' ),
			'info'			=> esc_html__( 'Movie per page in result search movie', 'amy-movie' ),
			'value' 		=> 8,
		),

		array(
			'id'		=> 'movie_single_heading',
			'type'		=> 'heading',
			'content'	=> esc_html__( 'Single Movie', 'amy-movie' ),
		),

		array(
			'id'		=> 'movie_comment',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Show comments in movie', 'amy-movie' ),
			'default'	=> true,
		),

		array(
			'id'		=> 'enable_movie_rating',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Enable User Rate', 'amy-movie' ),
			'label'		=> esc_html__( 'If enable user can rate movie in page single movie', 'amy-movie' ),
			'default'	=> false,
		),

		array(
			'id'		=> 'movie_showtime',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Enable Showtime', 'amy-movie' ),
			'label'		=> esc_html__( 'Enable/Disable section showtime in page single movie', 'amy-movie' ),
			'default'	=> true,
			'dependency'	=> array( 'enable_m_cinema', '==', '1' ),
		),

		array(
			'id'		=> 'movie_showtime_type',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Showtime type', 'amy-movie' ),
			'options'		=> array(
				'all'		=> esc_html__( 'All Days', 'amy-movie' ),
				'cm'		=> esc_html__( 'Coming Soon', 'amy-movie' ),
			),
			'label'		=> esc_html__( 'Showtime type in page single movie', 'amy-movie' ),
			'default'	=> 'full',
			'dependency'	=> array( 'enable_m_cinema|movie_showtime', '==|==', '1|1' ),
		),

		array(
			'id'		=> 'movie_genre_heading',
			'type'		=> 'heading',
			'content'	=> esc_html__( 'Genre Page', 'amy-movie' ),
		),

		array(
			'id'				=> 'genre_sidebar',
			'type'				=> 'select',
			'title'				=> esc_html__( 'Genre Sidebar', 'amy-movie' ),
			'options'			=> array(
				'right'				=> esc_html__( 'Right Sidebar', 'amy-movie' ),
				'left'				=> esc_html__( 'Left Sidebar', 'amy-movie' ),
				'full'				=> esc_html__( 'No Sidebar', 'amy-movie' ),
			),
			'default'			=> 'right',
		),

		array(
			'id'				=> 'genre_widget',
			'type'				=> 'select',
			'title'				=> esc_html__( 'Genre Sidebar Widget', 'amy-movie' ),
			'options'			=> amy_movie_wp_registered_sidebars(),
			'default_option'	=> esc_html__( 'Select a sidebar (default primary)', 'amy-movie' ),
			'dependency'		=> array( 'genre_sidebar', 'any', 'right,left' ),
			'default'			=> 'rightbar',
		),

		array(
			'id'		=> 'genre_layout',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Genre Layout', 'amy-movie' ),
			'options'	=> array(
				'list'		=> esc_html__( 'List', 'amy-movie' ),
				'grid'		=> esc_html__( 'Grid', 'amy-movie' ),
			),
			'default'	=> 'list',
		),

		array(
			'type' 			=> 'image_select',
			'title' 		=> esc_html__( 'Grid Layout', 'amy-movie' ),
			'id' 			=> 'grid_layout',
			'options' 		=> array(
				'layout1' 	=> get_template_directory_uri() . '/images/shortcode/grid_layout1.png',
				'layout2' 	=> get_template_directory_uri() . '/images/shortcode/grid_layout2.png',
				'layout3' 	=> get_template_directory_uri() . '/images/shortcode/grid_layout3.png',
				'layout4' 	=> get_template_directory_uri() . '/images/shortcode/grid_layout4.png',
			),
			'radio'		=> true,
			'attributes'			=> array(
				'data-depend-id'	=> 'grid_layout',
			),
			'default'		=> 'layout1',
			'dependency'	=> array( 'genre_layout', '==', 'grid' ),
		),

		array(
			'type'			=> 'select',
			'title'			=> esc_html__( 'Columns', 'amy-movie' ),
			'id'			=> 'column',
			'options'		=> array(
				'2'	=> esc_html__( '2 column', 'amy-movie' ),
				'3'	=> esc_html__( '3 column', 'amy-movie' ),
				'4'	=> esc_html__( '4 column', 'amy-movie' ),
				'5' => esc_html__( '5 column', 'amy-movie' ),
			),
			'default'			=> '4',
			'dependency'	=> array( 'genre_layout|grid_layout', '==|any', 'grid|layout1,layout3,layout4' ),
		),

		array(
			'type'		=> 'select',
			'title'		=> esc_html__( 'Columns', 'amy-movie' ),
			'id'		=> 'layout2_column',
			'options'		=> array(
				'2'	=> esc_html__( '2 column', 'amy-movie' ),
				'3'	=> esc_html__( '3 column', 'amy-movie' ),
			),
			'default'			=> '2',
			'dependency'	=> array( 'genre_layout|grid_layout', '==|==', 'grid|layout2' ),
		),

		array(
			'id' 			=> 'movie_number',
			'type' 			=> 'text',
			'title' 		=> esc_html__( 'Movies Per Page', 'amy-movie' ),
			'value' 		=> 7,
		),

		array(
			'type'			=> 'switcher',
			'title'			=> esc_html__( 'Show Pagination', 'amy-movie' ),
			'id'			=> 'pagination',
			'std'			=> true,
		),
	),
);

// ----------------------------------------------
// BLOG
// ----------------------------------------------
$options[]	= array(
	'name'		=> 'blog',
	'title'		=> esc_html__( 'Blog', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'		=> 'blog_general_heading',
			'type'		=> 'heading',
			'content'	=> esc_html__( 'Blog', 'amy-movie' ),
		),

		array(
			'id'				=> 'blog_sidebar',
			'type'				=> 'select',
			'title'				=> esc_html__( 'Blog Sidebar', 'amy-movie' ),
			'options'			=> array(
				'right'				=> esc_html__( 'Right Sidebar', 'amy-movie' ),
				'left'				=> esc_html__( 'Left Sidebar', 'amy-movie' ),
				'full'				=> esc_html__( 'No Sidebar', 'amy-movie' ),
			),
			'default'			=> 'right',
		),

		array(
			'id'				=> 'blog_widget',
			'type'				=> 'select',
			'title'				=> esc_html__( 'Blog Sidebar Widget', 'amy-movie' ),
			'options'			=> amy_movie_wp_registered_sidebars(),
			'default_option'	=> esc_html__( 'Select a sidebar (default primary)', 'amy-movie' ),
			'dependency'		=> array( 'blog_sidebar', 'any', 'right,left' ),
			'default'			=> 'rightbar',
		),

		array(
			'id'		=> 'blog_layout',
			'type'		=> 'image_select',
			'title'		=> esc_html__( 'BLog Layout', 'amy-movie' ),
			'options'	=> array(
				'list'		=> get_template_directory_uri() . '/images/shortcode/list.png',
				'grid'		=> get_template_directory_uri() . '/images/shortcode/grid.png',
				'masonry'	=> get_template_directory_uri() . '/images/shortcode/masonry.png',
			),
			'default'	=> 'list',
			'radio'		=> true,
			'attributes'			=> array(
				'data-depend-id'	=> 'blog_layout',
			),
			'info'		=> esc_html__( 'List, Grid or Masonry. Masonry working with No Sidebar', 'amy-movie' ),
		),

				array(
			'id'		=> 'blog_column',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Blog Column', 'amy-movie' ),
			'options'	=> array(
				'2'		=> esc_html__( '2 Columns', 'amy-movie' ),
				'3'		=> esc_html__( '3 Columns', 'amy-movie' ),
				'4'		=> esc_html__( '4 Columns', 'amy-movie' ),
				'6'		=> esc_html__( '6 Columns', 'amy-movie' ),
				),
			'dependency'	=> array( 'blog_layout', '==', 'grid' ),
			'default'	=> 4,
		),

		array(
			'id'		=> 'blog_img_size',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Image size(optional)', 'amy-movie' ),
			'options'	=> amy_movie_get_image_sizes( true, false ),
			'default'	=> 'rightbar-image',
			'dependency'	=> array( 'blog_layout', 'any', 'list,grid' ),
		),

		array(
			'id'		=> 'blog_meta_position',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Content Position', 'amy-movie' ),
			'class'		=> 'horizontal',
			'options'	=> array(
				'under'	=> esc_html__( 'Under Image', 'amy-movie' ),
				'right'	=> esc_html__( 'Right Image', 'amy-movie' ),
			),
			'default'	=> 'under',
			'dependency'	=> array( 'blog_layout', '==', 'list' ),
		),

		array(
			'id'		=> 'blog_img_width',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Image Width', 'amy-movie' ),
			'options'	=> array(
				'4'		=> esc_html__( '4 columns - 1/3', 'amy-movie' ),
				'5'		=> esc_html__( '5 columns - 5/12', 'amy-movie' ),
				'6'		=> esc_html__( '6 columns - 1/2', 'amy-movie' ),
				'7'		=> esc_html__( '7 columns - 7/12', 'amy-movie' ),
			),
			'default'	=> '4',
			'dependency'	=> array( 'blog_meta_position|blog_layout', '==|==', 'right|list' ),
		),

		array(
			'id'		=> 'blog_pagination',
			'title'		=> esc_html__( 'Pagination', 'amy-movie' ),
			'type'		=> 'switcher',
			'default'	=> true,
			'dependency'	=> array( 'blog_layout', 'any', 'list,grid' ),
		),

		array(
			'id'		=> 'blog_post_heading',
			'type'		=> 'heading',
			'content'	=> esc_html__( 'Single Post', 'amy-movie' ),
		),

		array(
			'id'		=> 'post_recent',
			'type'		=> 'switcher',
			'title'		=> esc_html__( 'Recent Post', 'amy-movie' ),
			'default'	=> true,
		),

		array(
			'id'		=> 'post_recent_by',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Recent Post By', 'amy-movie' ),
			'options'	=> array(
				'category'		=> esc_html__( 'Category', 'amy-movie' ),
				'post_tag'		=> esc_html__( 'Tag', 'amy-movie' ),

			),
			'default'	=> 'category',
		),

		array(
			'id'		=> 'post_recent_title',
			'type'		=> 'text',
			'title'		=> esc_html__( 'Recent Post title', 'amy-movie' ),
			'default'	=> esc_html__( 'Related Article', 'amy-movie' ),
		),
	),
);

// ----------------------------------------------
// SKIN
// ----------------------------------------------
$options[] = array(
	'name'		=> 'skin',
	'title'		=> esc_html__( 'Skin', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'		=> 'skin_heading_general',
			'type'		=> 'heading',
			'content'	=> esc_html__( 'General', 'amy-movie' ),
		),

		array(
			'id'			=> 'disable_skin',
			'type'			=> 'switcher',
			'title'			=> esc_html__( 'Disabled Skin', 'amy-movie' ),
			'label'			=> esc_html__( 'Using themes color', 'amy-movie' ),
			'default'		=> true,
		),

		array(
			'id'		=> 'skin_color',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Skin', 'amy-movie' ),
			'options'	=> array(
				'red'		=> esc_html__( 'Red', 'amy-movie' ),
				'pink'		=> esc_html__( 'Pink', 'amy-movie' ),
				'blue'		=> esc_html__( 'Blue', 'amy-movie' ),
				'custom'	=> esc_html__( 'Custom', 'amy-movie' ),
			),
			'default'	=> 'red',
			'dependency'	=> array( 'disable_skin', '==', '0' ),
		),

		array(
			'id'		=> 'skin_custom',
			'type'		=> 'color_picker',
			'title'		=> esc_html__( 'Custom', 'amy-movie' ),
			'dependency'	=> array( 'skin_color|disable_skin', '==|==', 'custom|0' ),
		),

		array(
			'id'		=> 'skin_heading_page_title',
			'type'		=> 'heading',
			'content'	=> esc_html__( 'Page title', 'amy-movie' ),
		),

		array(
			'id'		=> 'pagetitle_bg_color',
			'type'		=> 'color_picker',
			'title'		=> esc_html__( 'Page Title Background Color', 'amy-movie' ),
		),

		array(
			'id'		=> 'pagetitle_bg_img',
			'type'		=> 'image',
			'title'		=> esc_html__( 'Page Title Background Image', 'amy-movie' ),
		),

		array(
			'id'		=> 'pagetitle_color',
			'type'		=> 'color_picker',
			'title'		=> esc_html__( 'Page Title Color', 'amy-movie' ),
		),
	),
);

// ----------------------------------------------
// TYPOGRAPHY
// ----------------------------------------------
$options[]	= array(
	'name'		=> 'typography',
	'title'		=> esc_html__( 'Typography', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'				=> 'typography',
			'type'				=> 'group',
			'button_title'		=> esc_html__( 'Add New Typography', 'amy-movie' ),
			'accordion'			=> true,
			'accordion_title'	=> esc_html__( 'New Typography', 'amy-movie' ),
			'fields'			=> array(
				array(
					'id'			=> 'title',
					'type'			=> 'text',
					'title'			=> esc_html__( 'Title', 'amy-movie' ),
				),
				array(
					'id'			=> 'selector',
					'type'			=> 'text',
					'title'			=> esc_html__( 'Selector', 'amy-movie' ),
				),
				array(
					'id'			=> 'font',
					'type'			=> 'typography',
					'title'			=> esc_html__( 'Font Family', 'amy-movie' ),
				),
				array(
					'id'			=> 'size',
					'type'			=> 'text',
					'title'			=> esc_html__( 'Font Size <em>(optional)</em>', 'amy-movie' ),
				),
				array(
					'id'			=> 'line_height',
					'type'			=> 'text',
					'title'			=> esc_html__( 'Line Height <em>(optional)</em>', 'amy-movie' ),
				),
				array(
					'id'			=> 'css',
					'type'			=> 'textarea',
					'title'			=> esc_html__( 'Custom CSS <em>(optional)</em>', 'amy-movie' ),
				),
			),
			'default'		=> array(
				array(
					'title'		=> esc_html__( 'Body Typography', 'amy-movie' ),
					'selector'	=> 'body',
					'font'		=> array(
						'family'	=> 'Roboto Condensed',
						'variant'	=> 'regular',
					),
					'size'		=> '14px',
				),
				array(
					'title'		=> esc_html__( 'Menu Typography', 'amy-movie' ),
					'selector'	=> '#amy-site-nav .menu-item a',
					'font'		=> array(
						'family'	=> 'Roboto Condensed',
						'variant'	=> '700',
					),
					'size'		=> '15px',
				),
				array(
					'title'		=> esc_html__( 'SubMenu Typography', 'amy-movie' ),
					'selector'	=> '#amy-site-nav .sub-menu .menu-item a',
					'font'		=> array(
						'family'	=> 'Roboto Condensed',
						'variant'	=> '700',
					),
					'size'		=> '15px',
				),
			),
		),

		array(
			'id'		=> 'subsets',
			'type'		=> 'select',
			'title'		=> esc_html__( 'Subsets', 'amy-movie' ),
			'class'		=> 'chosen',
			'options'	=> array(
				'latin'			=> 'latin',
				'latin-ext'		=> 'latin-ext',
				'cyrillic'		=> 'cyrillic',
				'cyrillic-ext'	=> 'cyrillic-ext',
				'greek'			=> 'greek',
				'greek-ext'		=> 'greek-ext',
				'vietnamese'	=> 'vietnamese',
				'devanagari'	=> 'devanagari',
				'khmer'			=> 'khmer',
			),
			'attributes'	=> array(
				'data-placeholder'	=> esc_html__( 'Subsets', 'amy-movie' ),
				'multiple'			=> 'multiple',
			),
			'default'	=> array( 'latin' ),
		),
	),
);

// ----------------------------------------------
// SOCIAL
// ----------------------------------------------
$options[]	= array(
	'name'		=> 'social',
	'title'		=> esc_html__( 'Social', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'		=> 'facebook_url',
			'type'		=> 'text',
			'title'		=> esc_html__( 'Facebook Url', 'amy-movie' ),
		),

		array(
			'id'		=> 'twitter_url',
			'type'		=> 'text',
			'title'		=> esc_html__( 'Twitter Url', 'amy-movie' ),
		),

		array(
			'id'		=> 'google_url',
			'type'		=> 'text',
			'title'		=> esc_html__( 'Google Url', 'amy-movie' ),
		),

		array(
			'id'		=> 'pinterest_url',
			'type'		=> 'text',
			'title'		=> esc_html__( 'Pinterest Url', 'amy-movie' ),
		),
	),
);

// ----------------------------------------------
// Media Options
// ----------------------------------------------
$options[] = array(
	'name'		=> 'media',
	'title'		=> esc_html__( 'Media', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id' 				=> 'custom_image_sizes',
			'type' 				=> 'group',
			'title' 			=> esc_html__( 'Add Image Size', 'amy-movie' ),
			'button_title' 		=> 'Add New Image Size',
			'accordion_title' 	=> 'New Image Size',
			'desc'				=> esc_html__( 'Remember dont change image size default name, after add new or change size please run plugin Regenerate Thumbnails to update new size.', 'amy-movie' ),
			'fields' 			=> array(
				array(
					'id' 	=> 'img_size_name',
					'type' 	=> 'text',
					'title' => esc_html__( 'Size Name', 'amy-movie' ),
				),

				array(
					'id' 	=> 'img_size_width',
					'type' 	=> 'number',
					'title' => esc_html__( 'Width', 'amy-movie' ),
				),

				array(
					'id' 	=> 'img_size_height',
					'type' 	=> 'number',
					'title' => esc_html__( 'Height', 'amy-movie' ),
				),

				array(
					'id'	=> 'img_crop',
					'type'	=> 'switcher',
					'title'	=> esc_html__( 'Crop', 'amy-movie' ),
					'default' => '1',
				),

			),
			'default'	=> array(
				array(
					'img_size_name'		=> 'Movie List Size',
					'img_size_width'	=> '205',
					'img_size_height'	=> '347',
					'img_crop'			=> '1',
				),

				array(
					'img_size_name'		=> 'Movie Grid Layout 1',
					'img_size_width'	=> '360',
					'img_size_height'	=> '618',
					'img_crop'			=> '1',
				),

				array(
					'img_size_name'		=> 'Movie Grid Layout 2',
					'img_size_width'	=> '164',
					'img_size_height'	=> '220',
					'img_crop'			=> '1',
				),

				array(
					'img_size_name'		=> 'Movie Grid Layout 3',
					'img_size_width'	=> '360',
					'img_size_height'	=> '618',
					'img_crop'			=> '1',
				),

				array(
					'img_size_name'		=> 'Movie Grid Layout 4',
					'img_size_width'	=> '360',
					'img_size_height'	=> '618',
					'img_crop'			=> '1',
				),

				array(
					'img_size_name'		=> 'Movie Carousel Size',
					'img_size_width'	=> '233',
					'img_size_height'	=> '396',
					'img_crop'			=> '1',
				),
			),
		),
	),
);

// ----------------------------------------------
// Custom CSS/JS
// ----------------------------------------------
$options[] = array(
	'name'		=> 'custom',
	'title'		=> esc_html__( 'Custom CSS & JS', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'		=> 'custom_css',
			'type'		=> 'textarea',
			'title'		=> esc_html__( 'Custom Css', 'amy-movie' ),
		),

		array(
			'id'		=> 'custom_js',
			'type'		=> 'textarea',
			'title'		=> esc_html__( 'Custom Js', 'amy-movie' ),
			'after'		=> esc_html__( 'Do not include <script></script> tag.', 'amy-movie' ),
		),
	),
);


// ----------------------------------------------
// IMPORT CONTENT
// ----------------------------------------------
$condition 	= (function_exists( 'is_vc_activated' ) && is_vc_activated() && function_exists( 'amy_movie_extends_init' ) && class_exists( 'RevSlider' ));
$message	= esc_html__( 'You need to activate plugins Visual Composer, Amy Movie Extends, Slider Revolution before importing content demo', 'amy-movie' );

$options[] = array(
	'name'		=> 'democontent',
	'title'		=> esc_html__( 'Demo Content', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'  => 'demo_import',
			'type'  => 'demo_importer',
			'condition' => $condition,
			'message' => $message,
			'demos'  => array(
				array(
					'id'  			=> 'home1',
					'title'  		=> esc_html__( 'Homepage 1', 'amy-movie' ),
					'thumbnail' 	=> get_template_directory_uri() . '/images/config/demo/default.png',
				),

				array(
					'id'  => 'home2',
					'title'  => esc_html__( 'Homepage 2', 'amy-movie' ),
					'thumbnail' => get_template_directory_uri() . '/images/config/demo/layout2.png',
				),
			),
		),
	),
);

// ----------------------------------------------
// IMPORT IMDB
// ----------------------------------------------
$options[] = array(
	'name'		=> 'imdbimport',
	'title'		=> esc_html__( 'IMDB Import', 'amy-movie' ),
	'fields'	=> array(
		array(
			'id'		=> 'imdb_heading',
			'type'		=> 'heading',
			'content'	=> esc_html__( 'IMDB API Settings', 'amy-movie' ),
		),

		array(
			'id'		=> 'imdb_api_key',
			'type'		=> 'text',
			'title'		=> esc_html__( 'API key', 'amy-movie' ),
			'info'		=> esc_html__( 'You need get api from http://www.myapifilms.com/token.do', 'amy-movie' ),
		),

		array(
			'id'		=> 'imdb_timeout',
			'type'		=> 'number',
			'title'		=> esc_html__( 'Set Timeout', 'amy-movie' ),
			'default'	=> '300',
			'info'		=> esc_html__( 'Set max_execution_time to avoid timeout to import movie.', 'amy-movie' ),
		),
	),
);

AmyFramework::instance( $settings, $options );
