<?php
/**
 * @version    $Id$
 * @package    IT_Theme_Framework
 * @author     InnoThemes Team <support@innothemes.com>
 * @copyright  Copyright (C) 2012 InnoThemes.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.innothemes.com
 */

/**
 * Class for manipulating theme options.
 *
 * @package  IT_Theme_Framework
 * @since    1.0.0
 */
class IT_Theme_Options {
	/**
	 * Define default theme options.
	 *
	 * @var  array
	 */
	protected static $options = array(
		/**
		 * Type: Section
		 */
		'sections' => array(
			'getting_started' => array(
				'title' => '<span class="it-getting-started it-icon star has-tips" title="Getting Started"></span>',
			),
			'general' => array(
				'title' => '<span class="it-general it-icon cog has-tips" title="General"></span>',
			),
			'header' => array(
				'title'      => '<span class="it-header it-icon header has-tips" title="Header"></span>',
				'attributes' => array( 'target' => 'it-header' ),
			),
			'promo' => array(
				'title'      => '<span class="it-promo it-icon promo has-tips" title="Promo"></span>',
				'attributes' => array( 'target' => 'it-promo' ),
			),
			'main' => array(
				'title'      => '<span class="it-main it-icon main has-tips" title="Main"></span>',
				'attributes' => array( 'target' => 'it-content' ),
			),
			'bottom' => array(
				'title'      => '<span class="it-bottom it-icon bottom has-tips" title="Bottom"></span>',
				'attributes' => array( 'target' => 'it-bottom' ),
			),
			'footer' => array(
				'title'      => '<span class="it-footer it-icon footer has-tips" title="Footer"></span>',
				'attributes' => array( 'target' => 'it-footer' ),
			),
			'extra' => array(
				'title' => '<span class="it-extras it-icon extra has-tips" title="Extra"></span>',
			),
		),

		/**
		 * Type: Fieldset
		 */
		'fieldsets' => array(
			/**
			 * Section: Elements
			 */
			'general' => array(
				'title'             => 'General',
				'section_id'        => 'general',
				'accordion_toggler' => true,
			),

			/**
			 * Section: Header
			 */
			'header' => array(
				'title'             => 'Header',
				'section_id'        => 'header',
				'accordion_toggler' => true,
				'state_switcher'    => true,
			),

			/**
			 * Section: Promo
			 */
			'promo' => array(
				'title'             => 'Promo',
				'section_id'        => 'promo',
				'accordion_toggler' => true,
				'state_switcher'    => true,
			),

			/**
			 * Section: Main
			 */
			'main' => array(
				'title'             => 'Main',
				'section_id'        => 'main',
				'accordion_toggler' => true,
			),

			/**
			 * Section: Bottom
			 */
			'bottom' => array(
				'title'             => 'Bottom',
				'section_id'        => 'bottom',
				'accordion_toggler' => true,
				'state_switcher'    => true,
			),

			/**
			 * Section: Footer
			 */
			'footer' => array(
				'title'             => 'Footer',
				'section_id'        => 'footer',
				'accordion_toggler' => true,
				'state_switcher'    => true,
			),

			/**
			 * Section: Extra
			 */
			'extra' => array(
				'title'             => 'Extra',
				'section_id'        => 'extra',
				'accordion_toggler' => true,
			)
		),

		/**
		 * Type: Accordion
		 */
		'accordions' => array(
			/**
			 * Section: General
			 * Fieldset: General
			 */
			'general_styling' => array(
				'title'       => 'General',
				'section_id'  => 'general',
				'fieldset_id' => 'general',
			),

			'general_system' => array(
				'title'       => 'System',
				'section_id'  => 'general',
				'fieldset_id' => 'general',
			),

			/**
			 * Section: Header
			 * Fieldset: Header
			 */
			'header_styling' => array(
				'title'       => 'General',
				'section_id'  => 'header',
				'fieldset_id' => 'header',
			),

			'header_logo' => array(
				'title'       => 'Logo',
				'section_id'  => 'header',
				'fieldset_id' => 'header',
			),

			'header_menu' => array(
				'title'       => 'Menu',
				'section_id'  => 'header',
				'fieldset_id' => 'header',
			),

			'header_others' => array(
				'title'       => 'Others',
				'section_id'  => 'header',
				'fieldset_id' => 'header',
			),

			/**
			 * Section: Promo
			 * Fieldset: Promo
			 */
			'promo_styling' => array(
				'title'       => 'General',
				'section_id'  => 'promo',
				'fieldset_id' => 'promo',
			),

			'promo_content' => array(
				'title'       => 'Content',
				'section_id'  => 'promo',
				'fieldset_id' => 'promo',
			),

			/**
			 * Section: Main
			 * Fieldset: Main
			 */
			'main_styling' => array(
				'title'       => 'General',
				'section_id'  => 'main',
				'fieldset_id' => 'main',
			),

			'main_blog' => array(
				'title'       => 'Blog',
				'section_id'  => 'main',
				'fieldset_id' => 'main',
			),

			'main_single_post' => array(
				'title'       => 'Single Post',
				'section_id'  => 'main',
				'fieldset_id' => 'main',
			),

			'main_page' => array(
				'title'       => 'Page',
				'section_id'  => 'main',
				'fieldset_id' => 'main',
			),

			/**
			 * Section: Bottom
			 * Fieldset: Bottom
			 */
			'bottom_styling' => array(
				'title'       => 'General',
				'section_id'  => 'bottom',
				'fieldset_id' => 'bottom',
			),

			'bottom_content' => array(
				'title'       => 'Content',
				'section_id'  => 'bottom',
				'fieldset_id' => 'bottom',
			),

			/**
			 * Section: Footer
			 * Fieldset: Footer
			 */
			'footer_styling' => array(
				'title'       => 'General',
				'section_id'  => 'footer',
				'fieldset_id' => 'footer',
			),

			'footer_content' => array(
				'title'       => 'Content',
				'section_id'  => 'footer',
				'fieldset_id' => 'footer',
			),

			/**
			 * Section: Extra
			 * Fieldset: Extra
			 */
			'extra_corner_pagepeel' => array(
				'title'       => 'Corner Pagepeel',
				'section_id'  => 'extra',
				'fieldset_id' => 'extra',
			),

			'extra_side_tabs' => array(
				'title'       => 'Side Tabs',
				'section_id'  => 'extra',
				'fieldset_id' => 'extra',
			),

			'extra_coming_soon_page' => array(
				'title'       => 'Coming Soon Page',
				'section_id'  => 'extra',
				'fieldset_id' => 'extra',
			),

			'extra_404_page' => array(
				'title'       => '404 Page',
				'section_id'  => 'extra',
				'fieldset_id' => 'extra',
			),

			'extra_login_page' => array(
				'title'       => 'Login Page',
				'section_id'  => 'extra',
				'fieldset_id' => 'extra',
			)
		),

		/**
		 * Type: Field
		 */
		'fields' => array(
			/**
			 * Section: General
			 * Fieldset: General
			 * Accordion: Styling
			 */
			'profile' => array(
				'type' => 'radio-image',
				'label' => 'Color Scheme',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'red'     => array(
						'label' => 'Red',
						'image' => 'assets/innothemes/images/icons/red.png',
					),
					'blue'     => array(
						'label' => 'Blue',
						'image' => 'assets/innothemes/images/icons/blue.png',
					),
					'green'     => array(
						'label' => 'Green',
						'image' => 'assets/innothemes/images/icons/green.png',
					),
					'purple'     => array(
						'label' => 'Purple',
						'image' => 'assets/innothemes/images/icons/purple.png',
					),
					'yellow'     => array(
						'label' => 'Yellow',
						'image' => 'assets/innothemes/images/icons/yellow.png',
					),
				),
				'default' => 'red',
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'responsive_layout' => array(
				'type' => 'checkbox-image',
				'label' => 'Responsive Options',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'smartphone' => array(
						'label'    => 'Phone (< 480px)',
						'use_icon' => 'it-icon-smartphone',
					),
					'tablet' => array(
						'label'    => 'Tablets (480px - 960px)',
						'use_icon' => 'it-icon-tablet',
					),
				),
				'default' => array( 'smartphone', 'tablet' ),
				'use_icon' => true,
				'inline' => false,
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_layout' => array(
				'type' => 'radio-image',
				'label' => 'Page Layout',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'boxed' => array(
						'label'   => 'Boxed',
						'image'   => 'assets/innothemes/images/icons/boxed.png',
						'onclick' => '_IT_.TogglePageLayout(this);',
					),
					'full_width' => array(
						'label'   => 'Full Width',
						'image'   => 'assets/innothemes/images/icons/fullwidth.png',
						'onclick' => '_IT_.TogglePageLayout(this, true);',
					)
				),
				'default' => 'boxed',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_background_type' => array(
				'type' => 'select',
				'label' => 'Background Type',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'none'           => 'None',
					'solid_color'    => 'Solid Color',
					'gradient_color' => 'Gradient Color',
					'pattern'        => 'Pattern',
					'image'          => 'Image',
				),
				'attributes' => array(
					'onchange' => '_IT_.ToggleBackgroundType(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'none',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_background_solid_color' => array(
				'type' => 'color-picker',
				'label' => 'Solid Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => '#ffffff',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_background_gradient_color' => array(
				'type' => 'gradient-picker',
				'label' => 'Gradient Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => array(
					'raw' => '0% #FFFFFF,100% #000000',
					'css' => 'background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZGllbnQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojRkZGRkZGOyIgLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDA7IiAvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IGZpbGw9InVybCgjZ3JhZGllbnQpIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIiAvPjwvc3ZnPg==);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#FFFFFF),color-stop(100%, #000000));background:-moz-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-webkit-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-o-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-ms-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:linear-gradient(top,#FFFFFF 0%,#000000 100%);',
				),
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_background_pattern' => array(
				'type' => 'media-selector',
				'label' => 'Pattern File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_background_pattern_repeat' => array(
				'type' => 'radio-image',
				'label' => 'Pattern Repeat',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'repeat-x'  => array(
						'label' => 'Repeat x',
						'image' => 'assets/innothemes/images/icons/repeatx.png',
					),
					'repeat-y'  => array(
						'label' => 'Repeat y',
						'image' => 'assets/innothemes/images/icons/repeaty.png',
					),
					'repeat'  => array(
						'label' => 'Repeat',
						'image' => 'assets/innothemes/images/icons/repeat.png',
					),
				),
				'default' => 'repeat',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_background_image' => array(
				'type' => 'media-selector',
				'label' => 'Image File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_background_image_stretch' => array(
				'type' => 'radio-image',
				'label' => 'Image Stretch',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'disable' => array(
						'label' => 'Disable',
						'image' => 'assets/innothemes/images/icons/disable.png',
					),
					'full' => array(
						'label' => 'Full',
						'image' => 'assets/innothemes/images/icons/full.png',
					),
					'contain' => array(
						'label' => 'Contain',
						'image' => 'assets/innothemes/images/icons/contain.png',
					),
					'cover' => array(
						'label' => 'Cover',
						'image' => 'assets/innothemes/images/icons/cover.png',
					),
				),
				'default' => 'disable',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_background_image_position' => array(
				'type' => 'radio-image',
				'label' => 'Image Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'top_left' => array(
						'label' => 'Top Left',
						'image' => 'assets/innothemes/images/icons/top-left.png',
					),
					'top_center' => array(
						'label' => 'Top Center',
						'image' => 'assets/innothemes/images/icons/top-center.png',
					),
					'top_right' => array(
						'label' => 'Top Right',
						'image' => 'assets/innothemes/images/icons/top-right.png',
					),
					'center_left' => array(
						'label' => 'Middle Left',
						'image' => 'assets/innothemes/images/icons/middle-left.png',
					),
					'center_center' => array(
						'label' => 'Middle Center',
						'image' => 'assets/innothemes/images/icons/middle-center.png',
					),
					'center_right' => array(
						'label' => 'Middle Right',
						'image' => 'assets/innothemes/images/icons/middle-right.png',
					),
					'bottom_left' => array(
						'label' => 'Bottom Left',
						'image' => 'assets/innothemes/images/icons/bottom-left.png',
					),
					'bottom_center' => array(
						'label' => 'Bottom Center',
						'image' => 'assets/innothemes/images/icons/bottom-center.png',
					),
					'bottom_right' => array(
						'label' => 'Bottom Right',
						'image' => 'assets/innothemes/images/icons/bottom-right.png',
					)
				),
				'image_per_row' => 3,
				'default' => 'center_center',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'page_background_image_scroll' => array(
				'type' => 'radio',
				'label' => 'Fixed Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '0',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'heading_font_face' => array(
				'type' => 'typography',
				'label' => 'Heading Font',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-face' ),
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			'body_font_face' => array(
				'type' => 'typography',
				'label' => 'Body Font',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-face' ),
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_styling',
			),

			/**
			 * Section: General
			 * Fieldset: General
			 * Accordion: System
			 */
			'icon_favicon' => array(
				'type' => 'media-selector',
				'label' => 'Favicon',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_system',
			),

			'apple_icon' => array(
				'type' => 'media-selector',
				'label' => 'Apple Icon',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_system',
			),

			'google_analytics_id' => array(
				'type' => 'text',
				'label' => 'Google Analytics ID',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_system',
			),

			'code_at_end_of_head' => array(
				'type' => 'textarea',
				'label' => 'Code before &lt;/head&gt;',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_system',
			),

			'code_at_end_of_body' => array(
				'type' => 'textarea',
				'label' => 'Code before &lt;/body&gt;',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_system',
			),

			'assets_compression' => array(
				'type' => 'checkbox',
				'label' => 'Compression',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'js'  => 'JS',
					'css' => 'CSS',
				),
				'default' => array( 'css' ),
				'enable_profile' => true,
				'section_id' => 'general',
				'fieldset_id' => 'general',
				'accordion_id' => 'general_system',
			),

			/**
			 * Section: Header
			 * Fieldset: Header
			 * Accordion: Styling
			 */
			'header' => array(
				'type' => 'hidden',
				'desc' => 'Whether to show header in frontend or not?',
				'default' => '1',
				'attributes' => array( 'class' => 'it-form-state' ),
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
			),

			'sticky_header' => array(
				'type' => 'radio',
				'label' => 'Stick to Top',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '0',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			'header_background_type' => array(
				'type' => 'select',
				'label' => 'Background Type',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'none'           => 'None',
					'solid_color'    => 'Solid Color',
					'gradient_color' => 'Gradient Color',
					'pattern'        => 'Pattern',
					'image'          => 'Image',
				),
				'attributes' => array(
					'onchange' => '_IT_.ToggleBackgroundType(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'solid_color',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			'header_background_solid_color' => array(
				'type' => 'color-picker',
				'label' => 'Solid Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => '#ffffff',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			'header_background_gradient_color' => array(
				'type' => 'gradient-picker',
				'label' => 'Gradient Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => array(
					'raw' => '0% #FFFFFF,100% #000000',
					'css' => 'background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZGllbnQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojRkZGRkZGOyIgLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDA7IiAvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IGZpbGw9InVybCgjZ3JhZGllbnQpIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIiAvPjwvc3ZnPg==);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#FFFFFF),color-stop(100%,#000000));background:-moz-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-webkit-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-o-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-ms-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:linear-gradient(top,#FFFFFF 0%,#000000 100%);',
				),
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			'header_background_pattern' => array(
				'type' => 'media-selector',
				'label' => 'Pattern File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			'header_background_pattern_repeat' => array(
				'type' => 'radio-image',
				'label' => 'Pattern Repeat',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'repeat-x'  => array(
						'label' => 'Repeat x',
						'image' => 'assets/innothemes/images/icons/repeatx.png',
					),
					'repeat-y'  => array(
						'label' => 'Repeat y',
						'image' => 'assets/innothemes/images/icons/repeaty.png',
					),
					'repeat'  => array(
						'label' => 'Repeat',
						'image' => 'assets/innothemes/images/icons/repeat.png',
					),
				),
				'default' => 'repeat',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			'header_background_image' => array(
				'type' => 'media-selector',
				'label' => 'Image File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			'header_background_image_stretch' => array(
				'type' => 'radio-image',
				'label' => 'Image Stretch',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'disable' => array(
						'label' => 'Disable',
						'image' => 'assets/innothemes/images/icons/disable.png',
					),
					'full' => array(
						'label' => 'Full',
						'image' => 'assets/innothemes/images/icons/full.png',
					),
					'contain' => array(
						'label' => 'Contain',
						'image' => 'assets/innothemes/images/icons/contain.png',
					),
					'cover' => array(
						'label' => 'Cover',
						'image' => 'assets/innothemes/images/icons/cover.png',
					),
				),
				'default' => 'disable',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			'header_background_image_position' => array(
				'type' => 'radio-image',
				'label' => 'Image Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'top_left' => array(
						'label' => 'Top Left',
						'image' => 'assets/innothemes/images/icons/top-left.png',
					),
					'top_center' => array(
						'label' => 'Top Center',
						'image' => 'assets/innothemes/images/icons/top-center.png',
					),
					'top_right' => array(
						'label' => 'Top Right',
						'image' => 'assets/innothemes/images/icons/top-right.png',
					),
					'center_left' => array(
						'label' => 'Middle Left',
						'image' => 'assets/innothemes/images/icons/middle-left.png',
					),
					'center_center' => array(
						'label' => 'Middle Center',
						'image' => 'assets/innothemes/images/icons/middle-center.png',
					),
					'center_right' => array(
						'label' => 'Middle Right',
						'image' => 'assets/innothemes/images/icons/middle-right.png',
					),
					'bottom_left' => array(
						'label' => 'Bottom Left',
						'image' => 'assets/innothemes/images/icons/bottom-left.png',
					),
					'bottom_center' => array(
						'label' => 'Bottom Center',
						'image' => 'assets/innothemes/images/icons/bottom-center.png',
					),
					'bottom_right' => array(
						'label' => 'Bottom Right',
						'image' => 'assets/innothemes/images/icons/bottom-right.png',
					)
				),
				'image_per_row' => 3,
				'default' => 'center_center',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			'header_background_image_scroll' => array(
				'type' => 'radio',
				'label' => 'Fixed Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '0',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_styling',
			),

			/**
			 * Section: Header
			 * Fieldset: Header
			 * Accordion: Logo
			 */
			'logo_image' => array(
				'type' => 'media-selector',
				'label' => 'Logo Image',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_logo',
			),

			'logo_image_retina' => array(
				'type' => 'media-selector',
				'label' => 'Logo Image ( Retina )',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_logo',
			),

			'logo_image_responsive' => array(
				'type' => 'media-selector',
				'label' => 'Logo Image ( Responsive )',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_logo',
			),

			/**
			 * Section: Header
			 * Fieldset: Header
			 * Accordion: Menu
			 */
			'top_menu' => array(
				'type' => 'menu-selector',
				'label' => 'Top Menu',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'placeholder' => '- Select a Menu -',
				'attributes' => array(
					'onchange' => '_IT_.ToggleMenuAttributes(this, "top_menu");',
				),
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_menu',
			),

			'top_menu_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Top Menu Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 14,
					'font-unit'    => 'px',
					'font-display' => 'normal',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_menu',
			),

			'main_menu' => array(
				'type' => 'menu-selector',
				'label' => 'Main Menu',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'placeholder' => '- Select a Menu -',
				'attributes' => array(
					'onchange' => '_IT_.ToggleMenuAttributes(this, "main_menu");',
				),
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_menu',
			),

			'main_menu_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Main Menu Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 14,
					'font-unit'    => 'px',
					'font-display' => 'normal',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_menu',
			),

			'sub_menu_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Sub Menu Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 14,
					'font-unit'    => 'px',
					'font-display' => 'normal',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_menu',
			),

			'responsive_menu_type' => array(
				'type' => 'radio',
				'label' => 'Responsive Menu Type',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'simple'   => 'Simple',
					'advanced' => 'Advanced',
				),
				'default' => 'simple',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_menu',
			),

			/**
			 * Section: Header
			 * Fieldset: Header
			 * Accordion: Others
			 */
			'search_box' => array(
				'type' => 'radio',
				'label' => 'Show Search Box',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => array(
						'label' => 'Yes',
						'onclick' => '_IT_.ToggleNextSibling(this, true);',
					),
					'0' => array(
						'label' => 'No',
						'onclick' => '_IT_.ToggleNextSibling(this);',
					)
				),
				'default' => '0',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_others',
			),

			'search_box_text' => array(
				'type' => 'text',
				'label' => 'Search Text',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => 'Search...',
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_others',
			),

			'header_social_icons' => array(
				'type' => 'social-channels',
				'label' => 'Social Icons',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'social_channels' => array(
					'facebook' => array(
						'label'       => 'Facebook',
						'placeholder' => 'http://www.facebook.com/your_user_name',
						'link'        => 'http://www.facebook.com/innothemes',
						'default'     => 'checked',
					),
					'twitter' => array(
						'label'       => 'Twitter',
						'placeholder' => 'http://www.twitter.com/your_user_name',
						'link'        => 'http://www.twitter.com/innothemes',
						'default'     => 'checked',
					),
					'youtube' => array(
						'label'       => 'YouTube',
						'placeholder' => 'http://www.youtube.com/your_user_name',
						'link'        => 'http://www.youtube.com/innothemes',
						'default'     => 'checked',
					)
				),
				'default' => array(
					'facebook' => 1,
					'twitter'  => 1,
					'youtube'  => 1,
				),
				'enable_profile' => true,
				'section_id' => 'header',
				'fieldset_id' => 'header',
				'accordion_id' => 'header_others',
			),

			/**
			 * Section: Promo
			 * Fieldset: Promo
			 * Accordion: Styling
			 */
			'promo' => array(
				'type' => 'hidden',
				'desc' => 'Whether to show promo area in frontend or not?',
				'default' => '1',
				'attributes' => array( 'class' => 'it-form-state' ),
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
			),

			'promo_background_type' => array(
				'type' => 'select',
				'label' => 'Background Type',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'none'           => 'None',
					'solid_color'    => 'Solid Color',
					'gradient_color' => 'Gradient Color',
					'pattern'        => 'Pattern',
					'image'          => 'Image',
				),
				'attributes' => array(
					'onchange' => '_IT_.ToggleBackgroundType(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'none',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_background_solid_color' => array(
				'type' => 'color-picker',
				'label' => 'Solid Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => '#ffffff',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_background_gradient_color' => array(
				'type' => 'gradient-picker',
				'label' => 'Gradient Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => array(
					'raw' => '0% #FFFFFF,100% #000000',
					'css' => 'background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZGllbnQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojRkZGRkZGOyIgLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDA7IiAvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IGZpbGw9InVybCgjZ3JhZGllbnQpIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIiAvPjwvc3ZnPg==);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#FFFFFF),color-stop(100%, #000000));background:-moz-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-webkit-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-o-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-ms-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:linear-gradient(top,#FFFFFF 0%,#000000 100%);',
				),
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_background_pattern' => array(
				'type' => 'media-selector',
				'label' => 'Pattern File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_background_pattern_repeat' => array(
				'type' => 'radio-image',
				'label' => 'Pattern Repeat',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'repeat-x'  => array(
						'label' => 'Repeat x',
						'image' => 'assets/innothemes/images/icons/repeatx.png',
					),
					'repeat-y'  => array(
						'label' => 'Repeat y',
						'image' => 'assets/innothemes/images/icons/repeaty.png',
					),
					'repeat'  => array(
						'label' => 'Repeat',
						'image' => 'assets/innothemes/images/icons/repeat.png',
					),
				),
				'default' => 'repeat',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_background_image' => array(
				'type' => 'media-selector',
				'label' => 'Image File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_background_image_stretch' => array(
				'type' => 'radio-image',
				'label' => 'Image Stretch',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'disable' => array(
						'label' => 'Disable',
						'image' => 'assets/innothemes/images/icons/disable.png',
					),
					'full' => array(
						'label' => 'Full',
						'image' => 'assets/innothemes/images/icons/full.png',
					),
					'contain' => array(
						'label' => 'Contain',
						'image' => 'assets/innothemes/images/icons/contain.png',
					),
					'cover' => array(
						'label' => 'Cover',
						'image' => 'assets/innothemes/images/icons/cover.png',
					),
				),
				'default' => 'disable',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_background_image_position' => array(
				'type' => 'radio-image',
				'label' => 'Image Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'top_left' => array(
						'label' => 'Top Left',
						'image' => 'assets/innothemes/images/icons/top-left.png',
					),
					'top_center' => array(
						'label' => 'Top Center',
						'image' => 'assets/innothemes/images/icons/top-center.png',
					),
					'top_right' => array(
						'label' => 'Top Right',
						'image' => 'assets/innothemes/images/icons/top-right.png',
					),
					'center_left' => array(
						'label' => 'Middle Left',
						'image' => 'assets/innothemes/images/icons/middle-left.png',
					),
					'center_center' => array(
						'label' => 'Middle Center',
						'image' => 'assets/innothemes/images/icons/middle-center.png',
					),
					'center_right' => array(
						'label' => 'Middle Right',
						'image' => 'assets/innothemes/images/icons/middle-right.png',
					),
					'bottom_left' => array(
						'label' => 'Bottom Left',
						'image' => 'assets/innothemes/images/icons/bottom-left.png',
					),
					'bottom_center' => array(
						'label' => 'Bottom Center',
						'image' => 'assets/innothemes/images/icons/bottom-center.png',
					),
					'bottom_right' => array(
						'label' => 'Bottom Right',
						'image' => 'assets/innothemes/images/icons/bottom-right.png',
					)
				),
				'image_per_row' => 3,
				'default' => 'center_center',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_background_image_scroll' => array(
				'type' => 'radio',
				'label' => 'Fixed Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '0',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_heading_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Heading Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 16,
					'font-unit'    => 'px',
					'font-display' => 'bold',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			'promo_body_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Body Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 16,
					'font-unit'    => 'px',
					'font-display' => 'bold',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_styling',
			),

			/**
			 * Section: Promo
			 * Fieldset: Promo
			 * Accordion: Content
			 */
			'promo_content' => array(
				'type' => 'select',
				'label' => 'Content',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'page_title' => 'Page Information',
					'sidebars' => 'Sidebars',
				),
				'attributes' => array(
					'onchange' => '_IT_.SwitchPromoContent(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'page_title',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_content',
			),

			'promo_show_excerpt' => array(
				'type' => 'radio',
				'label' => 'Show Excerpt',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '1',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_content',
			),

			'breadcrumb' => array(
				'type' => 'radio',
				'label' => 'Show Breadcrumb',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => array(
						'label' => 'Yes',
						'onclick' => '_IT_.ToggleNextSibling(this, true);',
					),
					'0' => array(
						'label' => 'No',
						'onclick' => '_IT_.ToggleNextSibling(this);',
					)
				),
				'default' => '1',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_content',
			),

			'breadcrumb_prefix' => array(
				'type' => 'text',
				'label' => 'Breadcrumb Prefix',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => 'You are here:',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_content',
			),

			'promo_sidebar_layout' => array(
				'type' => 'select',
				'label' => 'Sidebar Layout',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'promo-1'                         => '1 Column',
					'promo-1,promo-2'                 => '2 Columns',
					'promo-1,promo-2,promo-3'         => '3 Columns',
					'promo-1,promo-2,promo-3,promo-4' => '4 Columns',
				),
				'attributes' => array(
					'onchange' => '_IT_.ResetColumns(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'promo-1',
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_content',
			),

			'promo_sidebar_settings' => array(
				'type' => 'column-settings',
				'label' => 'Sidebar Settings',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'promo-1' => 'Promo 1',
					'promo-2' => 'Promo 2',
					'promo-3' => 'Promo 3',
					'promo-4' => 'Promo 4',
				),
				'default' => array(
					'promo-1' => 'col-md-3',
					'promo-2' => 'col-md-3',
					'promo-3' => 'col-md-3',
					'promo-4' => 'col-md-3',
				),
				'enable_profile' => true,
				'section_id' => 'promo',
				'fieldset_id' => 'promo',
				'accordion_id' => 'promo_content',
			),

			/**
			 * Section: Main
			 * Fieldset: Main
			 * Accordion: Styling
			 */
			'heading_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Heading Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 16,
					'font-unit'    => 'px',
					'font-display' => 'normal',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_styling',
			),

			'body_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Body Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 14,
					'font-unit'    => 'px',
					'font-display' => 'normal',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_styling',
			),

			/**
			 * Section: Main
			 * Fieldset: Main
			 * Accordion: Blog
			 */
			'blog_sidebar_layout' => array(
				'type' => 'select',
				'label' => 'Sidebar Layout',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'main-content'                            => 'Center Only',
					'left-sidebar,main-content'               => 'Left + Center',
					'main-content,right-sidebar'              => 'Center + Right',
					'left-sidebar,main-content,right-sidebar' => 'Left + Center + Right',
					'left-sidebar,right-sidebar,main-content' => 'Left + Right + Center',
					'main-content,left-sidebar,right-sidebar' => 'Center + Left + Right',
				),
				'attributes' => array(
					'onchange' => '_IT_.ResetColumns(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'main-content',
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_blog',
			),

			'blog_sidebar_settings' => array(
				'type' => 'column-settings',
				'label' => 'Sidebar Settings',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'left-sidebar'  => 'Left',
					'main-content'  => 'Main',
					'right-sidebar' => 'Right',
				),
				'default' => array(
					'main-content'  => 'col-md-12',
				),
				'html_order' => array( 'main-content', 'left-sidebar', 'right-sidebar' ),
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_blog',
			),

			/**
			 * Section: Main
			 * Fieldset: Main
			 * Accordion: Single Post
			 */
			'single_post_sidebar_layout' => array(
				'type' => 'select',
				'label' => 'Sidebar Layout',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'main-content'                            => 'Center Only',
					'left-sidebar,main-content'               => 'Left + Center',
					'main-content,right-sidebar'              => 'Center + Right',
					'left-sidebar,main-content,right-sidebar' => 'Left + Center + Right',
					'left-sidebar,right-sidebar,main-content' => 'Left + Right + Center',
					'main-content,left-sidebar,right-sidebar' => 'Center + Left + Right',
				),
				'attributes' => array(
					'onchange' => '_IT_.ResetColumns(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'main-content',
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_single_post',
			),

			'single_post_sidebar_settings' => array(
				'type' => 'column-settings',
				'label' => 'Sidebar Settings',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'left-sidebar'  => 'Left',
					'main-content'  => 'Main',
					'right-sidebar' => 'Right',
				),
				'default' => array(
					'left-sidebar'  => 'col-md-3',
					'main-content'  => 'col-md-6',
					'right-sidebar' => 'col-md-3',
				),
				'html_order' => array( 'main-content', 'left-sidebar', 'right-sidebar' ),
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_single_post',
			),

			'single_post_social_sharing' => array(
				'type' => 'social-channels',
				'label' => 'Social Sharing',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'social_channels' => array(
					'facebook' => array(
						'label'       => 'Facebook',
						'placeholder' => 'http://www.facebook.com/your_user_name',
						'link'        => 'http://www.facebook.com/innothemes',
						'default'     => 'checked',
					),
					'twitter' => array(
						'label'       => 'Twitter',
						'placeholder' => 'http://www.twitter.com/your_user_name',
						'link'        => 'http://www.twitter.com/innothemes',
						'default'     => 'checked',
					),
					'youtube' => array(
						'label'       => 'YouTube',
						'placeholder' => 'http://www.youtube.com/your_user_name',
						'link'        => 'http://www.youtube.com/innothemes',
						'default'     => 'checked',
					)
				),
				'default' => array(
					'facebook' => 1,
					'twitter'  => 1,
					'youtube'  => 1,
				),
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_single_post',
			),

			'single_post_show_related' => array(
				'type' => 'radio',
				'label' => 'Show Related Posts',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '1',
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_single_post',
			),

			'single_post_show_author' => array(
				'type' => 'radio',
				'label' => 'Show Author Info',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '1',
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_single_post',
			),

			'single_post_show_comments' => array(
				'type' => 'radio',
				'label' => 'Show Comments',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '1',
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_single_post',
			),

			/**
			 * Section: Main
			 * Fieldset: Main
			 * Accordion: Page
			 */
			'page_sidebar_layout' => array(
				'type' => 'select',
				'label' => 'Sidebar Layout',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'main-content'                            => 'Center Only',
					'left-sidebar,main-content'               => 'Left + Center',
					'main-content,right-sidebar'              => 'Center + Right',
					'left-sidebar,main-content,right-sidebar' => 'Left + Center + Right',
					'left-sidebar,right-sidebar,main-content' => 'Left + Right + Center',
					'main-content,left-sidebar,right-sidebar' => 'Center + Left + Right',
				),
				'attributes' => array(
					'onchange' => '_IT_.ResetColumns(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'main-content',
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_page',
			),

			'page_sidebar_settings' => array(
				'type' => 'column-settings',
				'label' => 'Sidebar Settings',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'left-sidebar'  => 'Left',
					'main-content'  => 'Main',
					'right-sidebar' => 'Right',
				),
				'default' => array(
					'left-sidebar'  => 'col-md-3',
					'main-content'  => 'col-md-6',
					'right-sidebar' => 'col-md-3',
				),
				'html_order' => array( 'main-content', 'left-sidebar', 'right-sidebar' ),
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_page',
			),

			'page_show_comments' => array(
				'type' => 'radio',
				'label' => 'Show Comments',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '1',
				'enable_profile' => true,
				'section_id' => 'main',
				'fieldset_id' => 'main',
				'accordion_id' => 'main_page',
			),

			/**
			 * Section: Bottom
			 * Fieldset: Bottom
			 * Accordion: Styling
			 */
			'bottom' => array(
				'type' => 'hidden',
				'desc' => 'Whether to show bottom area in frontend or not?',
				'default' => '1',
				'attributes' => array( 'class' => 'it-form-state' ),
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
			),

			'bottom_background_type' => array(
				'type' => 'select',
				'label' => 'Background Type',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'none'           => 'None',
					'solid_color'    => 'Solid Color',
					'gradient_color' => 'Gradient Color',
					'pattern'        => 'Pattern',
					'image'          => 'Image',
				),
				'attributes' => array(
					'onchange' => '_IT_.ToggleBackgroundType(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'none',
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_background_solid_color' => array(
				'type' => 'color-picker',
				'label' => 'Solid Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => '#ffffff',
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_background_gradient_color' => array(
				'type' => 'gradient-picker',
				'label' => 'Gradient Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => array(
					'raw' => '0% #FFFFFF,100% #000000',
					'css' => 'background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZGllbnQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojRkZGRkZGOyIgLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDA7IiAvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IGZpbGw9InVybCgjZ3JhZGllbnQpIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIiAvPjwvc3ZnPg==);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#FFFFFF),color-stop(100%, #000000));background:-moz-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-webkit-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-o-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-ms-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:linear-gradient(top,#FFFFFF 0%,#000000 100%);',
				),
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_background_pattern' => array(
				'type' => 'media-selector',
				'label' => 'Pattern File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_background_pattern_repeat' => array(
				'type' => 'radio-image',
				'label' => 'Pattern Repeat',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'repeat-x'  => array(
						'label' => 'Repeat x',
						'image' => 'assets/innothemes/images/icons/repeatx.png',
					),
					'repeat-y'  => array(
						'label' => 'Repeat y',
						'image' => 'assets/innothemes/images/icons/repeaty.png',
					),
					'repeat'  => array(
						'label' => 'Repeat',
						'image' => 'assets/innothemes/images/icons/repeat.png',
					),
				),
				'default' => 'repeat',
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_background_image' => array(
				'type' => 'media-selector',
				'label' => 'Image File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_background_image_stretch' => array(
				'type' => 'radio-image',
				'label' => 'Image Stretch',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'disable' => array(
						'label' => 'Disable',
						'image' => 'assets/innothemes/images/icons/disable.png',
					),
					'full' => array(
						'label' => 'Full',
						'image' => 'assets/innothemes/images/icons/full.png',
					),
					'contain' => array(
						'label' => 'Contain',
						'image' => 'assets/innothemes/images/icons/contain.png',
					),
					'cover' => array(
						'label' => 'Cover',
						'image' => 'assets/innothemes/images/icons/cover.png',
					),
				),
				'default' => 'disable',
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_background_image_position' => array(
				'type' => 'radio-image',
				'label' => 'Image Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'top_left' => array(
						'label' => 'Top Left',
						'image' => 'assets/innothemes/images/icons/top-left.png',
					),
					'top_center' => array(
						'label' => 'Top Center',
						'image' => 'assets/innothemes/images/icons/top-center.png',
					),
					'top_right' => array(
						'label' => 'Top Right',
						'image' => 'assets/innothemes/images/icons/top-right.png',
					),
					'center_left' => array(
						'label' => 'Middle Left',
						'image' => 'assets/innothemes/images/icons/middle-left.png',
					),
					'center_center' => array(
						'label' => 'Middle Center',
						'image' => 'assets/innothemes/images/icons/middle-center.png',
					),
					'center_right' => array(
						'label' => 'Middle Right',
						'image' => 'assets/innothemes/images/icons/middle-right.png',
					),
					'bottom_left' => array(
						'label' => 'Bottom Left',
						'image' => 'assets/innothemes/images/icons/bottom-left.png',
					),
					'bottom_center' => array(
						'label' => 'Bottom Center',
						'image' => 'assets/innothemes/images/icons/bottom-center.png',
					),
					'bottom_right' => array(
						'label' => 'Bottom Right',
						'image' => 'assets/innothemes/images/icons/bottom-right.png',
					)
				),
				'image_per_row' => 3,
				'default' => 'center_center',
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_background_image_scroll' => array(
				'type' => 'radio',
				'label' => 'Fixed Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '0',
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_heading_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Heading Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 16,
					'font-unit'    => 'px',
					'font-display' => 'bold',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			'bottom_body_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Body Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 14,
					'font-unit'    => 'px',
					'font-display' => 'normal',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_styling',
			),

			/**
			 * Section: Bottom
			 * Fieldset: Bottom
			 * Accordion: Content
			 */
			'bottom_sidebar_layout' => array(
				'type' => 'select',
				'label' => 'Sidebar Layout',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'bottom-1'                            => '1 Column',
					'bottom-1,bottom-2'                   => '2 Columns',
					'bottom-1,bottom-2,bottom-3'          => '3 Columns',
					'bottom-1,bottom-2,bottom-3,bottom-4' => '4 Columns',
				),
				'attributes' => array(
					'onchange' => '_IT_.ResetColumns(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'bottom-1',
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_content',
			),

			'bottom_sidebar_settings' => array(
				'type' => 'column-settings',
				'label' => 'Sidebar Settings',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'bottom-1' => 'Bottom 1',
					'bottom-2' => 'Bottom 2',
					'bottom-3' => 'Bottom 3',
					'bottom-4' => 'Bottom 4',
				),
				'default' => array(
					'bottom-1' => 'col-md-3',
					'bottom-2' => 'col-md-3',
					'bottom-3' => 'col-md-3',
					'bottom-4' => 'col-md-3',
				),
				'enable_profile' => true,
				'section_id' => 'bottom',
				'fieldset_id' => 'bottom',
				'accordion_id' => 'bottom_content',
			),

			/**
			 * Section: Footer
			 * Fieldset: Footer
			 * Accordion: Styling
			 */
			'footer' => array(
				'type' => 'hidden',
				'desc' => 'Whether to show footer in frontend or not?',
				'default' => '1',
				'attributes' => array( 'class' => 'it-form-state' ),
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
			),

			'footer_background_type' => array(
				'type' => 'select',
				'label' => 'Background Type',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'none'           => 'None',
					'solid_color'    => 'Solid Color',
					'gradient_color' => 'Gradient Color',
					'pattern'        => 'Pattern',
					'image'          => 'Image',
				),
				'attributes' => array(
					'onchange' => '_IT_.ToggleBackgroundType(this, this.options[this.selectedIndex].value);',
				),
				'default' => 'none',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_background_solid_color' => array(
				'type' => 'color-picker',
				'label' => 'Solid Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => '#ffffff',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_background_gradient_color' => array(
				'type' => 'gradient-picker',
				'label' => 'Gradient Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => array(
					'raw' => '0% #FFFFFF,100% #000000',
					'css' => 'background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZGllbnQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdHlsZT0ic3RvcC1jb2xvcjojRkZGRkZGOyIgLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiMwMDAwMDA7IiAvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IGZpbGw9InVybCgjZ3JhZGllbnQpIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIiAvPjwvc3ZnPg==);background:-webkit-gradient(linear,left top,left footer,color-stop(0%,#FFFFFF),color-stop(100%, #000000));background:-moz-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-webkit-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-o-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:-ms-linear-gradient(top,#FFFFFF 0%,#000000 100%);background:linear-gradient(top,#FFFFFF 0%,#000000 100%);',
				),
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_background_pattern' => array(
				'type' => 'media-selector',
				'label' => 'Pattern File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_background_pattern_repeat' => array(
				'type' => 'radio-image',
				'label' => 'Pattern Repeat',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'repeat-x'  => array(
						'label' => 'Repeat x',
						'image' => 'assets/innothemes/images/icons/repeatx.png',
					),
					'repeat-y'  => array(
						'label' => 'Repeat y',
						'image' => 'assets/innothemes/images/icons/repeaty.png',
					),
					'repeat'  => array(
						'label' => 'Repeat',
						'image' => 'assets/innothemes/images/icons/repeat.png',
					),
				),
				'default' => 'repeat',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_background_image' => array(
				'type' => 'media-selector',
				'label' => 'Image File',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_background_image_stretch' => array(
				'type' => 'radio-image',
				'label' => 'Image Stretch',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'disable' => array(
						'label' => 'Disable',
						'image' => 'assets/innothemes/images/icons/disable.png',
					),
					'full' => array(
						'label' => 'Full',
						'image' => 'assets/innothemes/images/icons/full.png',
					),
					'contain' => array(
						'label' => 'Contain',
						'image' => 'assets/innothemes/images/icons/contain.png',
					),
					'cover' => array(
						'label' => 'Cover',
						'image' => 'assets/innothemes/images/icons/cover.png',
					),
				),
				'default' => 'disable',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_background_image_position' => array(
				'type' => 'radio-image',
				'label' => 'Image Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'top_left' => array(
						'label' => 'Top Left',
						'image' => 'assets/innothemes/images/icons/top-left.png',
					),
					'top_center' => array(
						'label' => 'Top Center',
						'image' => 'assets/innothemes/images/icons/top-center.png',
					),
					'top_right' => array(
						'label' => 'Top Right',
						'image' => 'assets/innothemes/images/icons/top-right.png',
					),
					'center_left' => array(
						'label' => 'Middle Left',
						'image' => 'assets/innothemes/images/icons/middle-left.png',
					),
					'center_center' => array(
						'label' => 'Middle Center',
						'image' => 'assets/innothemes/images/icons/middle-center.png',
					),
					'center_right' => array(
						'label' => 'Middle Right',
						'image' => 'assets/innothemes/images/icons/middle-right.png',
					),
					'bottom_left' => array(
						'label' => 'Bottom Left',
						'image' => 'assets/innothemes/images/icons/bottom-left.png',
					),
					'bottom_center' => array(
						'label' => 'Bottom Center',
						'image' => 'assets/innothemes/images/icons/bottom-center.png',
					),
					'bottom_right' => array(
						'label' => 'Bottom Right',
						'image' => 'assets/innothemes/images/icons/bottom-right.png',
					)
				),
				'image_per_row' => 3,
				'default' => 'center_center',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_background_image_scroll' => array(
				'type' => 'radio',
				'label' => 'Fixed Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '0',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_heading_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Heading Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 16,
					'font-unit'    => 'px',
					'font-display' => 'bold',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			'footer_body_font_attributes' => array(
				'type' => 'typography',
				'label' => 'Body Font Attributes',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array( 'font-size', 'font-display', 'text-color' ),
				'default' => array(
					'font-size'    => 14,
					'font-unit'    => 'px',
					'font-display' => 'normal',
					'text-color'   => '#222222',
				),
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_styling',
			),

			/**
			 * Section: Footer
			 * Fieldset: Footer
			 * Accordion: Content
			 */
			'copyright_text' => array(
				'type' => 'textarea',
				'label' => 'Copyright Text',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => 'Copyright 2012 innothemes | All Rights Reserved | Powered by <a href="http://wordpress.org">WordPress</a> | <a href="http://innothemes.com">innothemes.com</a>',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_content',
			),

			'footer_social_icons' => array(
				'type' => 'social-channels',
				'label' => 'Social Icons',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'social_channels' => array(
					'facebook' => array(
						'label'       => 'Facebook',
						'placeholder' => 'http://www.facebook.com/your_user_name',
						'link'        => 'http://www.facebook.com/innothemes',
						'default'     => 'checked',
					),
					'twitter' => array(
						'label'       => 'Twitter',
						'placeholder' => 'http://www.twitter.com/your_user_name',
						'link'        => 'http://www.twitter.com/innothemes',
						'default'     => 'checked',
					),
					'youtube' => array(
						'label'       => 'YouTube',
						'placeholder' => 'http://www.youtube.com/your_user_name',
						'link'        => 'http://www.youtube.com/innothemes',
						'default'     => 'checked',
					)
				),
				'default' => array(
					'facebook' => 1,
					'twitter'  => 1,
					'youtube'  => 1,
				),
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_content',
			),

			'footer_menu' => array(
				'type' => 'menu-selector',
				'label' => 'Menu',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'placeholder' => '- Select a Menu -',
				'enable_profile' => true,
				'section_id' => 'footer',
				'fieldset_id' => 'footer',
				'accordion_id' => 'footer_content',
			),

			/**
			 * Section: Extra
			 * Fieldset: Extra
			 * Accordion: Corner Pagepeel
			 */
			'corner_pagepeel_position' => array(
				'type' => 'select',
				'label' => 'Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'top_left'     => 'Top Left',
					'top_right'    => 'Top Right',
					'bottom_right' => 'Bottom Right',
					'bottom_left'  => 'Bottom Left',
				),
				'default' => 'bottom_right',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_corner_pagepeel',
			),

			'corner_pagepeel_image' => array(
				'type' => 'media-selector',
				'label' => 'Image',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_corner_pagepeel',
			),

			'corner_pagepeel_link' => array(
				'type' => 'text',
				'label' => 'Link',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_corner_pagepeel',
			),

			/**
			 * Section: Extra
			 * Fieldset: Extra
			 * Accordion: Side Tabs
			 */
			'side_tabs_position' => array(
				'type' => 'select',
				'label' => 'Position',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'top'    => 'Top',
					'right'  => 'Right',
					'bottom' => 'Bottom',
					'left'   => 'Left',
				),
				'default' => 'top',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_side_tabs',
			),

			'side_tabs_text' => array(
				'type' => 'text',
				'label' => 'Text',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_side_tabs',
			),

			'side_tabs_background_color' => array(
				'type' => 'color-picker',
				'label' => 'Background Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => '#ffffff',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_side_tabs',
			),

			'side_tabs_text_color' => array(
				'type' => 'color-picker',
				'label' => 'Text Color',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => '#ffffff',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_side_tabs',
			),

			/**
			 * Section: Extra
			 * Fieldset: Extra
			 * Accordion: Coming Soon Page
			 */
			'coming_soon_page' => array(
				'type' => 'radio',
				'label' => 'Offline',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '0',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_coming_soon_page',
			),

			'coming_soon_page_text' => array(
				'type' => 'textarea',
				'label' => 'Text',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => 'Our website is offline now, but we will be back soon.',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_coming_soon_page',
			),

			'coming_soon_page_timer' => array(
				'type' => 'radio',
				'label' => 'Show Timer',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '1',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_coming_soon_page',
			),

			'coming_soon_page_due_date' => array(
				'type' => 'date-picker',
				'label' => 'Set Timer',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_coming_soon_page',
			),

			/**
			 * Section: Extra
			 * Fieldset: Extra
			 * Accordion: 404 Page
			 */
			'404_page_text' => array(
				'type' => 'textarea',
				'label' => 'Text',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'default' => 'Oops, 404 Page Not Found',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_404_page',
			),

			'404_page_search_box' => array(
				'type' => 'radio',
				'label' => 'Show Search Box',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'choices' => array(
					'1' => 'Yes',
					'0' => 'No',
				),
				'default' => '1',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_404_page',
			),

			'404_page_menu' => array(
				'type' => 'menu-selector',
				'label' => 'Show Menu',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'placeholder' => '- Select a Menu -',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_404_page',
			),

			/**
			 * Section: Extra
			 * Fieldset: Extra
			 * Accordion: Login Page
			 */
			'login_page_logo' => array(
				'type' => 'media-selector',
				'label' => 'Login Page Logo',
				'desc' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
				'enable_profile' => true,
				'section_id' => 'extra',
				'fieldset_id' => 'extra',
				'accordion_id' => 'extra_login_page',
			)
		)
	);

	/**
	 * Theme options to be added.
	 *
	 * @var  array
	 */
	protected static $add = array();

	/**
	 * Theme options to be removed.
	 *
	 * @var  array
	 */
	protected static $remove = array();

	/**
	 * Theme options to be replaced.
	 *
	 * @var  array
	 */
	protected static $replace = array();

	/**
	 * Hook registration status.
	 *
	 * @var  array
	 */
	protected static $registered = array();

	/**
	 * Active profile.
	 *
	 * @var  string
	 */
	protected static $profile;

	/**
	 * Prepare theme options.
	 *
	 * @param   boolean  $raw  Whether return raw options array or processed one?
	 *
	 * @return  array
	 */
	public static function prepare( $raw = false ) {
		// Allow settings to be filtered before saving
		foreach ( array_keys( self::$options ) as $key ) {
			self::$options[ $key ] = apply_filters( "it_theme_options_{$key}", self::$options[ $key ] );
		}

		if ( $raw ) {
			// Translate all text in option declaration
			foreach ( self::$options as $type => & $defines ) {
				foreach ( $defines as $name => & $define ) {
					if ( isset( $define['title'] ) ) {
						$define['title'] = __( $define['title'], IT_THEME_TEXTDOMAIN );
					}

					if ( isset( $define['label'] ) ) {
						$define['label'] = __( $define['label'], IT_THEME_TEXTDOMAIN );
					}

					if ( isset( $define['choices'] ) ) {
						foreach ( $define['choices'] as $value => & $choice ) {
							if ( is_string( $choice ) ) {
								$choice = __( $choice, IT_THEME_TEXTDOMAIN );
							} elseif ( is_array( $choice ) && isset( $choice['label'] ) ) {
								$choice['label'] = __( $choice['label'], IT_THEME_TEXTDOMAIN );
							}
						}
					}
				}
			}

			return self::$options;
		} else {
			// Get values for theme options
			global $it_options;

			// Check if live preview should be produced
			if ( ! isset( $it_options ) && 'on' == @$_POST['wp_customize'] && '' != @$_POST['customized'] ) {
				$it_options = array();

				// Decode customized options
				$options = json_decode( preg_replace( '/"nav_menu_locations\[[^\]]+\]":\d+,/', '', stripcslashes( $_POST['customized'] ) ), true );

				// Get active profile
				if ( ! isset( self::$profile ) ) {
					self::$profile = isset( $options['profile'] ) ? $options['profile'] : self::$options['fields']['profile']['default'];
				}

				// Process non-profiled options
				$it_options['profile'] = self::$profile;

				if ( isset( $options['it_social_channels'] ) ) {
					$it_options['it_social_channels'] = $options['it_social_channels'];
				}

				// Process profiled options
				foreach ( $options as $key => $value ) {
					if ( preg_match( '/^([a-zA-Z0-9\-_]+)_' . self::$profile . '$/', $key, $match ) ) {
						$it_options[ $match[1] ] = $value;
					}
				}
			}

			if ( ! isset( $it_options ) ) {
				$it_options = array();

				// Get theme options
				foreach ( self::$options['fields'] as $key => $define ) {
					// Preset option id
					$option_id = $key;

					// Check if profile is enabled for this option
					if ( isset( $define['enable_profile'] ) && $define['enable_profile'] ) {
						// Get active profile
						isset( self::$profile ) || self::$profile = get_theme_mod( 'profile', self::$options['fields']['profile']['default'] );

						// Reset option id
						$option_id = "{$key}_" . self::$profile;

						// Reset default value
						if ( is_array( $define['enable_profile'] ) && isset( $define['enable_profile'][ self::$profile ] ) ) {
							$define['default'] = $define['enable_profile'][ self::$profile ];
						}
					}

					// Get option value
					$it_options[ $key ] = get_theme_mod( $option_id, isset( $define['default'] ) ? $define['default'] : null );

					// Get social channel configuration
					if ( 'social-channels' == $define['type'] && ! isset( $social_channels_setting_defined ) ) {
						// Get link definition for social channels
						$it_options['it_social_channels'] = get_theme_mod( 'it_social_channels', array() );

						$social_channels_setting_defined = true;
					}
				}

				// Register action to load options for individual page
				add_action( 'template_redirect', array( __CLASS__, 'get_page_options' ) );
			}

			return $it_options;
		}
	}

	/**
	 * Method to retrieve theme options for individual page.
	 *
	 * @return  array
	 */
	public static function get_page_options() {
		global $it_options;

		if ( is_page() || is_single() ) {
			global $post;

			// Get page options
			$page_options = get_post_meta( $post->ID, 'it_page_options', true );

			// Merge theme options with page options
			$it_options = array_merge( $it_options, $page_options );
		}

		return $it_options;
	}

	/**
	 * Render page options in a metabox.
	 *
	 * @param   WP_Post  $post  The object for the current post/page.
	 *
	 * @return  void
	 */
	public static function render_page_options( $post ) {
		// Register action to finalize form rendering
		add_action( 'it_post_render_form', array( __CLASS__, 'load_page_options_assets' ) );

		// Prepare theme and page options
		self::$options = self::prepare( true );
		$theme_options = self::prepare();
		$page_options  = get_post_meta( $post->ID, 'it_page_options', true );

		if ( is_array( $page_options ) ) {
			$theme_options = array_merge( $theme_options, $page_options );
		}

		foreach ( self::$options as $type => & $defines ) {
			switch ( $type ) {
				case 'sections' :
					foreach ( $defines as $k => & $define ) {
						if ( 'getting_started' == $k ) {
							unset( self::$options[ $type ][ $k ] );
						} else {
							$define['title'] = preg_replace( '/^.+title="([^"]+)".+$/', '\\1', $define['title'] );
						}
					}
				break;

				case 'fieldsets' :
					unset( self::$options[ $type ] );
				break;

				case 'accordions' :
				case 'fields' :
					foreach ( $defines as $k => & $define ) {
						unset( $define['fieldset_id'] );

						// Override profile option
						if ( 'fields' == $type ) {
							if ( 'profile' == $k ) {
								$define = array_merge(
									$define,
									array(
										'type' => 'form-state',
										'choices' => array(
											'enable'  => 'Use custom settings',
											'disable' => 'Use theme settings',
										),
										'default' => 'disable',
										'visible_button' => 1,
									)
								);
							}

							$define['name']  = "it_page_options[{$k}]";
							$define['value'] = $theme_options[ $k ];
						}
					}
				break;
			}
		}

		// Init form renderer
		$form = IT_Form::get_instance( 'it-theme-options', self::$options );

		// Render HTML form
		$form->render( 'horizontal', array( 'tabs', 'accordions' ) );
	}

	/**
	 * Load necessary assets for page options form.
	 *
	 * @return  void
	 */
	public static function load_page_options_assets() {
		IT_Init_Assets::load(
			array(
				// jQuery UI Dialog
				'jquery-ui-dialog', 'wp-jquery-ui-dialog-css',

				// Override WordPress's form style
				'it-page-admin-css', 'it-page-admin-js',
			)
		);
	}

	/**
	 * Save page options.
	 *
	 * @param   integer  $post_id  Post id.
	 *
	 * @return  mixed
	 */
	public static function update_page_options( $post_id ) {
		return ( @is_array( $_POST['it_page_options'] ) && count( $_POST['it_page_options'] ) ) ? $_POST['it_page_options'] : false;
	}

	/**
	 * Add new theme options.
	 *
	 * @param   string   $type     Type of setting ( either sections, tabs, accordions or settings ).
	 * @param   array    $setting  Setting declaration.
	 *
	 * @return  mixed
	 */
	public static function add( $type, $setting ) {
		// Schedule adding new theme options
		if ( ! isset( self::$registered[ $type ] ) ) {
			add_filter( "it_theme_options_{$type}", array( __CLASS__, "apply_filters_{$type}" ) );

			self::$registered[ $type ] = true;
		}

		self::$add[ $type ] = isset( self::$add[ $type ] ) ? array_merge( self::$add[ $type ], $setting ) : $setting;
	}

	/**
	 * Remove theme options.
	 *
	 * @param   string   $type     Type of setting ( either sections, tabs, accordions or settings ).
	 * @param   array    $setting  Setting id.
	 *
	 * @return  mixed
	 */
	public static function remove( $type, $setting ) {
		// Schedule removing theme options
		if ( ! isset( self::$registered[$type] ) ) {
			add_filter( "it_theme_options_{$type}", array( __CLASS__, "apply_filters_{$type}" ) );

			self::$registered[ $type ] = true;
		}

		self::$remove[ $type ] = isset( self::$remove[ $type ] ) ? array_merge( self::$remove[ $type ], $setting ) : $setting;
	}

	/**
	 * Replace theme options.
	 *
	 * @param   string   $type     Type of setting ( either sections, tabs, accordions or settings ).
	 * @param   array    $setting  Setting declaration.
	 *
	 * @return  mixed
	 */
	public static function replace( $type, $setting ) {
		// Schedule replacing theme options
		if ( ! isset( self::$registered[$type] ) ) {
			add_filter( "it_theme_options_{$type}", array( __CLASS__, "apply_filters_{$type}" ) );

			self::$registered[ $type ] = true;
		}

		self::$replace[ $type ] = isset( self::$replace[ $type ] ) ? array_merge( self::$replace[ $type ], $setting ) : $setting;
	}

	/**
	 * Apply theme options manipulation.
	 *
	 * @param   string  $type      Type of setting ( either sections, tabs, accordions or settings ).
	 * @param   array   $settings  Current settings.
	 *
	 * @return  void
	 */
	public static function apply_filters( $type, $settings ) {
		// Add new theme options
		if ( isset( self::$add[ $type ] ) ) {
			$settings = array_merge( $settings, self::$add[ $type ] );
		}

		// Remove and/or replace theme options
		if ( isset( self::$remove[$type] ) || isset( self::$replace[$type] ) ) {
			foreach ( $settings as $key => $value ) {
				// Remove theme options
				if ( isset( self::$remove[ $type ] ) && in_array( $key, self::$remove[ $type ] ) ) {
					unset( $settings[ $key ] );
				}
				// Replace theme options
				elseif ( isset( self::$replace[ $type ] ) && array_key_exists( $key, self::$replace[ $type ] ) ) {
					$settings[ $key ] = array_merge( $settings[ $key ], self::$replace[ $type ][ $key ] );
				}
			}
		}

		return $settings;
	}

	/**
	 * Handle theme option manipulation.
	 *
	 * @param   string  $name  Name of function to be called.
	 * @param   array   $args  Arguments to be passed.
	 *
	 * @return  mixed
	 */
	public static function __callStatic( $name, $args ) {
		if ( preg_match( '/^(add|remove|replace|apply_filters)_(.+)$/', $name, $match ) ) {
			// Update arguments
			array_unshift( $args, $match[2] );

			switch ( $match[1] ) {
				case 'add':
				case 'remove':
				case 'replace':
					return call_user_func_array( array( __CLASS__, $match[1] ), $args );
				break;

				case 'apply_filters':
					return call_user_func_array( array( __CLASS__, 'apply_filters' ), $args );
				break;
			}
		}
	}
}
