<?php

/**
 * SETTINGS TAB
 **/
$ipanel_inspiredise_tabs[] = array(
	'name' => 'Main Settings',
	'id' => 'main_settings'
);

$ipanel_inspiredise_option[] = array(
	"type" => "StartTab",
	"id" => "main_settings"
);

$ipanel_inspiredise_option[] = array(
	"name" => "Show site preloader",
	"id" => "enable_theme_preloader",
	"std" => true,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "If turned on you will see loading animation before site will show",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Enable Responsive view",
	"id" => "enable_responsive",
	"std" => true,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "Check if you want have adaptive design on tablet/mobile devices",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Enable Parallax effects for pages backgrounds",
	"id" => "enable_parallax",
	"std" => true,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "You can turn on/off parallax effects for pages backgrounds in page scrolling",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Enable fixed top menu",
	"id" => "enable_fixed_menu",
	"std" => true,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "If turned on top menu will always on screen top in page scrolling",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Animate template items",
	"id" => "enable_theme_animations",
	"std" => true,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "If turned on all page items will slide to screen when you scroll page",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Show share buttons in Portfolio projects",
	"id" => "enable_portfolio_share_buttons",
	"std" => true,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "Check if you want to have share buttons in portfolio projects descriptions",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Upload Favicon",
	"id" => "favicon_image",
	"field_options" => array(
		"std" => get_template_directory_uri().'/img/favicon.png'
	),
	"desc" => "Upload your site Favicon in PNG format (32x32px)",
	"type" => "qup",
);

$ipanel_inspiredise_option[] = array(
	"type" => "EndTab"
);

/**
 * SLIDER TAB
 **/
$ipanel_inspiredise_tabs[] = array(
	'name' => 'Slider',
	'id' => 'header_settings'
);

$ipanel_inspiredise_option[] = array(
	"type" => "StartTab",
	"id" => "header_settings"
);

$ipanel_inspiredise_option[] = array(
	"name" => "Disable Slider Screen",
	"id" => "disable_slider",
	"std" => false,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "Check if you want to see site immidiately without slider screen",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Slider down arrow (skip) image (66x32px)",
	"id" => "slider_downarrow_image",
	"field_options" => array(
		"std" => get_template_directory_uri().'/img/skip-intro.png'
	),
	"desc" => "This arrow image will be used to skip main slider and scroll to site",
	"type" => "qup",
);


$ipanel_inspiredise_option[] = array(
	"name" => "Header slider autoplay",
	"id" => "header_slider_autoplay",
	"std" => true,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Header slider changing speed",
	"id" => "header_slider_speed",
	"std" => 7000,
	"field_options" => array(
		"min" => 100,
		"step" => 100,
		"max" => 30000,
		"animation" => true,
	),
	"desc" => "Time between slides changes in miliseconds",
	"type" => "slider",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Header Slider animation",
	"id" => "header_slider_animation",
	"std" => "fade",
	"options" => array(
		"fade" => "Fade",
		"slide" => "Slide"
	),
	"desc" => "",
	"type" => "select",
);
$ipanel_inspiredise_option[] = array(
	"name" => "Display header slider prev/next navigation buttons",
	"id" => "header_show_slider_navigation",
	"std" => true,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"type" => "EndTab"
);

/**
 * FOOTER TAB
 **/
$ipanel_inspiredise_tabs[] = array(
	'name' => 'Footer',
	'id' => 'footer_settings'
);

$ipanel_inspiredise_option[] = array(
	"type" => "StartTab",
	"id" => "footer_settings"
);

$ipanel_footer_social_icons_repeater_options[] = array(
	"name" => "Social service",
	"id" => "footer_social_icons_repeater_service_name_select",
	"repeater_item" => true,
	"options" => array(
		"facebook" => "Facebook",
		"twitter" => "Twitter",
		"google-plus" => "Google+",
		"dribbble" => "Dribbble",
		"linkedin" => "LinkedIn",
		"instagram" => "Instagram",
		"skype" => "Skype",
		"tumblr" => "Tumblr",
		"vk" => "Vkontakte",
		"pinterest" => "Pinterest",
		"vimeo-square" => "Vimeo",
		"youtube" => "YouTube"
	),
	"type" => "select",
);

$ipanel_footer_social_icons_repeater_options[] = array(
	"name" => "Your profile url in this service",
	"id" => "footer_social_icons_repeater_service_url_text",
	"repeater_item" => true,
	"type" => "text"
);

$ipanel_inspiredise_option[] = array(
	"name" => "Footer social icons",
	"id" => "footer_social_icons_repeater",
	"desc" => "You can add different social icons to your footer",
	"options" => $ipanel_footer_social_icons_repeater_options,
	"type" => "repeater"
);

$ipanel_inspiredise_option[] = array(
	"name" => "Footer copyright text",
	"id" => "footer_copyright_editor",
	"std" => "Powered by <a href='http://themeforest.net/user/dedalx/' target='_blank'>_NSPIREDISE - Premium Wordpress Theme</a>",
	"desc" => "This is a sample of wordpress wysiwyg editor.",
	"field_options" => array(
		'media_buttons' => false
	),
	"type" => "wp_editor",
);

$ipanel_inspiredise_option[] = array(
	"type" => "EndTab"
);

/**
 * TWITTER TAB
 **/
$ipanel_inspiredise_tabs[] = array(
	'name' => 'Twitter',
	'id' => 'twitter_settings'
);

$ipanel_inspiredise_option[] = array(
	"type" => "StartTab",
	"id" => "twitter_settings"
);
$ipanel_inspiredise_option[] = array(
	"type" => "info",
	"name" => "IMPORTANT: You must put your Twitter API credentials to /wp-content/themes/inspiredise/js/twitter/index.php file by theme documentation to turn on twitter feeds display.",
	"field_options" => array(
		"style" => 'alert'
	)
);
$ipanel_inspiredise_option[] = array(
	"name" => "Display Twitter tweets slider in footer",
	"id" => "footer_show_twitter",
	"std" => false,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "If you don't want to see twitter slider in footer disable this option",
	"type" => "checkbox",
);
$ipanel_inspiredise_option[] = array(
	"name" => "Twitter username",
	"id" => "footer_twitter_username",
	"std" => "",
	"desc" => "Input your twitter username without @",
	"type" => "text",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Twitter tweets count",
	"id" => "footer_twitter_tweets_count",
	"std" => 10,
	"field_options" => array(
		"min" => 1,
		"step" => 1,
		"max" => 50,
		"animation" => true,
	),
	"desc" => "Limit for tweets in Twitter feed",
	"type" => "slider",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Twitter slider autoplay",
	"id" => "footer_twitter_autoplay",
	"std" => true,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "",
	"type" => "checkbox",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Twitter slider changing speed",
	"id" => "footer_twitter_speed",
	"std" => 7000,
	"field_options" => array(
		"min" => 100,
		"step" => 100,
		"max" => 30000,
		"animation" => true,
	),
	"desc" => "Time between slides changes in miliseconds",
	"type" => "slider",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Twitter Slider animation",
	"id" => "footer_twitter_animation",
	"std" => "fade",
	"options" => array(
		"fade" => "Fade",
		"slide" => "Slide"
	),
	"desc" => "",
	"type" => "select",
);
$ipanel_inspiredise_option[] = array(
	"name" => "Display Twitter slider prev/next navigation buttons",
	"id" => "footer_show_twitter_navigation",
	"std" => false,
	"field_options" => array(
		"box_label" => "Check Me!"
	),
	"desc" => "",
	"type" => "checkbox",
);
$ipanel_inspiredise_option[] = array(
	"type" => "EndTab"
);
/**
 * FONTS TAB
 **/

$ipanel_inspiredise_tabs[] = array(
	'name' => 'Fonts',
	'id' => 'font_settings'
);

$ipanel_inspiredise_option[] = array(
	"type" => "StartTab",
	"id" => "font_settings"
);

$ipanel_inspiredise_option[] = array(
	"name" => "Headers font",
	"id" => "header_font",
	"desc" => "Font used in headers",
	"options" => array(
		"font-sizes" => array(
			" " => "Font Size",
			'11' => '11px',
			'12' => '12px',
			'13' => '13px',
			'14' => '14px',
			'15' => '15px',
			'16' => '16px',
			'17' => '17px',
			'18' => '18px',
			'19' => '19px',
			'20' => '20px',
			'21' => '21px',
			'22' => '22px',
			'23' => '23px',
			'24' => '24px',
			'25' => '25px',
			'26' => '26px',
			'27' => '27px',
			'28' => '28px',
			'29' => '29px',
			'30' => '30px',
			'31' => '31px',
			'32' => '32px',
			'33' => '33px',
			'34' => '34px',
			'35' => '35px',
			'36' => '36px',
			'37' => '37px',
			'38' => '38px',
			'39' => '39px',
			'40' => '40px'
		),
		"color" => false,
		"font-families" => iPanel::getGoogleFonts(),
		"font-styles" => false
	),
	"std" => array(
		"font-size" => '36',
		"font-family" => 'PT+Sans'
	),
	"type" => "typography"
);

$ipanel_inspiredise_option[] = array(
	"name" => "Body font",
	"id" => "body_font",
	"desc" => "Font used in other elements",
	"options" => array(
		"font-sizes" => array(
			" " => "Font Size",
			'11' => '11px',
			'12' => '12px',
			'13' => '13px',
			'14' => '14px',
			'15' => '15px',
			'16' => '16px',
			'17' => '17px',
			'18' => '18px',
			'19' => '19px',
			'20' => '20px',
			'21' => '21px',
			'22' => '22px',
			'23' => '23px',
			'24' => '24px',
			'25' => '25px',
			'26' => '26px',
			'27' => '27px'
		),
		"color" => false,
		"font-families" => iPanel::getGoogleFonts(),
		"font-styles" => false
	),
	"std" => array(
		"font-size" => '14',
		"font-family" => 'PT+Sans'
	),
	"type" => "typography"
);

$ipanel_inspiredise_option[] = array(
	"type" => "EndTab"
);

/**
 * COLORS TAB
 **/

$ipanel_inspiredise_tabs[] = array(
	'name' => 'Colors',
	'id' => 'color_settings'
);

$ipanel_inspiredise_option[] = array(
	"type" => "StartTab",
	"id" => "color_settings",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Main theme color",
	"id" => "theme_main_color",
	"std" => "#C9BA8C",
	"desc" => "Used in many theme places",
	"field_options" => array(
		//'desc_in_tooltip' => true
	),
	"type" => "color",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Second theme color",
	"id" => "theme_second_color",
	"std" => "#DCCC99",
	"desc" => "Used in different borders and some theme elements",
	"field_options" => array(
		//'desc_in_tooltip' => true
	),
	"type" => "color",
);

$ipanel_inspiredise_option[] = array(
	"type" => "EndTab"
);

/**
 * CUSTOM CODE TAB
 **/

$ipanel_inspiredise_tabs[] = array(
	'name' => 'Custom code',
	'id' => 'custom_code'
);

$ipanel_inspiredise_option[] = array(
	"type" => "StartTab",
	"id" => "custom_code",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Custom JavaScript code",
	"id" => "custom_js_code",
	"std" => '',
	"field_options" => array(
		"language" => "javascript",
		"line_numbers" => true,
		"autoCloseBrackets" => true,
		"autoCloseTags" => true
	),
	"desc" => "This code will run in header",
	"type" => "code",
);

$ipanel_inspiredise_option[] = array(
	"name" => "Custom CSS styles",
	"id" => "custom_css_code",
	"std" => '',
	"field_options" => array(
		"language" => "json",
		"line_numbers" => true,
		"autoCloseBrackets" => true,
		"autoCloseTags" => true
	),
	"desc" => "This CSS code will be included in header",
	"type" => "code",
);

$ipanel_inspiredise_option[] = array(
	"type" => "EndTab"
);

/**
 * EXPORT TAB
 **/

$ipanel_inspiredise_tabs[] = array(
	'name' => 'Export',
	'id' => 'export_settings'
);

$ipanel_inspiredise_option[] = array(
	"type" => "StartTab",
	"id" => "export_settings"
);
	
$ipanel_inspiredise_option[] = array(
	"name" => "Export with Download Possibility",
	"type" => "export",
	"desc" => "This is a sample of export field."
);

$ipanel_inspiredise_option[] = array(
	"type" => "EndTab"
);

/**
 * IMPORT TAB
 **/

$ipanel_inspiredise_tabs[] = array(
	'name' => 'Import',
	'id' => 'import_settings'
);

$ipanel_inspiredise_option[] = array(
	"type" => "StartTab",
	"id" => "import_settings"
);

$ipanel_inspiredise_option[] = array(
	"name" => "Import",
	"type" => "import",
	"desc" => "This is a sample of import field."
);

$ipanel_inspiredise_option[] = array(
	"type" => "EndTab"
);

/**
 * CONFIGURATION
 **/

$ipanel_configs = array(
	'ID'=> 'INSPIREDISE_PANEL', 
	'menu'=> 
		array(
			'submenu' => false,
			'page_title' => __('_NSPIREDISE Control Panel', 'inspiredise'),
			'menu_title' => __('_NSPIREDISE Control Panel', 'inspiredise'),
			'capability' => 'manage_options',
			'menu_slug' => 'manage_theme_options',
			'icon_url' => IPANEL_URI . 'assets/img/panel-icon.png',
			'position' => 58
		),
	'rtl' => ( function_exists('is_rtl') && is_rtl() ),
	'tabs' => $ipanel_inspiredise_tabs,
	'fields' => $ipanel_inspiredise_option,
	'download_capability' => 'manage_options',
	'live_preview' => site_url()
);

$ipanel_theme_usage = new IPANEL( $ipanel_configs );
	