<?php
/**
 * Catch Flames Customizer/Theme Options
 *
 * @package Catch Themes
 * @subpackage Catch Flames
 * @since Catch Flames 2.7
 */

/**
 * Implements Catch Flames theme options into Theme Customizer.
 *
 * @param $wp_customize Theme Customizer object
 * @return void
 *
 * @since Catch Flames 2.7
 */
function catchflames_customize_register( $wp_customize ) {
	global $catchflames_options_settings, $catchflames_options_defaults;

    $options = $catchflames_options_settings;

	$defaults = $catchflames_options_defaults;

	//Custom Controls
	require get_template_directory() . '/inc/panel/customizer/customizer-custom-controls.php';

	$theme_slug = 'catchflames_';

	$settings_page_tabs = array(
		'theme_options' => array(
			'id' 			=> 'theme_options',
			'title' 		=> __( 'Theme Options', 'catch-flames' ),
			'description' 	=> __( 'Basic theme Options', 'catch-flames' ),
			'sections' 		=> array(
				'disable_responsive' => array(
					'id' 				=> 'disable_responsive',
					'title' 			=> __( 'Responsive Design', 'catch-flames' ),
					'description' 		=> '',
				),
				'favicon' => array(
					'id' 				=> 'favicon',
					'title' 			=> __( 'Favicon', 'catch-flames' ),
					'description' 		=> '',
					'active_callback'	=> 'catchflames_is_site_icon_active',
				),
				'web_clip_icon_options' => array(
					'id' 				=> 'web_clip_icon_options',
					'title' 			=> __( 'Webclip Icon Options', 'catch-flames' ),
					'description' 		=> __( 'Web Clip Icon for Apple devices. Recommended Size - Width 144px and Height 144px height, which will support High Resolution Devices like iPad Retina', 'catch-flames' ),
					'active_callback'	=> 'catchflames_is_site_icon_active',
				),
				'fixed_header_top_options' => array(
					'id' 			=> 'fixed_header_top_options',
					'title' 		=> __( 'Fixed Header Top Options', 'catch-flames' ),
					'description' 		=> __( 'Fixed Header Top Menu : You need to create custom menu and then assign menu location as Featured Header Top Menu. For more go to Menu Option', 'catch-flames' ),
				),
				'header_options' => array(
					'id' 			=> 'header_options',
					'title' 		=> __( 'Header Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'header_right_options' => array(
					'id' 			=> 'header_right_options',
					'title' 		=> __( 'Header Right Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'search_text_settings' => array(
					'id' 			=> 'search_text_settings',
					'title' 		=> __( 'Search Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'typography' => array(
					'id' 			=> 'typography',
					'title' 		=> __( 'Font Family Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'typography_size' => array(
					'id' 			=> 'typography_size',
					'title' 		=> __( 'Font Size Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'layout_options' => array(
					'id' 			=> 'layout_options',
					'title' 		=> __( 'Layout Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'homepage_settings' => array(
					'id' 			=> 'homepage_settings',
					'title' 		=> __( 'Homepage / Frontpage Category Setting', 'catch-flames' ),
					'description' 	=> '',
				),
				'excerpt_more_tag_settings' => array(
					'id' 			=> 'excerpt_more_tag_settings',
					'title' 		=> __( 'Excerpt / More Tag Settings', 'catch-flames' ),
					'description' 	=> '',
				),
				'feed_url' => array(
					'id' 			=> 'feed_url',
					'title' 		=> __( 'Feed Redirect', 'catch-flames' ),
					'description' 	=> '',
				),
				'comment_options' => array(
					'id' 			=> 'comment_options',
					'title' 		=> __( 'Comment Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'footer_editor' => array(
					'id' 			=> 'footer_editor',
					'title'			=> __( 'Footer Editor Options', 'catch-flames' ),
					'description' 	=> ''
				),
				'custom_css' => array(
					'id' 			=> 'custom_css',
					'title' 		=> __( 'Custom CSS', 'catch-flames' ),
					'description' 	=> '',
				),
				'scrollup' => array(
					'id' 			=> 'scrollup',
					'title' 		=> __( 'Scroll Up', 'catch-flames' ),
					'description' 	=> '',
				),
				'update_notifier' => array(
					'id' 			=> 'update_notifier',
					'title' 		=> __( 'Update Notifier', 'catch-flames' ),
					'description' 	=> '',
				),
			),
		),
		'featured_slider' => array(
			'id' 			=> 'featured_slider',
			'title' 		=> __( 'Featured Slider', 'catch-flames' ),
			'description' 	=> __( 'Featured Slider', 'catch-flames' ),
			'sections' 		=> array(
				'slider_options' => array(
					'id' 			=> 'slider_options',
					'title' 		=> __( 'Slider Options', 'catch-flames' ),
					'description' 	=> '',
				),
			)
		),
		'social_links' => array(
			'id' 			=> 'social_links',
			'title' 		=> __( 'Social Links', 'catch-flames' ),
			'description' 	=> __( 'Add your social links here', 'catch-flames' ),
			'sections' 		=> array(
				'social_links' => array(
					'id' 			=> 'social_links',
					'title' 		=> __( 'Social Links', 'catch-flames' ),
					'description' 	=> '',
				),
			),
		),
		'colors'	=> array(
			'id' 			=> 'colors',
			'title' 		=> __( 'Colors', 'catch-flames' ),
			'description' 	=> '',
			'priority'		=> '10',
			'sections' 		=> array(
				'basic_colors' => array(
					'id' 			=> 'basic_colors',
					'title' 		=> __( 'Basic Colors Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'site_colors' => array(
					'id' 			=> 'site_colors',
					'title' 		=> __( 'Site Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'header_colors' => array(
					'id' 			=> 'header_colors',
					'title' 		=> __( 'Header Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'slider_colors' => array(
					'id' 			=> 'slider_colors',
					'title' 		=> __( 'Slider Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'content_colors' => array(
					'id' 			=> 'content_colors',
					'title' 		=> __( 'Content Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'comment_colors' => array(
					'id' 			=> 'comment_colors',
					'title' 		=> __( 'Comment Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'scrollup_colors' => array(
					'id' 			=> 'scrollup_colors',
					'title' 		=> __( 'Scrollup Color Options', 'catch-flames' ),
					'description' 	=> '',
				),

				'sidebar_colors' => array(
					'id' 			=> 'sidebar_colors',
					'title' 		=> __( 'Sidebar Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'footer_colors' => array(
					'id' 			=> 'footer_colors',
					'title' 		=> __( 'Footer Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'primary_menu_colors' => array(
					'id' 			=> 'primary_menu_colors',
					'title' 		=> __( 'Primary Menu Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'secondary_menu_colors' => array(
					'id' 			=> 'secondary_menu_colors',
					'title' 		=> __( 'Secondary Menu Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'footer_menu_colors' => array(
					'id' 			=> 'footer_menu_colors',
					'title' 		=> __( 'Footer Menu Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'header_top_menu_colors' => array(
					'id' 			=> 'header_top_menu_colors',
					'title' 		=> __( 'Header Top Menu Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'header_right_menu_colors' => array(
					'id' 			=> 'header_right_menu_colors',
					'title' 		=> __( 'Header Right Menu Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'mobile_menu_colors' => array(
					'id' 			=> 'mobile_menu_colors',
					'title' 		=> __( 'Mobile Menu Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
				'reset_menu_colors' => array(
					'id' 			=> 'reset_menu_colors',
					'title' 		=> __( 'Reset Menu Color Options', 'catch-flames' ),
					'description' 	=> '',
				),
			),
		),
		'web_tools' => array(
			'id' 			=> 'web_tools',
			'title' 		=> __( 'Webmaster Tools', 'catch-flames' ),
			'description' 	=> '',
			'sections' 		=> array(
				'site_verification' => array(
					'id' 			=> 'site_verification',
					'title' 		=> __( 'Site Verification', 'catch-flames' ),
					'description' 	=> '',
				),
				'header_footer_codes' => array(
					'id' 			=> 'header_footer_codes',
					'title' 		=> __( 'Header And Footer Codes', 'catch-flames' ),
					'description' 	=> '',
				),
			),
		),
	);

	//Add Panels and sections
	foreach ( $settings_page_tabs as $panel ) {
		$panel_priority = '200';
		if('colors' === $panel['id']){
			$panel_priority = '25';
		}
		$wp_customize->add_panel(
			$theme_slug . $panel['id'],
			array(
				'priority' 		=> $panel_priority,
				'capability' 	=> 'edit_theme_options',
				'title' 		=> $panel['title'],
				'description' 	=> $panel['description'],
			)
		);

		// Loop through tabs for sections
		foreach ( $panel['sections'] as $section ) {
			$params = array(
								'title'			=> $section['title'],
								'description'	=> $section['description'],
								'panel'			=> $theme_slug . $panel['id']
							);

			if ( isset( $section['active_callback'] ) ) {
				$params['active_callback'] = $section['active_callback'];
			}

			$wp_customize->add_section(
				// $id
				$theme_slug . $section['id'],
				// parameters
				$params

			);
		}
	}

	//Add Menu Options Section Without a panel
	$wp_customize->add_section(
		'catchflames_menu_options',
		array(
			'description'	=> __( 'Extra Menu Options specific to this theme', 'catch-flames' ),
			'priority' 		=> 105,
			'title'    		=> __( 'Menu Options', 'catch-flames' ),
			)
		);

	//Move default header color and background color under custom section basic_colors
	$wp_customize->get_control( 'header_textcolor' )->section = $theme_slug . 'basic_colors' ;
	$wp_customize->get_control( 'header_textcolor' )->priority = 20 ;

	$wp_customize->get_control( 'background_color' )->section = $theme_slug . 'basic_colors' ;
	$wp_customize->get_control( 'background_color' )->priority = 25 ;


	$settings_parameters = array(
		//Disable Header Menu
		'disable_header_menu' => array(
			'id' 				=> 'disable_header_menu',
			'title' 			=> __( 'Check to Disable Default Page Menu', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'checkbox',
			'sanitize' 			=> 'catchflames_sanitize_checkbox',
			'panel' 			=> 'theme_options',
			'section' 			=> 'menu_options',
			'default' 			=> $defaults['disable_header_menu'],
		),

		//Disable Responsive Design
		'disable_responsive' => array(
			'id' 				=> 'disable_responsive',
			'title' 			=> __( 'Check to Disable Responsive Design', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'checkbox',
			'sanitize' 			=> 'catchflames_sanitize_checkbox',
			'panel' 			=> 'theme_options',
			'section' 			=> 'disable_responsive',
			'default' 			=> $defaults['disable_responsive'],
		),

		//Favicon
		'remove_favicon' => array(
			'id' 				=> 'remove_favicon',
			'title' 			=> __( 'Check to Disable Favicon', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'checkbox',
			'sanitize' 			=> 'catchflames_sanitize_checkbox',
			'panel' 			=> 'theme_options',
			'section' 			=> 'favicon',
			'default' 			=> $defaults['remove_favicon'],
		),
		'fav_icon' => array(
			'id' 				=> 'fav_icon',
			'title' 			=> __( 'Fav Icon', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'image',
			'sanitize' 			=> 'catchflames_sanitize_image',
			'panel' 			=> 'theme_options',
			'section' 			=> 'favicon',
			'default' 			=> $defaults['favicon'],
		),

		//Web Clip Icon
		'remove_web_clip' => array(
			'id' 				=> 'remove_web_clip',
			'title' 			=> __( 'Check to Disable Web Clip Icon', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'checkbox',
			'sanitize' 			=> 'catchflames_sanitize_checkbox',
			'panel' 			=> 'theme_options',
			'section' 			=> 'web_clip_icon_options',
			'default' 			=> $defaults['remove_web_clip'],
		),
		'web_clip' => array(
			'id' 				=> 'web_clip',
			'title' 			=> __( 'Web Clip Icon', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'image',
			'sanitize' 			=> 'catchflames_sanitize_image',
			'panel' 			=> 'theme_options',
			'section' 			=> 'web_clip_icon_options',
			'default' 			=> $defaults['web_clip'],
		),

		//Fixed Header Top Options
		'enable_header_top' => array(
			'id' 			=> 'enable_header_top',
			'title' 		=> __( 'Check to Enable Fixed Header Top', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'fixed_header_top_options',
			'default' 		=> $defaults['enable_header_top']
		),
		'disable_top_menu_logo' => array(
			'id' 			=> 'disable_top_menu_logo',
			'title' 		=> __( 'Check to Disable Logo in Fixed Header Top', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'fixed_header_top_options',
			'default' 		=> $defaults['disable_top_menu_logo']
		),
		'top_menu_logo' => array(
			'id' 			=> 'top_menu_logo',
			'title' 		=> __( 'Logo in Fixed Header Top', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'image',
			'sanitize' 		=> 'catchflames_sanitize_image',
			'panel' 		=> 'theme_options',
			'section' 		=> 'fixed_header_top_options',
			'default' 		=> $defaults['top_menu_logo']
		),
		'disable_social' => array(
			'id' 			=> 'disable_social',
			'title' 		=> __( 'Check to Disable Social', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'fixed_header_top_options',
			'default' 		=> $defaults['disable_social']
		),
		'disable_search' => array(
			'id' 			=> 'disable_search',
			'title' 		=> __( 'Check to Disable Search', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'fixed_header_top_options',
			'default' 		=> $defaults['disable_search']
		),

		//Header Options
		'disable_header' => array(
			'id' 			=> 'disable_header',
			'title' 		=> __( 'Check to Disable Header', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['disable_header']
		),
		'disable_header_content' => array(
			'id' 			=> 'disable_header_content',
			'title' 		=> __( 'Check to Disable Header Content', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['disable_header_content']
		),
		'remove_header_logo' => array(
			'id' 			=> 'remove_header_logo',
			'title' 		=> __( 'Check to Disable Header Logo', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['remove_header_logo']
		),
		'featured_logo_header' => array(
			'id' 			=> 'featured_logo_header',
			'title' 		=> __( 'Logo', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'image',
			'sanitize' 		=> 'catchflames_sanitize_image',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['featured_logo_header']
		),
		'remove_site_title' => array(
			'id' 			=> 'remove_site_title',
			'title' 		=> __( 'Check to Disable Site Title', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['remove_site_title']
		),
		'remove_site_description' => array(
			'id' 			=> 'remove_site_description',
			'title' 		=> __( 'Check to Disable Site Description (Tagline)', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['remove_site_description']
		),
		'site_title_above' => array(
			'id' 			=> 'site_title_above',
			'title' 		=> __( 'Check to Move Site Title and Tagline Before Logo', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['site_title_above']
		),
		'seperate_logo' => array(
			'id' 			=> 'seperate_logo',
			'title' 		=> __( 'Check to Separate Logo and Site Details', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['seperate_logo']
		),
		'header_top_size' => array(
			'id' 			=> 'header_top_size',
			'title' 		=> __( 'Header Top Margin', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['header_top_size']
		),
		'header_bottom_size' => array(
			'id' 			=> 'header_bottom_size',
			'title' 		=> __( 'Header Bottom Margin', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['header_bottom_size']
		),
		'reset_header_space' => array(
			'id' 			=> 'reset_header_space',
			'title' 		=> __( 'Check to Reset Header Margin', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_header_space',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_options',
			'default' 		=> $defaults['reset_header_space'],
			'priority'		=> '200',
		),

		//Header Right Option
		'disable_header_right_search' => array(
			'id' 			=> 'disable_header_right_search',
			'title' 		=> __( 'Check to Disable Search at Header Right Section', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_right_options',
			'default' 		=> $defaults['disable_header_right_search']
		),
		'disable_header_right_sidebar' => array(
			'id' 			=> 'disable_header_right_sidebar',
			'title' 		=> __( 'Check to Disable Header Right Sidebar', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'header_right_options',
			'default' 		=> $defaults['disable_header_right_sidebar']
		),

		//Header Image Options
		'enable_featured_header_image' => array(
			'id' 			=> 'enable_featured_header_image',
			'title' 		=> __( 'Enable Featured Header Image on', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'select',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'section' 		=> 'header_image',
			'default' 		=> $defaults['enable_featured_header_image'],
			'choices'		=> catchflames_enable_header_featured_image_options(),
		),
		'page_featured_image' => array(
			'id' 				=> 'page_featured_image',
			'title' 			=> __( 'Page/Post Featured Image Size', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'select',
			'sanitize' 			=> 'catchflames_sanitize_select',
			'section' 			=> 'header_image',
			'default' 			=> $defaults['page_featured_image'],
			'choices'			=> catchflames_enable_header_featured_image_size(),
			'active_callback'	=> 'catchflames_is_header_featured_image_enabled'
		),
		'featured_header_image_position' => array(
			'id' 				=> 'featured_header_image_position',
			'title' 			=> __( 'Featured Header Image Position', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'select',
			'sanitize' 			=> 'catchflames_sanitize_select',
			'section' 			=> 'header_image',
			'default' 			=> $defaults['featured_header_image_position'],
			'choices'			=> catchflames_enable_header_featured_image_position(),
			'active_callback'	=> 'catchflames_is_header_featured_image_enabled'
		),
		'featured_header_image_alt' => array(
			'id' 				=> 'featured_header_image_alt',
			'title' 			=> __( 'Featured Header Image Alt/Title Tag', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'text',
			'sanitize' 			=> 'sanitize_text_field',
			'section' 			=> 'header_image',
			'default' 			=> $defaults['featured_header_image_alt'],
			'active_callback'	=> 'catchflames_is_header_featured_image_enabled',
			'priority'			=> '200',
		),
		'featured_header_image_url' => array(
			'id' 				=> 'featured_header_image_url',
			'title' 			=> __( 'Featured Header Image Link URL', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'url',
			'sanitize' 			=> 'esc_url_raw',
			'section' 			=> 'header_image',
			'default' 			=> $defaults['featured_header_image_url'],
			'active_callback'	=> 'catchflames_is_header_featured_image_enabled',
			'priority'			=> '210',
		),
		'featured_header_image_base' => array(
			'id' 				=> 'featured_header_image_base',
			'title' 			=> __( 'Check to Open Link in New Window', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'checkbox',
			'sanitize' 			=> 'catchflames_sanitize_checkbox',
			'section' 			=> 'header_image',
			'default' 			=> $defaults['featured_header_image_base'],
			'active_callback'	=> 'catchflames_is_header_featured_image_enabled',
			'priority'			=> '220',
		),
		'reset_header_image' => array(
			'id' 				=> 'reset_header_image',
			'title' 			=> __( 'Check to Reset Header Featured Image Options', 'catch-flames' ),
			'description'		=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'			=> 'postMessage',
			'field_type' 		=> 'checkbox',
			'sanitize' 			=> 'catchflames_sanitize_reset_header_image',
			'section' 			=> 'header_image',
			'default' 			=> $defaults['reset_header_image'],
			'active_callback'	=> 'catchflames_is_header_featured_image_enabled',
			'priority'			=> '230',
		),

		//Search Settings
		'search_display_text' => array(
			'id' 			=> 'search_display_text',
			'title' 		=> __( 'Default Display Text in Search', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'text',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'search_text_settings',
			'default' 		=> $defaults['search_display_text']
		),

		//Typography
		'body_font' => array(
			'id' 			=> 'body_font',
			'title' 		=> __( 'Default Font Family', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'select',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography',
			'default' 		=> $defaults['body_font'],
			'choices'		=> catchflames_available_fonts()
		),
		'title_font' => array(
			'id' 			=> 'title_font',
			'title' 		=> __( 'Site Title & Description Font Family ', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'select',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography',
			'default' 		=> $defaults['title_font'],
			'choices'		=> catchflames_available_fonts()
		),
		'headings_font' => array(
			'id' 			=> 'headings_font',
			'title' 		=> __( 'Headings Font Family ', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'select',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography',
			'default' 		=> $defaults['headings_font'],
			'choices'		=> catchflames_available_fonts()
		),
		'content_font' => array(
			'id' 			=> 'content_font',
			'title' 		=> __( 'Content Font Family', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'select',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography',
			'default' 		=> $defaults['content_font'],
			'choices'		=> catchflames_available_fonts()
		),
		'reset_typography' => array(
			'id' 			=> 'reset_typography',
			'title' 		=> __( 'Check to Reset Fonts', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_typography',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography',
			'default' 		=> $defaults['reset_typography'],
		),

		//Typography Sizes
		'body_font_size' => array(
			'id' 			=> 'body_font_size',
			'title' 		=> __( 'Default Font Size', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['body_font_size'],
		),
		'body_line_height' => array(
			'id' 			=> 'body_line_height',
			'title' 		=> __( 'Default Line Height', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['body_line_height'],
		),
		'site_title_font_size' => array(
			'id' 			=> 'site_title_font_size',
			'title' 		=> __( 'Site Title Font Size', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['site_title_font_size'],
		),
		'site_title_line_height' => array(
			'id' 			=> 'site_title_line_height',
			'title' 		=> __( 'Site Title Line Height', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['site_title_line_height'],
		),
		'site_description_font_size' => array(
			'id' 			=> 'site_description_font_size',
			'title' 		=> __( 'Site Description Font Size', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['site_description_font_size'],
		),
		'site_description_line_height' => array(
			'id' 			=> 'site_description_line_height',
			'title' 		=> __( 'Site Description Line Height', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['site_description_line_height'],
		),
		'h1_font_size' => array(
			'id' 			=> 'h1_font_size',
			'title' 		=> __( 'H1 Font Size', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['h1_font_size'],
		),
		'h2_font_size' => array(
			'id' 			=> 'h2_font_size',
			'title' 		=> __( 'H2 Font Size', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['h2_font_size'],
		),
		'h3_font_size' => array(
			'id' 			=> 'h3_font_size',
			'title' 		=> __( 'H3 Font Size', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['h3_font_size'],
		),
		'h4_font_size' => array(
			'id' 			=> 'h4_font_size',
			'title' 		=> __( 'H4 Font Size', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['h4_font_size'],
		),
		'headings_line_height' => array(
			'id' 			=> 'headings_line_height',
			'title' 		=> __( 'Headings Line Height', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['headings_line_height'],
		),
		'content_font_size' => array(
			'id' 			=> 'content_font_size',
			'title' 		=> __( 'Content Font Size', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['content_font_size'],
		),
		'content_line_height' => array(
			'id' 			=> 'content_line_height',
			'title' 		=> __( 'Content Line Height', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'multiple-input',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['content_line_height'],
		),
		'reset_font_size' => array(
			'id' 			=> 'reset_font_size',
			'title' 		=> __( 'Check to Reset Font Size', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_typography_size',
			'panel' 		=> 'theme_options',
			'section' 		=> 'typography_size',
			'default' 		=> $defaults['reset_font_size'],
			'priority' 		=> '200'
		),

		//Layout Options
		'sidebar_layout' => array(
			'id' 			=> 'sidebar_layout',
			'title' 		=> __( 'Default Layout Options', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'select',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'panel' 		=> 'theme_options',
			'section' 		=> 'layout_options',
			'default' 		=> $defaults['sidebar_layout'],
			'choices'		=> catchflames_sidebar_layout_options(),
		),
		'content_layout' => array(
			'id' 			=> 'content_layout',
			'title' 		=> __( 'Archive Content Layout', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'select',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'panel' 		=> 'theme_options',
			'section' 		=> 'layout_options',
			'default' 		=> $defaults['content_layout'],
			'choices'		=> catchflames_content_layout_options(),
		),
		'reset_sidebar_layout' => array(
			'id' 			=> 'reset_sidebar_layout',
			'title' 		=> __( 'Check to Reset Layout', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_layout',
			'panel' 		=> 'theme_options',
			'section' 		=> 'layout_options',
			'default' 		=> $defaults['reset_sidebar_layout']
		),

		//Homepage/Frontpage Settings
		'front_page_category' => array(
			'id' 			=> 'front_page_category',
			'title' 		=> __( 'Front page posts categories:', 'catch-flames' ),
			'description'	=> __( 'Only posts that belong to the categories selected here will be displayed on the front page', 'catch-flames' ),
			'field_type' 	=> 'category-multiple',
			'sanitize' 		=> 'catchflames_sanitize_category_list',
			'panel' 		=> 'theme_options',
			'section' 		=> 'homepage_settings',
			'default' 		=> $defaults['front_page_category']
		),

		//Excerpt More Settings
		'more_tag_text' => array(
			'id' 			=> 'more_tag_text',
			'title' 		=> __( 'More Tag Text', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'text',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'theme_options',
			'section' 		=> 'excerpt_more_tag_settings',
			'default' 		=> $defaults['more_tag_text']
		),
		'excerpt_length' => array(
			'id' 			=> 'excerpt_length',
			'title' 		=> __( 'Excerpt length(words)', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'number',
			'sanitize' 		=> 'catchflames_sanitize_number_range',
			'panel' 		=> 'theme_options',
			'section' 		=> 'excerpt_more_tag_settings',
			'default' 		=> $defaults['excerpt_length'],
			'input_attrs' 	=> array(
					            'style' => 'width: 45px;',
					            'min'   => 0,
					            'max'   => 999999,
					            'step'  => 1,
					        	)
		),
		'reset_more_tag' => array(
			'id' 			=> 'reset_more_tag',
			'title' 		=> __( 'Check to Reset Excerpt', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_moretag',
			'panel' 		=> 'theme_options',
			'section' 		=> 'excerpt_more_tag_settings',
			'default' 		=> $defaults['reset_more_tag'],
		),

		//Feed Redirect
		'feed_url' => array(
			'id' 			=> 'feed_url',
			'title' 		=> __( 'Feed Redirect URL', 'catch-flames' ),
			'description'	=> __( 'Add in the Feedburner URL', 'catch-flames' ),
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'theme_options',
			'section' 		=> 'feed_url',
			'default' 		=> $defaults['feed_url'],
		),

		//Comments Options
		'commenting_setting' => array(
			'id' 			=> 'commenting_setting',
			'title' 		=> __( 'Disable Comment', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'select',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'panel' 		=> 'theme_options',
			'section' 		=> 'comment_options',
			'default' 		=> $defaults['commenting_setting'],
			'choices'		=> catchflames_comment_option(),
		),
		'commenting_disable_notes' => array(
			'id' 			=> 'commenting_disable_notes',
			'title' 		=> __( 'Check to Disable Notes', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'comment_options',
			'default' 		=> $defaults['commenting_disable_notes'],
		),
		'commenting_disable_url' => array(
			'id' 			=> 'commenting_disable_url',
			'title' 		=> __( 'Check to Disable Website Field', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'comment_options',
			'default' 		=> $defaults['commenting_disable_url'],
		),

		//Footer Editor Options
		'footer_code' => array(
			'id' 			=> 'footer_code',
			'title' 		=> __( 'Footer Editor', 'catch-flames' ),
			'description'	=> __( 'You can add custom HTML and/or shortcodes, which will be automatically inserted into your theme.Some shorcodes: [the-year], [site-link], [wp-link] for current year, your site link, wordpress site link respectively.', 'catch-flames' ),
			'field_type' 	=> 'textarea',
			'sanitize' 		=> 'catchflames_sanitize_footer_code',
			'panel' 		=> 'theme_options',
			'section' 		=> 'footer_editor',
			'default' 		=> $defaults['footer_code'],
		),
		'reset_footer' => array(
			'id' 			=> 'reset_footer',
			'title' 		=> __( 'Check to Reset Footer', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_footer',
			'panel' 		=> 'theme_options',
			'section' 		=> 'footer_editor',
			'default' 		=> $defaults['reset_footer'],
		),

		//Custom Css
		'custom_css' => array(
			'id' 			=> 'custom_css',
			'title' 		=> __( 'Enter your custom CSS styles', 'catch-flames' ),
			'description' 	=> '',
			'field_type' 	=> 'textarea',
			'sanitize' 		=> 'catchflames_sanitize_custom_css',
			'panel' 		=> 'theme_options',
			'section' 		=> 'custom_css',
			'default' 		=> $defaults['custom_css']
		),

		//Scroll Up
		'disable_scrollup' => array(
			'id' 			=> 'disable_scrollup',
			'title' 		=> __( 'Check to Disable Scroll Up', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'scrollup',
			'default' 		=> $defaults['disable_scrollup']
		),

		//Update Notifier
		'disable_notifier' => array(
			'id' 			=> 'disable_notifier',
			'title' 		=> __( 'Check to Disable Update Notifier', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_checkbox',
			'panel' 		=> 'theme_options',
			'section' 		=> 'update_notifier',
			'default' 		=> $defaults['disable_notifier']
		),

		//Color Scheme
		'color_scheme' => array(
			'id' 			=> 'color_scheme',
			'title' 		=> __( 'Default Color Scheme', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'radio',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'section' 		=> 'basic_colors',
			'default' 		=> $defaults['color_scheme'],
			'choices'		=> catchflames_color_schemes(),
		),

		//Color Options
		'title_hover_color' => array(
			'id' 			=> 'title_hover_color',
			'title' 		=> __( 'Site Title Hover Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'site_colors',
			'default' 		=> $defaults['title_hover_color'],
		),
		'tagline_color' => array(
			'id' 			=> 'tagline_color',
			'title' 		=> __( 'Site Tagline Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'site_colors',
			'default' 		=> $defaults['tagline_color'],
		),
		'text_color' => array(
			'id' 			=> 'text_color',
			'title' 		=> __( 'Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'site_colors',
			'default' 		=> $defaults['text_color'],
		),
		'link_color' => array(
			'id' 			=> 'link_color',
			'title' 		=> __( 'Link Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'site_colors',
			'default' 		=> $defaults['link_color'],
		),
		'reset_color' => array(
			'id' 			=> 'reset_color',
			'title' 		=> __( 'Check to Reset Site Colors', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_site_color',
			'section' 		=> 'site_colors',
			'default' 		=> $defaults['reset_color'],
		),
		'header_top_background' => array(
			'id' 			=> 'header_top_background',
			'title' 		=> __( 'Header Top Sidebar Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_colors',
			'default' 		=> $defaults['header_top_background'],
		),
		'header_background' => array(
			'id' 			=> 'header_background',
			'title' 		=> __( 'Header Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_colors',
			'default' 		=> $defaults['header_background'],
		),
		'header_image_background' => array(
			'id' 			=> 'header_image_background',
			'title' 		=> __( 'Header Image Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_colors',
			'default' 		=> $defaults['header_image_background'],
		),
		'reset_header_color' => array(
			'id' 			=> 'reset_header_color',
			'title' 		=> __( 'Check to Reset Header Colors', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_header_color',
			'section' 		=> 'header_colors',
			'default' 		=> $defaults['reset_header_color'],
			'choices'		=> catchflames_color_schemes(),
		),
		'slider_background' => array(
			'id' 			=> 'slider_background',
			'title' 		=> __( 'Slider Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'slider_colors',
			'default' 		=> $defaults['slider_background'],
		),
		'slider_text' => array(
			'id' 			=> 'slider_text',
			'title' 		=> __( 'Slider Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'slider_colors',
			'default' 		=> $defaults['slider_text'],
		),
		'reset_slider_color' => array(
			'id' 			=> 'reset_slider_color',
			'title' 		=> __( 'Check to Reset Slider Colors', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_slider_color',
			'section' 		=> 'slider_colors',
			'default' 		=> $defaults['reset_slider_color'],
		),
		'content_background' => array(
			'id' 			=> 'content_background',
			'title' 		=> __( 'Main Wrapper Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'content_colors',
			'default' 		=> $defaults['content_background'],
		),
		'article_background' => array(
			'id' 			=> 'article_background',
			'title' 		=> __( 'Content Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'content_colors',
			'default' 		=> $defaults['article_background'],
		),
		'heading_color' => array(
			'id' 			=> 'heading_color',
			'title' 		=> __( 'Title Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'content_colors',
			'default' 		=> $defaults['heading_color'],
		),
		'heading_hover_color' => array(
			'id' 			=> 'heading_hover_color',
			'title' 		=> __( 'Title Hover Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'content_colors',
			'default' 		=> $defaults['heading_hover_color'],
		),
		'meta_color' => array(
			'id' 			=> 'meta_color',
			'title' 		=> __( 'Meta Description Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'content_colors',
			'default' 		=> $defaults['meta_color'],
		),
		'meta_link_color' => array(
			'id' 			=> 'meta_link_color',
			'title' 		=> __( 'Meta Description Link Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'content_colors',
			'default' 		=> $defaults['meta_link_color'],
		),
		'reset_content_color' => array(
			'id' 			=> 'reset_content_color',
			'title' 		=> __( 'Check to Reset Content Colors', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_content_color',
			'section' 		=> 'content_colors',
			'default' 		=> $defaults['reset_content_color'],
		),

		'comment_background' => array(
			'id' 			=> 'comment_background',
			'title' 		=> __( 'Comment Box Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'comment_colors',
			'default' 		=> $defaults['comment_background'],
		),
		'comment_title_color' => array(
			'id' 			=> 'comment_title_color',
			'title' 		=> __( 'Comment Box Title Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'comment_colors',
			'default' 		=> $defaults['comment_title_color'],
		),
		'comment_text_color' => array(
			'id' 			=> 'comment_text_color',
			'title' 		=> __( 'Comment Box Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'comment_colors',
			'default' 		=> $defaults['comment_text_color'],
		),
		'comment_link_color' => array(
			'id' 			=> 'comment_link_color',
			'title' 		=> __( 'Comment Box Link Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'comment_colors',
			'default' 		=> $defaults['comment_link_color'],
		),
		'reset_comment_color' => array(
			'id' 			=> 'reset_comment_color',
			'title' 		=> __( 'Check to Reset Comment Colors', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_comment_color',
			'section' 		=> 'comment_colors',
			'default' 		=> $defaults['reset_comment_color'],
		),
		'scrollup_bg_color' => array(
			'id' 			=> 'scrollup_bg_color',
			'title' 		=> __( 'Scrollup Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'scrollup_colors',
			'default' 		=> $defaults['scrollup_bg_color'],
		),
		'scrollup_text_color' => array(
			'id' 			=> 'scrollup_text_color',
			'title' 		=> __( 'Scrollup Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'scrollup_colors',
			'default' 		=> $defaults['scrollup_text_color'],
		),
		'reset_scrollup_color' => array(
			'id' 			=> 'reset_scrollup_color',
			'title' 		=> __( 'Check to Reset Scrollup Colors', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_scrollup_color',
			'section' 		=> 'scrollup_colors',
			'default' 		=> $defaults['reset_scrollup_color'],
		),
		'widget_background' => array(
			'id' 			=> 'widget_background',
			'title' 		=> __( 'Sidebar Widget Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'sidebar_colors',
			'default' 		=> $defaults['widget_background'],
		),
		'widget_heading_color' => array(
			'id' 			=> 'widget_heading_color',
			'title' 		=> __( 'Sidebar Widget Title Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'sidebar_colors',
			'default' 		=> $defaults['widget_heading_color'],
		),
		'widget_text_color' => array(
			'id' 			=> 'widget_text_color',
			'title' 		=> __( 'Sidebar Widget Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'sidebar_colors',
			'default' 		=> $defaults['widget_text_color'],
		),
		'widget_link_color' => array(
			'id' 			=> 'widget_link_color',
			'title' 		=> __( 'Sidebar Widget Link Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'sidebar_colors',
			'default' 		=> $defaults['widget_link_color'],
		),
		'reset_sidebar_color' => array(
			'id' 			=> 'reset_sidebar_color',
			'title' 		=> __( 'Check to Reset Sidebar Colors', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_sidebar_color',
			'section' 		=> 'sidebar_colors',
			'default' 		=> $defaults['reset_sidebar_color'],
		),
		'footer_background' => array(
			'id' 			=> 'footer_background',
			'title' 		=> __( 'Footer Sidebar Area Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_colors',
			'default' 		=> $defaults['footer_background'],
		),
		'widget_footer_background' => array(
			'id' 			=> 'widget_footer_background',
			'title' 		=> __( 'Footer Sidebar Widget Background', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_colors',
			'default' 		=> $defaults['widget_footer_background'],
		),
		'widget_footer_title_color' => array(
			'id' 			=> 'widget_footer_title_color',
			'title' 		=> __( 'Footer Sidebar Widget Title Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_colors',
			'default' 		=> $defaults['widget_footer_title_color'],
		),
		'widget_footer_text_color' => array(
			'id' 			=> 'widget_footer_text_color',
			'title' 		=> __( 'Footer Sidebar Widget Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_colors',
			'default' 		=> $defaults['widget_footer_text_color'],
		),
		'widget_footer_link_color' => array(
			'id' 			=> 'widget_footer_link_color',
			'title' 		=> __( 'Footer Sidebar Widget Link Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_colors',
			'default' 		=> $defaults['widget_footer_link_color'],
		),
		'sitegenerator_background' => array(
			'id' 			=> 'sitegenerator_background',
			'title' 		=> __( 'Footer Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_colors',
			'default' 		=> $defaults['sitegenerator_background'],
		),
		'sitegenerator_text_color' => array(
			'id' 			=> 'sitegenerator_text_color',
			'title' 		=> __( 'Footer Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_colors',
			'default' 		=> $defaults['sitegenerator_text_color'],
		),
		'sitegenerator_link_color' => array(
			'id' 			=> 'sitegenerator_link_color',
			'title' 		=> __( 'Footer Link Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_colors',
			'default' 		=> $defaults['sitegenerator_link_color'],
		),
		'reset_footer_color' => array(
			'id' 			=> 'reset_footer_color',
			'title' 		=> __( 'Check to Reset Footer Colors', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_footer_color',
			'section' 		=> 'footer_colors',
			'default' 		=> $defaults['reset_footer_color'],
		),
		'menu_background' => array(
			'id' 			=> 'menu_background',
			'title' 		=> __( 'Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'primary_menu_colors',
			'default' 		=> $defaults['menu_background'],
		),
		'menu_color' => array(
			'id' 			=> 'menu_color',
			'title' 		=> __( 'Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'primary_menu_colors',
			'default' 		=> $defaults['menu_color'],
		),
		'hover_background_color' => array(
			'id' 			=> 'hover_background_color',
			'title' 		=> __( 'Menu Hover Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'primary_menu_colors',
			'default' 		=> $defaults['hover_background_color'],
		),
		'hover_text_color' => array(
			'id' 			=> 'hover_text_color',
			'title' 		=> __( 'Menu Hover Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'primary_menu_colors',
			'default' 		=> $defaults['hover_text_color'],
		),
		'active_background_color' => array(
			'id' 			=> 'active_background_color',
			'title' 		=> __( 'Menu Active Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'primary_menu_colors',
			'default' 		=> $defaults['active_background_color'],
		),
		'active_text_color' => array(
			'id' 			=> 'active_text_color',
			'title' 		=> __( 'Menu Active Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'primary_menu_colors',
			'default' 		=> $defaults['active_text_color'],
		),
		'sub_menu_bg_color' => array(
			'id' 			=> 'sub_menu_bg_color',
			'title' 		=> __( 'Sub-Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'primary_menu_colors',
			'default' 		=> $defaults['sub_menu_bg_color'],
		),
		'sub_menu_text_color' => array(
			'id' 			=> 'sub_menu_text_color',
			'title' 		=> __( 'Sub-Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'primary_menu_colors',
			'default' 		=> $defaults['sub_menu_text_color'],
		),
		'secondary_menu_background' => array(
			'id' 			=> 'secondary_menu_background',
			'title' 		=> __( 'Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'secondary_menu_colors',
			'default' 		=> $defaults['secondary_menu_background'],
		),
		'secondary_menu_color' => array(
			'id' 			=> 'secondary_menu_color',
			'title' 		=> __( 'Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'secondary_menu_colors',
			'default' 		=> $defaults['secondary_menu_color'],
		),
		'secondary_hover_background_color' => array(
			'id' 			=> 'secondary_hover_background_color',
			'title' 		=> __( 'Menu Hover Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'secondary_menu_colors',
			'default' 		=> $defaults['secondary_hover_background_color'],
		),
		'secondary_hover_text_color' => array(
			'id' 			=> 'secondary_hover_text_color',
			'title' 		=> __( 'Menu Hover Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'secondary_menu_colors',
			'default' 		=> $defaults['secondary_hover_text_color'],
		),
		'secondary_active_background' => array(
			'id' 			=> 'secondary_active_background',
			'title' 		=> __( 'Menu Active Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'secondary_menu_colors',
			'default' 		=> $defaults['secondary_active_background'],
		),
		'secondary_active_text_color' => array(
			'id' 			=> 'secondary_active_text_color',
			'title' 		=> __( 'Menu Active Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'secondary_menu_colors',
			'default' 		=> $defaults['secondary_active_text_color'],
		),
		'secondary_sub_menu_bg_color' => array(
			'id' 			=> 'secondary_sub_menu_bg_color',
			'title' 		=> __( 'Sub-Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'secondary_menu_colors',
			'default' 		=> $defaults['secondary_sub_menu_bg_color'],
		),
		'secondary_sub_menu_text_color' => array(
			'id' 			=> 'secondary_sub_menu_text_color',
			'title' 		=> __( 'Sub-Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'secondary_menu_colors',
			'default' 		=> $defaults['secondary_sub_menu_text_color'],
		),
		'footer_menu_background' => array(
			'id' 			=> 'footer_menu_background',
			'title' 		=> __( 'Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_menu_colors',
			'default' 		=> $defaults['footer_menu_background'],
		),
		'footer_menu_color' => array(
			'id' 			=> 'footer_menu_color',
			'title' 		=> __( 'Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_menu_colors',
			'default' 		=> $defaults['footer_menu_color'],
		),
		'footer_hover_background_color' => array(
			'id' 			=> 'footer_hover_background_color',
			'title' 		=> __( 'Menu Hover Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_menu_colors',
			'default' 		=> $defaults['footer_hover_background_color'],
		),
		'footer_hover_text_color' => array(
			'id' 			=> 'footer_hover_text_color',
			'title' 		=> __( 'Menu Hover Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_menu_colors',
			'default' 		=> $defaults['footer_hover_text_color'],
		),
		'footer_active_background_color' => array(
			'id' 			=> 'footer_active_background_color',
			'title' 		=> __( 'Menu Active Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_menu_colors',
			'default' 		=> $defaults['footer_active_background_color'],
		),
		'footer_active_text_color' => array(
			'id' 			=> 'footer_active_text_color',
			'title' 		=> __( 'Menu Active Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_menu_colors',
			'default' 		=> $defaults['footer_active_text_color'],
		),
		'footer_sub_menu_bg_color' => array(
			'id' 			=> 'footer_sub_menu_bg_color',
			'title' 		=> __( 'Sub-Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_menu_colors',
			'default' 		=> $defaults['footer_sub_menu_bg_color'],
		),
		'footer_sub_menu_text_color' => array(
			'id' 			=> 'footer_sub_menu_text_color',
			'title' 		=> __( 'Sub-Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'footer_menu_colors',
			'default' 		=> $defaults['footer_sub_menu_text_color'],
		),
		'header_top_menu_bg_color' => array(
			'id' 			=> 'header_top_menu_bg_color',
			'title' 		=> __( 'Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_top_menu_colors',
			'default' 		=> $defaults['header_top_menu_bg_color'],
		),
		'header_top_menu_color' => array(
			'id' 			=> 'header_top_menu_color',
			'title' 		=> __( 'Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_top_menu_colors',
			'default' 		=> $defaults['header_top_menu_color'],
		),
		'header_top_hover_bg_color' => array(
			'id' 			=> 'header_top_hover_bg_color',
			'title' 		=> __( 'Menu Hover Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_top_menu_colors',
			'default' 		=> $defaults['header_top_hover_bg_color'],
		),
		'header_top_hover_color' => array(
			'id' 			=> 'header_top_hover_color',
			'title' 		=> __( 'Menu Hover Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_top_menu_colors',
			'default' 		=> $defaults['header_top_hover_color'],
		),
		'header_top_active_bg_color' => array(
			'id' 			=> 'header_top_active_bg_color',
			'title' 		=> __( 'Menu Active Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_top_menu_colors',
			'default' 		=> $defaults['header_top_active_bg_color'],
		),
		'header_top_active_color' => array(
			'id' 			=> 'header_top_active_color',
			'title' 		=> __( 'Menu Active Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_top_menu_colors',
			'default' 		=> $defaults['header_top_active_color'],
		),
		'header_top_sub_menu_bg_color' => array(
			'id' 			=> 'header_top_sub_menu_bg_color',
			'title' 		=> __( 'Sub-Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_top_menu_colors',
			'default' 		=> $defaults['header_top_sub_menu_bg_color'],
		),
		'header_top_sub_menu_color' => array(
			'id' 			=> 'header_top_sub_menu_color',
			'title' 		=> __( 'Sub-Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_top_menu_colors',
			'default' 		=> $defaults['header_top_sub_menu_color'],
		),
		'header_top_sub_menu_border_color' => array(
			'id' 			=> 'header_top_sub_menu_border_color',
			'title' 		=> __( 'Sub-Menu Border Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_top_menu_colors',
			'default' 		=> $defaults['header_top_sub_menu_border_color'],
		),
		'header_right_menu_bg_color' => array(
			'id' 			=> 'header_right_menu_bg_color',
			'title' 		=> __( 'Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_right_menu_colors',
			'default' 		=> $defaults['header_right_menu_bg_color'],
		),
		'header_right_menu_color' => array(
			'id' 			=> 'header_right_menu_color',
			'title' 		=> __( 'Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_right_menu_colors',
			'default' 		=> $defaults['header_right_menu_color'],
		),
		'header_right_hover_bg_color' => array(
			'id' 			=> 'header_right_hover_bg_color',
			'title' 		=> __( 'Menu Hover Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_right_menu_colors',
			'default' 		=> $defaults['header_right_hover_bg_color'],
		),
		'header_right_hover_color' => array(
			'id' 			=> 'header_right_hover_color',
			'title' 		=> __( 'Menu Hover Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_right_menu_colors',
			'default' 		=> $defaults['header_right_hover_color'],
		),
		'header_right_active_bg_color' => array(
			'id' 			=> 'header_right_active_bg_color',
			'title' 		=> __( 'Menu Active Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_right_menu_colors',
			'default' 		=> $defaults['header_right_active_bg_color'],
		),
		'header_right_active_color' => array(
			'id' 			=> 'header_right_active_color',
			'title' 		=> __( 'Menu Active Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_right_menu_colors',
			'default' 		=> $defaults['header_right_active_color'],
		),
		'header_right_sub_menu_bg_color' => array(
			'id' 			=> 'header_right_sub_menu_bg_color',
			'title' 		=> __( 'Sub-Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_right_menu_colors',
			'default' 		=> $defaults['header_right_sub_menu_bg_color'],
		),
		'header_right_sub_menu_color' => array(
			'id' 			=> 'header_right_sub_menu_color',
			'title' 		=> __( 'Sub-Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_right_menu_colors',
			'default' 		=> $defaults['header_right_sub_menu_color'],
		),
		'header_right_border_top_color' => array(
			'id' 			=> 'header_right_border_top_color',
			'title' 		=> __( 'Sub-Menu Border Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'header_right_menu_colors',
			'default' 		=> $defaults['header_right_border_top_color'],
		),
		'mobile_hamburger_open_color' => array(
			'id' 			=> 'mobile_hamburger_open_color',
			'title' 		=> __( 'Menu Hamburger Open Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'mobile_menu_colors',
			'default' 		=> $defaults['mobile_hamburger_open_color'],
		),
		'mobile_hamburger_close_color' => array(
			'id' 			=> 'mobile_hamburger_close_color',
			'title' 		=> __( 'Menu Close Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'mobile_menu_colors',
			'default' 		=> $defaults['mobile_hamburger_close_color'],
		),
		'mobile_bg_color' => array(
			'id' 			=> 'mobile_bg_color',
			'title' 		=> __( 'Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'mobile_menu_colors',
			'default' 		=> $defaults['mobile_bg_color'],
		),
		'mobile_color' => array(
			'id' 			=> 'mobile_color',
			'title' 		=> __( 'Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'mobile_menu_colors',
			'default' 		=> $defaults['mobile_color'],
		),
		'mobile_hover_bg_color' => array(
			'id' 			=> 'mobile_hover_bg_color',
			'title' 		=> __( 'Mobile Hover Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'mobile_menu_colors',
			'default' 		=> $defaults['mobile_hover_bg_color'],
		),
		'mobile_hover_color' => array(
			'id' 			=> 'mobile_hover_color',
			'title' 		=> __( 'Mobile Hover Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'mobile_menu_colors',
			'default' 		=> $defaults['mobile_hover_color'],
		),
		'mobile_sub_menu_bg_color' => array(
			'id' 			=> 'mobile_sub_menu_bg_color',
			'title' 		=> __( 'Sub-Menu Background Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'mobile_menu_colors',
			'default' 		=> $defaults['mobile_sub_menu_bg_color'],
		),
		'mobile_sub_menu_color' => array(
			'id' 			=> 'mobile_sub_menu_color',
			'title' 		=> __( 'Sub-Menu Text Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'mobile_menu_colors',
			'default' 		=> $defaults['mobile_sub_menu_color'],
		),
		'mobile_border_color' => array(
			'id' 			=> 'mobile_border_color',
			'title' 		=> __( 'Border Color', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'color',
			'sanitize' 		=> 'sanitize_hex_color',
			'section' 		=> 'mobile_menu_colors',
			'default' 		=> $defaults['mobile_border_color'],
		),
		'reset_menu_color' => array(
			'id' 			=> 'reset_menu_color',
			'title' 		=> __( 'Check to Reset Menu Colors', 'catch-flames' ),
			'description'	=> __( 'Please refresh the customizer after saving if reset option is used', 'catch-flames' ),
			'transport'		=> 'postMessage',
			'field_type' 	=> 'checkbox',
			'sanitize' 		=> 'catchflames_sanitize_reset_menu_color',
			'section' 		=> 'reset_menu_colors',
			'default' 		=> $defaults['reset_menu_color'],
		),

		//Slider Options
		'enable_slider' => array(
			'id' 			=> 'enable_slider',
			'title' 		=> __( 'Enable Slider', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'select',
			'sanitize' 		=> 'catchflames_sanitize_select',
			'panel' 		=> 'featured_slider',
			'section' 		=> 'slider_options',
			'default' 		=> $defaults['enable_slider'],
			'choices'		=> catchflames_enable_slider_options(),
		),
		'select_slider_type' => array(
			'id' 				=> 'select_slider_type',
			'title' 			=> __( 'Select Slider Type', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'select',
			'sanitize' 			=> 'catchflames_sanitize_select',
			'panel' 			=> 'featured_slider',
			'section' 			=> 'slider_options',
			'default' 			=> $defaults['select_slider_type'],
			'active_callback'	=> 'catchflames_is_slider_active',
			'choices'			=> catchflames_slider_types(),
		),
		'select_slider_layout' => array(
			'id' 				=> 'select_slider_layout',
			'title' 			=> __( 'Select Slider Layout', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'select',
			'sanitize' 			=> 'catchflames_sanitize_select',
			'panel' 			=> 'featured_slider',
			'section' 			=> 'slider_options',
			'default' 			=> $defaults['select_slider_layout'],
			'active_callback'	=> 'catchflames_is_slider_active',
			'choices'			=> catchflames_slider_layout(),
		),
		'transition_effect' => array(
			'id' 				=> 'transition_effect',
			'title' 			=> __( 'Transition Effect', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'select',
			'sanitize' 			=> 'catchflames_sanitize_select',
			'panel' 			=> 'featured_slider',
			'section' 			=> 'slider_options',
			'default' 			=> $defaults['transition_effect'],
			'active_callback'	=> 'catchflames_is_slider_active',
			'choices'			=> catchflames_transition_effects(),
		),
		'transition_delay' => array(
			'id' 				=> 'transition_delay',
			'title' 			=> __( 'Transition Delay', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'number',
			'sanitize' 			=> 'catchflames_sanitize_number_range',
			'panel' 			=> 'featured_slider',
			'section' 			=> 'slider_options',
			'default' 			=> $defaults['transition_delay'],
			'active_callback'	=> 'catchflames_is_slider_active',
			'input_attrs' 		=> array(
						            'style' => 'width: 45px;',
						            'min'   => 0,
						            'max'   => 999999999,
						            'step'  => 1,
						        	)
		),
		'transition_duration' => array(
			'id' 				=> 'transition_duration',
			'title' 			=> __( 'Transition Length', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'number',
			'sanitize' 			=> 'catchflames_sanitize_number_range',
			'panel' 			=> 'featured_slider',
			'section' 			=> 'slider_options',
			'default' 			=> $defaults['transition_duration'],
			'active_callback'	=> 'catchflames_is_slider_active',
			'input_attrs' 		=> array(
						            'style' => 'width: 45px;',
						            'min'   => 0,
						            'max'   => 999999999,
						            'step'  => 1,
						        	)
		),
		'slider_qty' => array(
			'id' 				=> 'slider_qty',
			'title' 			=> __( 'Number of Slides', 'catch-flames' ),
			'description'		=> __( 'Customizer page needs to be refreshed after saving if number of slides is changed', 'catch-flames' ),
			'field_type' 		=> 'number',
			'sanitize' 			=> 'catchflames_sanitize_number_range',
			'panel' 			=> 'featured_slider',
			'section' 			=> 'slider_options',
			'default' 			=> $defaults['slider_qty'],
			'active_callback'	=> 'catchflames_is_demo_slider_inactive',
			'input_attrs' 		=> array(
						            'style' => 'width: 45px;',
						            'min'   => 0,
						            'max'   => 20,
						            'step'  => 1,
						        	)
		),

		//Featured Post Slider
		'exclude_slider_post' => array(
			'id' 				=> 'exclude_slider_post',
			'title' 			=> __( 'Check to Exclude Slider posts from Homepage posts', 'catch-flames' ),
			'description'		=> '',
			'transport'			=> 'postMessage',
			'field_type' 		=> 'checkbox',
			'sanitize' 			=> 'catchflames_sanitize_checkbox',
			'panel' 			=> 'featured_slider',
			'section' 			=> 'slider_options',
			'default' 			=> $defaults['exclude_slider_post'],
			'active_callback' 	=> 'catchflames_is_post_slider_active'
		),

		//Featured Category Slider
		'slider_category' => array(
			'id' 				=> 'slider_category',
			'title' 			=> __( 'Select Slider Categories', 'catch-flames' ),
			'description'		=> __( 'Use this only is you want to display posts from Specific Categories in Featured Slider', 'catch-flames' ),
			'field_type' 		=> 'category-multiple',
			'sanitize' 			=> 'catchflames_sanitize_category_list',
			'panel' 			=> 'featured_slider',
			'section' 			=> 'slider_options',
			'default' 			=> $defaults['slider_category'],
			'active_callback' 	=> 'catchflames_is_category_slider_active'
		),

		//Social Links
		'disable_footer_social' => array(
			'id' 				=> 'disable_footer_social',
			'title' 			=> __( 'Check to Enable Social Icons in Footer', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'checkbox',
			'sanitize' 			=> 'catchflames_sanitize_checkbox',
			'panel' 			=> 'social_links',
			'section' 			=> 'social_links',
			'default' 			=> $defaults['disable_footer_social'],
		),
		'social_facebook' => array(
			'id' 			=> 'social_facebook',
			'title' 		=> __( 'Facebook', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_facebook']
		),
		'social_twitter' => array(
			'id' 			=> 'social_twitter',
			'title' 		=> __( 'Twitter', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_twitter']
		),
		'social_googleplus' => array(
			'id' 			=> 'social_googleplus',
			'title' 		=> __( 'Google+', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_googleplus']
		),
		'social_pinterest' => array(
			'id' 			=> 'social_pinterest',
			'title' 		=> __( 'Pinterest', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_pinterest']
		),
		'social_youtube' => array(
			'id' 			=> 'social_youtube',
			'title' 		=> __( 'Youtube', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_youtube']
		),
		'social_vimeo' => array(
			'id' 			=> 'social_vimeo',
			'title' 		=> __( 'Vimeo', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_vimeo']
		),
		'social_linkedin' => array(
			'id' 			=> 'social_linkedin',
			'title' 		=> __( 'LinkedIn', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_linkedin']
		),
		'social_aim' => array(
			'id' 			=> 'social_aim',
			'title' 		=> __( 'AIM', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_aim']
		),
		'social_myspace' => array(
			'id' 			=> 'social_myspace',
			'title' 		=> __( 'MySpace', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_myspace']
		),
		'social_flickr' => array(
			'id' 			=> 'social_flickr',
			'title' 		=> __( 'Flickr', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_flickr']
		),
		'social_tumblr' => array(
			'id' 			=> 'social_tumblr',
			'title' 		=> __( 'Tumblr', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_tumblr']
		),
		'social_deviantart' => array(
			'id' 			=> 'social_deviantart',
			'title' 		=> __( 'deviantART', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_deviantart']
		),
		'social_dribbble' => array(
			'id' 			=> 'social_dribbble',
			'title' 		=> __( 'Dribbble', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_dribbble']
		),
		'social_wordpress' => array(
			'id' 			=> 'social_wordpress',
			'title' 		=> __( 'WordPress', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_wordpress']
		),
		'social_rss' => array(
			'id' 			=> 'social_rss',
			'title' 		=> __( 'RSS', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_rss']
		),
		'social_slideshare' => array(
			'id' 			=> 'social_slideshare',
			'title' 		=> __( 'Slideshare', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_slideshare']
		),
		'social_instagram' => array(
			'id' 			=> 'social_instagram',
			'title' 		=> __( 'Instagram', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_instagram']
		),
		'social_skype' => array(
			'id' 			=> 'social_skype',
			'title' 		=> __( 'Skype', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'sanitize_text_field',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_skype']
		),
		'social_soundcloud' => array(
			'id' 			=> 'social_soundcloud',
			'title' 		=> __( 'Soundcloud', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_soundcloud']
		),
		'social_email' => array(
			'id' 			=> 'social_email',
			'title' 		=> __( 'Email', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'sanitize_email',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_email']
		),
		'social_contact' => array(
			'id' 			=> 'social_contact',
			'title' 		=> __( 'Contact', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_contact']
		),
		'social_xing' => array(
			'id' 			=> 'social_xing',
			'title' 		=> __( 'Xing', 'catch-flames' ),
			'description'	=> '',
			'field_type' 	=> 'url',
			'sanitize' 		=> 'esc_url_raw',
			'panel' 		=> 'social_links',
			'section' 		=> 'social_links',
			'default' 		=> $defaults['social_xing']
		),
		'enable_specificfeeds' => array(
			'id' 				=> 'enable_specificfeeds',
			'title' 			=> __( 'Check to Enable SpecificFeeds', 'catch-flames' ),
			'description'		=> '',
			'field_type' 		=> 'checkbox',
			'sanitize' 			=> 'catchflames_sanitize_checkbox',
			'panel' 			=> 'social_links',
			'section' 			=> 'social_links',
			'default' 			=> $defaults['enable_specificfeeds'],
		),

		//Webmaster Tools
		'google_verification' => array(
			'id' 				=> 'google_verification',
			'title' 			=> __( 'Google Site Verification ID', 'catch-flames' ),
			'description' 		=> __( 'Enter your Google ID number only ', 'catch-flames' ),
			'field_type' 		=> 'text',
			'sanitize' 			=> 'wp_filter_post_kses',
			'panel' 			=> 'webmaster_tools',
			'section' 			=> 'site_verification',
			'default' 			=> $defaults['google_verification'],
		),
		'yahoo_verification' => array(
			'id' 				=> 'yahoo_verification',
			'title' 			=> __( 'Yahoo Site Verification ID', 'catch-flames' ),
			'description' 		=> __( 'Enter your Yahoo ID number only ', 'catch-flames' ),
			'field_type' 		=> 'text',
			'sanitize' 			=> 'wp_filter_post_kses',
			'panel' 			=> 'webmaster_tools',
			'section' 			=> 'site_verification',
			'default' 			=> $defaults['yahoo_verification'],
		),
		'bing_verification' => array(
			'id' 				=> 'bing_verification',
			'title' 			=> __( 'Bing Site Verification', 'catch-flames' ),
			'description' 		=> __( 'Enter your Bing ID number only ', 'catch-flames' ),
			'field_type' 		=> 'text',
			'sanitize' 			=> 'wp_filter_post_kses',
			'panel' 			=> 'webmaster_tools',
			'section' 			=> 'site_verification',
			'default' 			=> $defaults['bing_verification'],
		),
		'analytic_header' => array(
			'id' 				=> 'analytic_header',
			'title' 			=> __( 'Code to display on Header', 'catch-flames' ),
			'description' 		=> __( 'Here you can put scripts from Google, Facebook etc. which will load on Header', 'catch-flames' ),
			'field_type' 		=> 'textarea',
			'sanitize' 			=> 'wp_kses_stripslashes',
			'panel' 			=> 'webmaster_tools',
			'section' 			=> 'header_footer_codes',
			'default' 			=> $defaults['analytic_header'],
		),
		'analytic_footer' => array(
			'id' 				=> 'analytic_footer',
			'title' 			=> __( 'Code to display on Footer', 'catch-flames' ),
			'description' 		=> __( 'Here you can put scripts from Google, Facebook etc. which will load on Footer', 'catch-flames' ),
			'field_type' 		=> 'textarea',
			'sanitize' 			=> 'wp_kses_stripslashes',
			'panel' 			=> 'webmaster_tools',
			'section' 			=> 'header_footer_codes',
			'default' 			=> $defaults['analytic_footer'],
		),
	);

	foreach ( $settings_parameters as $option ) {
		$priority = isset( $option[ 'priority' ] ) ? $option[ 'priority' ] : '';
		$transport = isset( $option[ 'transport' ] ) ? $option[ 'transport' ] : 'refresh';
		if( 'color' == $option['field_type'] ) {
			$wp_customize->add_setting(
				// $id
				$theme_slug . 'options[' . $option['id'] . ']',
				// parameters array
				array(
					'type'				=> 'option',
					'sanitize_callback'	=> $option['sanitize'],
					'default'			=> $option['default'],
					'transport'			=> $transport
				)
			);

			$wp_customize->add_control(
				new WP_Customize_Color_Control(
					$wp_customize,$theme_slug . 'options[' . $option['id'] . ']',
					array(
						'label'			=> $option['title'],
						'section'   	=> $theme_slug . $option['section'],
						'settings'  	=> $theme_slug . 'options[' . $option['id'] . ']',
						'priority'		=> $priority,
						'description' 	=> $option['description'],
					)
				)
			);
		}
		if( 'image' == $option['field_type'] ) {
			$wp_customize->add_setting(
				// $id
				$theme_slug . 'options[' . $option['id'] . ']',
				// parameters array
				array(
					'type'				=> 'option',
					'sanitize_callback'	=> $option['sanitize'],
					'default'			=> $option['default'],
					'transport'			=> $transport
				)
			);

			$wp_customize->add_control(
				new WP_Customize_Image_Control(
					$wp_customize,$theme_slug . 'options[' . $option['id'] . ']',
					array(
						'label'			=> $option['title'],
						'section'   	=> $theme_slug . $option['section'],
						'settings'  	=> $theme_slug . 'options[' . $option['id'] . ']',
						'priority'		=> $priority,
						'description' 	=> $option['description'],
					)
				)
			);
		}
		else if ('checkbox' == $option['field_type'] ) {
			$wp_customize->add_setting(
				// $id
				$theme_slug . 'options[' . $option['id'] . ']',
				// parameters array
				array(
					'type'				=> 'option',
					'sanitize_callback'	=> $option['sanitize'],
					'default'			=> $option['default'],
					'transport'			=> $transport
				)
			);

			$params = array(
						'label'			=> $option['title'],
						'settings'  	=> $theme_slug . 'options[' . $option['id'] . ']',
						'name'  		=> $theme_slug . 'options[' . $option['id'] . ']',
						'priority'		=> $priority,
						'description' 	=> $option['description'],
					);

			if ( isset( $option['active_callback']  ) ){
				$params['active_callback'] = $option['active_callback'];
			}

			if ( 'header_image' == $option['section'] ){
				$params['section'] = $option['section'];
			}
			else {
				$params['section']	= $theme_slug . $option['section'];
			}

			$wp_customize->add_control(
				new Catchflames_Customize_Checkbox(
					$wp_customize,$theme_slug . 'options[' . $option['id'] . ']',
					$params
				)
			);
		}
		else if ('category-multiple' == $option['field_type'] ) {
			$wp_customize->add_setting(
				// $id
				$theme_slug . 'options[' . $option['id'] . ']',
				// parameters array
				array(
					'type'				=> 'option',
					'sanitize_callback'	=> $option['sanitize'],
					'default'			=> $option['default'],
					'transport'			=> $transport
				)
			);

			$params = array(
						'label'			=> $option['title'],
						'section'		=> $theme_slug . $option['section'],
						'settings'		=> $theme_slug . 'options[' . $option['id'] . ']',
						'description'	=> $option['description'],
						'name'	 		=> $theme_slug . 'options[' . $option['id'] . ']',
						'priority'		=> $priority,
					);

			if ( isset( $option['active_callback']  ) ){
				$params['active_callback'] = $option['active_callback'];
			}

			$wp_customize->add_control(
				new Catchflames_Customize_Dropdown_Categories_Control (
					$wp_customize,
					$theme_slug . 'options[' . $option['id'] . ']',
					$params
				)
			);
		}
		//For Font Size
		else if( 'multiple-input' == $option['field_type'] ){
			/* Body Font Size */
			$option1_id = $option['id'];
			$option2_id = $option['id'].'_unit';

			$wp_customize->add_setting( $theme_slug .'options['. $option1_id .']', array(
		            'default'        	=> $defaults[$option1_id],
		            'capability'     	=> 'edit_theme_options',
		            'sanitize_callback'	=> $option['sanitize'],
		            'type'				=> 'option',
		        ) );

			$wp_customize->add_setting( $theme_slug .'options['. $option2_id .']', array(
		            'default'        	=> $defaults[$option2_id],
		            'capability'     	=> 'edit_theme_options',
		            'sanitize_callback'	=> $option['sanitize'],
		            'type'				=> 'option',
		        ) );

			$control = new Catchflames_Customize_Multiple_Input_Control(
	            $wp_customize, $theme_slug .'options['. $option1_id .']', array(
	            'label'    		=> $option['title'],
	            'section'  		=> $theme_slug . $option['section'],
	            'description' 	=> $option['description'],
	            'settings'   	=> array (
	                $theme_slug .'options['. $option1_id .']',
	                $theme_slug .'options['. $option2_id .']',
	            )
	        ) );

		    $wp_customize->add_control( $control );
		}
		else {
			//Normal Loop
			$wp_customize->add_setting(
				// $id
				$theme_slug . 'options[' . $option['id'] . ']',
				// parameters array
				array(
					'default'			=> $option['default'],
					'type'				=> 'option',
					'sanitize_callback'	=> $option['sanitize'],
					'transport'			=> $transport
				)
			);

			// Add setting control
			$params = array(
					'label'			=> $option['title'],
					'settings'		=> $theme_slug . 'options[' . $option['id'] . ']',
					'type'			=> $option['field_type'],
					'description'   => $option['description'],
					'priority'		=> $priority
				) ;

			if ( isset( $option['choices']  ) ){
				$params['choices'] = $option['choices'];
			}

			if ( isset( $option['active_callback']  ) ){
				$params['active_callback'] = $option['active_callback'];
			}

			if ( isset( $option['input_attrs']  ) ){
				$params['input_attrs'] = $option['input_attrs'];
			}

			if ( 'header_image' == $option['section']){
				$params['section'] = $option['section'];
			}
			else {
				$params['section']	= $theme_slug . $option['section'];
			}

			$wp_customize->add_control(
				// $id
				$theme_slug . 'options[' . $option['id'] . ']',
				$params
			);
		}
	}

	//Add featured page elements with respect to no of featured sliders
	for ( $i = 1; $i <= $options[ 'slider_qty' ]; $i++ ) {
		$wp_customize->add_setting(
			// $id
			$theme_slug . 'options[featured_slider_page][' . $i . ']',
			// parameters array
			array(
				'type'				=> 'option',
				'sanitize_callback'	=> 'catchflames_sanitize_post_id'
			)
		);

		$wp_customize->add_control(
			$theme_slug . 'options[featured_slider_page][' . $i . ']',
			array(
				'label'				=> sprintf( __( 'Featured Page Slider #%s', 'catch-flames' ), $i ),
				'section'   		=> $theme_slug .'slider_options',
				'settings'  		=> $theme_slug . 'options[featured_slider_page][' . $i . ']',
				'type'				=> 'dropdown-pages',
				'active_callback'	=> 'catchflames_is_page_slider_active',
				'input_attrs' 		=> array(
	        		'style' => 'width: 100px;'
	    		),
			)
		);
	}

	//Add featured post elements with respect to no of featured sliders
	for ( $i = 1; $i <= $options[ 'slider_qty' ]; $i++ ) {
		$wp_customize->add_setting(
			// $id
			$theme_slug . 'options[featured_slider][' . $i . ']',
			// parameters array
			array(
				'type'				=> 'option',
				'sanitize_callback'	=> 'catchflames_sanitize_post_id'
			)
		);

		$wp_customize->add_control(
			$theme_slug . 'options[featured_slider][' . $i . ']',
			array(
				'label'		=> sprintf( __( 'Featured Post Slider ID #%s', 'catch-flames' ), $i ),
				'section'   => $theme_slug .'slider_options',
				'settings'  => $theme_slug . 'options[featured_slider][' . $i . ']',
				'type'		=> 'text',
					'input_attrs' => array(
	        		'style' => 'width: 100px;'
	    		),
				'active_callback' 	=> 'catchflames_is_post_slider_active'
			)
		);
	}

	//Add featured image elements with respect to no of featured slider
	for ( $i = 1; $i <= $options[ 'slider_qty' ]; $i++ ) {
		$wp_customize->add_setting( $theme_slug . 'options[featured_slider_note]['. $i .']', array(
			'capability'		=> 'edit_theme_options',
			'sanitize_callback'	=> 'sanitize_text_field',
		) );

		$wp_customize->add_control( new Catchflames_Note_Control(
			$wp_customize,
			$theme_slug . 'options[featured_slider_note]['. $i .']', array(
	        'active_callback'	=> 'catchflames_is_image_slider_active',
	        'label'		=> __( 'Featured Slide #', 'catch-flames' ) . $i,
	        'section'  	=> $theme_slug .'slider_options',
	        'settings'	=> $theme_slug . 'options[featured_slider_note][' . $i . ']',
	        'type'     	=> 'description',
   		) ) );

		$wp_customize->add_setting(
			// $id
			$theme_slug . 'options[featured_image_slider_image][' . $i . ']',
			// parameters array
			array(
				'type'				=> 'option',
				'sanitize_callback'	=> 'catchflames_sanitize_image'
			)
		);

		$wp_customize->add_control( new WP_Customize_Image_Control(
				$wp_customize,
				$theme_slug . 'options[featured_image_slider_image][' . $i . ']',
				array(
					'label'				=> __( 'Image', 'catch-flames' ),
					'section'   		=> $theme_slug .'slider_options',
					'settings'  		=> $theme_slug . 'options[featured_image_slider_image][' . $i . ']',
					'active_callback' 	=> 'catchflames_is_image_slider_active'
				)
			)
		);

		$wp_customize->add_setting(
			// $id
			$theme_slug . 'options[featured_image_slider_link][' . $i . ']',
			// parameters array
			array(
				'type'				=> 'option',
				'sanitize_callback'	=> 'esc_url_raw'
			)
		);

		$wp_customize->add_control(
			$theme_slug . 'options[featured_image_slider_link][' . $i . ']',
			array(
				'label'				=> __( 'Link', 'catch-flames' ),
				'section'   		=> $theme_slug .'slider_options',
				'settings'  		=> $theme_slug . 'options[featured_image_slider_link][' . $i . ']',
				'type'	   			=> 'url',
				'active_callback' 	=> 'catchflames_is_image_slider_active'
			)
		);

		$wp_customize->add_setting(
			// $id
			$theme_slug . 'options[featured_image_slider_base][' . $i . ']',
			// parameters array
			array(
				'type'				=> 'option',
				'sanitize_callback'	=> 'catchflames_sanitize_checkbox'
			)
		);

		$wp_customize->add_control(
			$theme_slug . 'options[featured_image_slider_base][' . $i . ']',
			array(
				'label'				=> __( 'Check to Open Link in New Window/Tab ', 'catch-flames' ),
				'section'   		=> $theme_slug .'slider_options',
				'settings'  		=> $theme_slug . 'options[featured_image_slider_base][' . $i . ']',
				'type'	   			=> 'checkbox',
				'active_callback' 	=> 'catchflames_is_image_slider_active'
			)
		);

		$wp_customize->add_setting(
			// $id
			$theme_slug . 'options[featured_image_slider_title][' . $i . ']',
			// parameters array
			array(
				'type'				=> 'option',
				'sanitize_callback'	=> 'sanitize_text_field'
			)
		);

		$wp_customize->add_control(
			$theme_slug . 'options[featured_image_slider_title][' . $i . ']',
			array(
				'label'				=> __( 'Title', 'catch-flames' ),
				'section'   		=> $theme_slug .'slider_options',
				'settings'  		=> $theme_slug . 'options[featured_image_slider_title][' . $i . ']',
				'type'	   			=> 'text',
				'active_callback' 	=> 'catchflames_is_image_slider_active'
			)
		);

		$wp_customize->add_setting(
			// $id
			$theme_slug . 'options[featured_image_slider_content][' . $i . ']',
			// parameters array
			array(
				'type'				=> 'option',
				'sanitize_callback'	=> 'sanitize_text_field'
			)
		);

		$wp_customize->add_control(
			$theme_slug . 'options[featured_image_slider_content][' . $i . ']',
			array(
				'label'				=> __( 'Content', 'catch-flames' ),
				'section'   		=> $theme_slug .'slider_options',
				'settings'  		=> $theme_slug . 'options[featured_image_slider_content][' . $i . ']',
				'type'	   			=> 'textarea',
				'active_callback' 	=> 'catchflames_is_image_slider_active'
			)
		);
	}


	// Reset all settings to default
	$wp_customize->add_section( 'catchflames_reset_all_settings', array(
		'description'	=> __( 'Caution: Reset all settings to default. Refresh the page after save to view full effects.', 'catch-flames' ),
		'priority' 		=> 700,
		'title'    		=> __( 'Reset all settings', 'catch-flames' ),
	) );

	$wp_customize->add_setting( 'catchflames_options[reset_all_settings]', array(
		'capability'		=> 'edit_theme_options',
		'sanitize_callback' => 'catchflames_reset_all_settings',
		'transport'			=> 'postMessage',
	) );

	$wp_customize->add_control( 'catchflames_options[reset_all_settings]', array(
		'label'    => __( 'Check to reset all settings to default', 'catch-flames' ),
		'section'  => 'catchflames_reset_all_settings',
		'settings' => 'catchflames_options[reset_all_settings]',
		'type'     => 'checkbox'
	) );
	// Reset all settings to default end

	//Important Links
	$wp_customize->add_section( 'important_links', array(
		'priority' 		=> 999,
		'title'   	 	=> __( 'Important Links', 'catch-flames' ),
	) );

	/**
	 * Has dummy Sanitizaition function as it contains no value to be sanitized
	 */
	$wp_customize->add_setting( 'important_links', array(
		'sanitize_callback'	=> 'catchflames_sanitize_important_link',
	) );

	$wp_customize->add_control( new Catchflames_Important_Links( $wp_customize, 'important_links', array(
        'label'   	=> __( 'Important Links', 'catch-flames' ),
        'section'  	=> 'important_links',
        'settings' 	=> 'important_links',
        'type'     	=> 'important_links',
    ) ) );
    //Important Links End
}
add_action( 'customize_register', 'catchflames_customize_register' );


/**
 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously for catch-flames.
 * And flushes out all transient data on preview
 *
 * @since Catch Flames 2.7
 */
function catchflames_customize_preview() {
	//Remove transients on preview
	catchflames_themeoption_invalidate_caches();

	global $catchflames_options_defaults ,$catchflames_options_settings;

	$catchflames_options_settings = catchflames_options_set_defaults( $catchflames_options_defaults );
}
add_action( 'customize_preview_init', 'catchflames_customize_preview' );
add_action( 'customize_save', 'catchflames_customize_preview' );


/**
 * Custom scripts and styles on Customizer for Catch Flames
 *
 * @since Catch Flames 2.7
 */
function catchflames_customize_scripts() {
	wp_enqueue_script( 'catchflames_customizer_custom', get_template_directory_uri() . '/inc/panel/customizer-custom-scripts.js', array( 'jquery' ), '20140108', true );
}
add_action( 'customize_controls_enqueue_scripts', 'catchflames_customize_scripts' );

//Active callbacks for customizer
require get_template_directory() . '/inc/panel/customizer/customizer-active-callbacks.php';

//Sanitize functions for customizer
require get_template_directory() . '/inc/panel/customizer/customizer-sanitize-functions.php';