<?php
if ( ! function_exists( 'catchflames_available_fonts' ) ) :
/**
 * Returns an array of fonts available to the theme.
 *
 * @since Catch Flames Pro 1.0
 */
function catchflames_available_fonts() {	

	return array(
		'arial-black'			=> '"Arial Black", Gadget, sans-serif',
		'allan'					=> 'Allan, sans-serif',
		'allerta'				=> 'Allerta, sans-serif',
		'amaranth'				=> 'Amaranth, sans-serif',
		'arial'					=> 'Arial, Helvetica, sans-serif',
		'bitter'				=> 'Bitter, sans-serif',
		'cabin'					=> 'Cabin, sans-serif',
		'cantarell'				=> 'Cantarell, sans-serif',
		'century-gothic'		=> '"Century Gothic", sans-serif',
		'courier-new'			=> '"Courier New", Courier, monospace',
		'crimson-text'			=> '"Crimson Text", sans-serif',
		'dancing-script'		=> '"Dancing Script", sans-serif',
		'droid-sans'			=> '"Droid Sans", sans-serif',
		'droid-serif'			=> '"Droid Serif", sans-serif',
		'georgia'				=> 'Georgia, "Times New Roman", Times, serif',
		'helvetica'				=> 'Helvetica, "Helvetica Neue", Arial, sans-serif',
		'helvetica-neue'		=> '"Helvetica Neue",Helvetica,Arial,sans-serif',
		'istok-web'				=> '"Istok Web", sans-serif',
		'impact'				=> 'Impact, Charcoal, sans-serif',
		'lato'					=> '"Lato", sans-serif',
		'lucida-sans-unicode'	=> '"Lucida Sans Unicode", "Lucida Grande", sans-serif',
		'lucida-grande'			=> '"Lucida Grande", "Lucida Sans Unicode", sans-serif',
		'lobster'				=> 'Lobster, sans-serif',
		'lora'					=> '"Lora", serif',
		'monaco'				=> 'Monaco, Consolas, "Lucida Console", monospace, sans-serif',
		'nobile'				=> 'Nobile, sans-serif',
		'open-sans'				=> '"Open Sans", sans-serif',
		'oswald'				=> '"Oswald", sans-serif',
		'palatino'				=> 'Palatino, "Palatino Linotype", "Book Antiqua", serif',	
		'patua-one'				=> '"Patua One", sans-serif',
		'playfair-display'		=> '"Playfair Display", sans-serif',
		'pt-sans'				=> '"PT Sans", sans-serif',
		'pt-serif'				=> '"PT Serif", serif',
		'quattrocento-sans' 	=> '"Quattrocento Sans", sans-serif',
		'tahoma'				=> 'Tahoma, Geneva, sans-serif',
		'trebuchet-ms'			=> '"Trebuchet MS", "Helvetica", sans-serif',
		'times-new-roman'		=> '"Times New Roman", Times, serif',
		'ubuntu'				=> 'Ubuntu, sans-serif',
		'verdana'				=> 'Verdana, Geneva, sans-serif',
		'yanone-kaffeesatz' 	=> '"Yanone Kaffeesatz", sans-serif'
	);
	
}
endif;


/**
 * @package Catch Themes
 * @subpackage Catch Flames Pro
 * @since Catch Flames Pro 1.0
 */

/**
 * Set the default values for all the settings. If no user-defined values
 * is available for any setting, these defaults will be used.
 */
global $catchflames_options_defaults;
$catchflames_options_defaults = array(
	'disable_responsive'				=> '0',
	'favicon'							=> get_template_directory_uri().'/images/favicon.ico',
 	'remove_favicon'					=> '0',	
	'web_clip'							=> get_template_directory_uri().'/images/apple-touch-icon.png',
 	'remove_web_clip'					=> '0',
	'featured_logo_header'				=> get_template_directory_uri().'/images/logo.png',
	'disable_header'					=> '0',
	'disable_header_content'			=> '0',
	'disable_header_right_search'		=> '0',
	'disable_header_right_sidebar'		=> '0',
 	'remove_header_logo'				=> '1',
 	'remove_site_title'					=> '0',
 	'remove_site_description'			=> '0',
	'site_title_above'					=> '0',
	'seperate_logo'						=> '0',
	'disable_header_menu'				=> '0',
	'search_display_text'				=> esc_attr__( 'Search', 'catch-flames' ),
	'reset_header_space'				=> '2',
	'header_top_size'					=> '20',
	'header_top_size_unit'				=> 'px',
	'header_bottom_size'				=> '20',
	'header_bottom_size_unit'			=> 'px',	
	'enable_header_top'					=> '0',
	'disable_top_menu_logo'				=> '0',
	'top_menu_logo'						=> get_template_directory_uri().'/images/fixed-logo.png',
	'disable_social'					=> '0',
	'disable_search'					=> '0',
	'enable_featured_header_image'		=> 'excludehome',
	'page_featured_image'				=> 'full',
	'featured_header_image_position'	=> 'before-menu',
	'featured_header_image_alt'			=> esc_attr( get_bloginfo( 'name', 'display' ) ),
	'featured_header_image_url'			=> esc_url( home_url( '/' ) ),
	'featured_header_image_base'		=> '0',
	'reset_header_image'				=> '2',
	'color_scheme'						=> 'light',
	'title_hover_color'					=> '#1982d1',
	'tagline_color'						=> '#7a7a7a',
	'text_color'						=> '#373737',
	'link_color'						=> '#1982d1',
	'reset_color'						=> '2',
	'content_background'				=> '#eee',
	'article_background'				=> '#fff',
	'heading_color'						=> '#222',
	'heading_hover_color'				=> '#1982d1',
	'meta_color'						=> '#666',
	'meta_link_color'					=> '#1982d1',
	'reset_content_color'				=> '2',
	'header_top_background'				=> '#fff',
	'header_background'					=> '#fff',
	'header_image_background'			=> '#fff',
	'reset_header_color'				=> '2',
	'slider_background'					=> '#fff',
	'slider_text'						=> '#fff',
	'reset_slider_color'				=> '2',
	'comment_background'				=> '#fff',
	'comment_text_color'				=> '#444',
	'comment_title_color'				=> '#222',
	'comment_link_color'				=> '#1982d1',
	'reset_comment_color'				=> '2',
	'scrollup_bg_color'					=> '#000',
	'scrollup_text_color'				=> '#fff',
	'reset_scrollup_color'				=> '2',
	'widget_background'					=> '#fff',
	'widget_heading_color'				=> '#222',
 	'widget_text_color'					=> '#373737',
	'widget_link_color'					=> '#1982d1',
	'reset_sidebar_color'				=> '2',
	'footer_background'					=> '#f1f1f1',
	'widget_footer_background'			=> '#fff',
	'widget_footer_title_color'			=> '#222',
	'widget_footer_text_color'			=> '#373737',
	'widget_footer_link_color'			=> '#1982d1',	
	'sitegenerator_background'			=> '#fff',
	'sitegenerator_text_color'			=> '#444',
	'sitegenerator_link_color'			=> '#000',
	'reset_footer_color'				=> '2',
	'menu_background'					=> '#222',
	'menu_color'						=> '#eee',
	'hover_background_color'			=> '#e5e5e5',
	'hover_text_color'					=> '#373737',
	'active_background_color'			=> 'transparent',
	'active_text_color'					=> '#eee',
	'sub_menu_bg_color'					=> '#f9f9f9',
	'sub_menu_text_color'				=> '#444',
	'secondary_menu_background'			=> '#dedede',
	'secondary_menu_color'				=> '#373737',
	'secondary_hover_background_color'	=> '#e5e5e5',
	'secondary_hover_text_color'		=> '#373737',
	'secondary_active_background'		=> 'transparent',
	'secondary_active_text_color'		=> '#373737',
	'secondary_sub_menu_bg_color'		=> '#f9f9f9',
	'secondary_sub_menu_text_color'		=> '#444',	
	'footer_menu_background'			=> '#222',
	'footer_menu_color'					=> '#eee',
	'footer_hover_background_color'		=> '#e5e5e5',
	'footer_hover_text_color'			=> '#373737',
	'footer_active_background_color'	=> 'transparent',
	'footer_active_text_color'			=> '#eee',
	'footer_sub_menu_bg_color'			=> '#f9f9f9',
	'footer_sub_menu_text_color'		=> '#444',
	'header_top_menu_bg_color'			=> 'transparent',
	'header_top_menu_color'				=> '#666',
	'header_top_hover_bg_color'			=> 'transparent',
	'header_top_hover_color'			=> '#1982d1',
	'header_top_active_bg_color'		=> 'transparent',
	'header_top_active_color'			=> '#1982d1',
	'header_top_sub_menu_bg_color'		=> '#fff',
	'header_top_sub_menu_color'			=> '#666',
	'header_top_sub_menu_border_color'	=> '#eee',
	'header_right_menu_bg_color'		=> 'transparent',
	'header_right_menu_color'			=> '#444',
	'header_right_hover_bg_color'		=> 'transparent',
	'header_right_hover_color'			=> '#1982d1',
	'header_right_active_bg_color'		=> 'transparent',
	'header_right_active_color'			=> '#1982d1',
	'header_right_sub_menu_bg_color'	=> '#fff',
	'header_right_sub_menu_color'		=> '#444',
	'header_right_border_top_color'		=> '#1982d1',
	'mobile_hamburger_open_color'		=> '#000',
	'mobile_hamburger_close_color'		=> '#000',
	'mobile_bg_color'					=> '#333',
	'mobile_color'						=> '#fff',
	'mobile_hover_bg_color'				=> '#333',
	'mobile_hover_color'				=> '#fff',
	'mobile_sub_menu_bg_color'			=> '#333',
	'mobile_sub_menu_color'				=> '#ccc',
	'mobile_border_color'				=> '#4d4d4d',
	'reset_menu_color'					=> '2',
	
	'reset_typography'					=> '2',
	'body_font'							=> 'helvetica',
	'title_font'						=> 'helvetica',
	'headings_font'						=> 'helvetica',
	'content_font'						=> 'helvetica',
	'reset_font_size'					=> '2',
	'body_font_size'					=> '15',
	'body_font_size_unit'				=> 'px',
	'body_line_height'					=> '1.62',
	'body_line_height_unit'				=> 'em',
	'site_title_font_size'				=> '36',
	'site_title_font_size_unit'			=> 'px',
	'site_title_line_height'			=> '46',
	'site_title_line_height_unit'		=> 'px',
	'site_description_font_size'		=> '14',
	'site_description_font_size_unit'	=> 'px',
	'site_description_line_height'		=> '1.62',
	'site_description_line_height_unit'	=> 'em',
	'h1_font_size'						=> '26',
	'h1_font_size_unit'					=> 'px',
	'h2_font_size'						=> '24',
	'h2_font_size_unit'					=> 'px',
	'h3_font_size'						=> '22',
	'h3_font_size_unit'					=> 'px',
	'h4_font_size'						=> '20',
	'h4_font_size_unit'					=> 'px',
	'headings_line_height'				=> '1.62',
	'headings_line_height_unit'			=> 'em',
	'content_font_size'					=> '15',
	'content_font_size_unit'			=> 'px',
	'content_line_height'				=> '1.62',
	'content_line_height_unit'			=> 'em',
	'sidebar_layout'					=> 'three-columns',
	'content_layout'					=> 'excerpt-border',
	'reset_sidebar_layout'				=> '2',
 	'front_page_category'				=> array(),
	'exclude_slider_post'				=> '0',
 	'slider_qty'						=> 4,
	'select_slider_type'				=> 'demo-slider',
	'select_slider_layout'				=> 'fullwidth',
	'enable_slider'						=> 'enable-slider-homepage',
	'slider_category'					=> array(),
 	'featured_slider'					=> array(),
	'featured_slider_page'				=> array(),
	'featured_image_slider_image'		=> array(),
	'featured_image_slider_link' 		=> array(),
	'featured_image_slider_base'		=> array(),
	'featured_image_slider_title' 		=> array(),
	'featured_image_slider_content' 	=> array(),
 	'transition_effect'					=> 'fade',
 	'transition_delay'					=> 4,
 	'transition_duration'				=> 1,
	'disable_footer_social'				=> 0,
 	'social_facebook'					=> '',
 	'social_twitter'					=> '',
 	'social_googleplus'					=> '',
 	'social_pinterest'					=> '',
 	'social_youtube'					=> '',
 	'social_vimeo'						=> '',
 	'social_linkedin'					=> '',
 	'social_aim'						=> '',
 	'social_myspace'					=> '',
 	'social_flickr'						=> '',
 	'social_tumblr'						=> '',
 	'social_deviantart'					=> '',
 	'social_dribbble'					=> '',
 	'social_wordpress'					=> '',
 	'social_rss'						=> '',
	'social_slideshare'					=> '',
 	'social_instagram'					=> '',
 	'social_skype'						=> '',
	'social_soundcloud'					=> '',
	'social_email'						=> '',
	'social_contact'					=> '',
	'social_xing'						=> '',
	'enable_specificfeeds'				=> '0',
 	'custom_css'						=> '',
	'disable_notifier'					=> '0',
	'disable_scrollup'					=> '0',
 	'google_verification'				=> '',
 	'yahoo_verification'				=> '',
 	'bing_verification'					=> '',
 	'analytic_header'					=> '',
 	'analytic_footer'					=> '',
 	'more_tag_text'						=> esc_attr__( 'Continue Reading', 'catch-flames' ) . ' &rarr;',
 	'excerpt_length'					=> 30,
	'reset_more_tag'					=> '2',
	'feed_url'							=> '',
	'commenting_setting'				=> 'default',
	'commenting_disable_notes'			=> '0',
	'commenting_disable_url'			=> '0',
	'footer_code'						=> '<div class="copyright">'. esc_attr__( 'Copyright', 'catch-flames' ) . ' &copy; [the-year] [site-link]. '. esc_attr__( 'All Rights Reserved', 'catch-flames' ) . '.</div><div class="powered">[theme-link]</div>',
	'reset_footer'						=> '2'
);
global $catchflames_options_settings;
$catchflames_options_settings = catchflames_options_set_defaults( $catchflames_options_defaults );

function catchflames_options_set_defaults( $catchflames_options_defaults ) {
	$catchflames_options_settings = array_merge( $catchflames_options_defaults, (array) get_option( 'catchflames_options', array() ) );
	return $catchflames_options_settings;
}

/**
 * Returns an array of color schemes registered for catch-flames.
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_color_schemes() {
	$options = array(
		'light' 		=> __( 'Light', 'catch-flames' ),
		'dark'			=> __( 'Dark', 'catch-flames' ),
	);

	return apply_filters( 'catchflames_color_schemes', $options );
}

/**
 * Returns an array of enable header image options
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_enable_header_featured_image_options() {
	$options = array(
		'homepage' 		=> __( 'Homepage', 'catch-flames' ),
		'excludehome' 	=> __( 'Excluding Homepage', 'catch-flames' ),
		'allpage' 		=> __( 'Entire Site', 'catch-flames' ),
		'postpage' 		=> __( 'Entire Site, Page/Post Featured Image', 'catch-flames' ),
		'pagespostes'	=> __( 'Pages & Posts', 'catch-flames' ),
		'disable'		=> __( 'Disable', 'catch-flames' ),
	);

	return apply_filters( 'catchflames_enable_header_featured_image_options', $options );
}

/**
 * Returns an array of sidebar layout options
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_sidebar_layout_options() {
	$options = array(
		'three-columns'			=> __( 'Three Columns', 'catch-flames' ),
		'three-columns-sidebar'	=> __( 'Three Columns Sidebar', 'catch-flames' ),
		'three-columns-equal'	=> __( 'Three Columns Equal', 'catch-flames' ),
		'right-sidebar' 		=> __( 'Right Sidebar', 'catch-flames' ),
		'left-sidebar' 			=> __( 'Left Sidebar', 'catch-flames' ),
		'no-sidebar-one-column'	=> __( 'No Sidebar, One Column', 'catch-flames' ),
		'no-sidebar-full-width'	=> __( 'No Sidebar, Full Width', 'catch-flames' ),
		'no-sidebar'			=> __( 'No Sidebar', 'catch-flames' ),
		
	);

	return apply_filters( 'catchflames_sidebar_layout_options', $options );
}


/**
 * Returns an array of content layout options
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_content_layout_options() {
	$options = array(
		'excerpt-border'	=> __( 'Excerpt/Blog Display (Style 1 - Featured Image Size )', 'catch-flames' ),
		'excerpt'			=> __( 'Excerpt/Blog Display (Style 2 - Featured Image Size )', 'catch-flames' ),
		'excerpt-full'		=> __( 'Excerpt/Blog Display ( Full Image Size )', 'catch-flames' ),
		'excerpt-small'		=> __( 'Excerpt/Blog Display ( Featured Image Small )', 'catch-flames' ),
		'excerpt-square'	=> __( 'Excerpt/Blog Display ( Featured Image Square )', 'catch-flames' ),
		'excerpt-tall'		=> __( 'Excerpt/Blog Display ( Featured Image Tall )', 'catch-flames' ),
		'full' 				=> __( 'Full Content Display', 'catch-flames' ),

	);

	return apply_filters( 'catchflames_content_layout_options', $options );
}

/**
 * Returns an array of slider enable options
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_enable_slider_options() {
	$options = array(
		'enable-slider-homepage'=> __( 'Homepage', 'catch-flames' ),
		'enable-slider-allpage' => __( 'Entire Site', 'catch-flames' ),
		'disable-slider' 		=> __( 'Disable', 'catch-flames' ),
	);

	return apply_filters( 'catchflames_enable_slider_options', $options );
}


/**
 * Returns an array of slider transition effects
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_transition_effects() {
	$options = array(
		'fade'			=> __( 'fade', 'catch-flames' ),
		'wipe' 			=> __( 'wipe', 'catch-flames' ),
		'scrollUp' 		=> __( 'scrollUp', 'catch-flames' ),
		'scrollDown'	=> __( 'scrollDown', 'catch-flames' ),
		'scrollUp' 		=> __( 'scrollUp', 'catch-flames' ),
		'scrollLeft'	=> __( 'scrollLeft', 'catch-flames' ),
		'scrollRight'	=> __( 'scrollRight', 'catch-flames' ),
		'blindX' 		=> __( 'blindX', 'catch-flames' ),
		'blindY' 		=> __( 'blindY', 'catch-flames' ),
		'blindZ' 		=> __( 'blindZ', 'catch-flames' ),
		'cover' 		=> __( 'cover', 'catch-flames' ),
		'shuffle' 		=> __( 'shuffle', 'catch-flames' ),
	);

	return apply_filters( 'catchflames_transition_effects', $options );
}


/**
 * Returns an array of slider types
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_slider_types() {
	$options = array(
		'demo-slider' 		=> __( 'Demo Slider', 'catch-flames' ),
		'post-slider' 		=> __( 'Featured Post Slider', 'catch-flames' ),
		'page-slider' 		=> __( 'Featured Page Slider', 'catch-flames' ),
		'category-slider' 	=> __( 'Featured Category Slider', 'catch-flames' ),
		'image-slider' 		=> __( 'Featured Image Slider', 'catch-flames' ),
	);

	return apply_filters( 'catchflames_slider_types', $options );
}

/**
 * Returns an array of slider layout
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_slider_layout() {
	$options = array(
		'fullwidth' 	=> __( 'Full Width Slider', 'catch-flames' ),
		'normal' 		=> __( 'Normal Width Slider', 'catch-flames' ),
	);

	return apply_filters( 'catchflames_slider_layout', $options );
}

/**
 * Returns an array of featured image sizes
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_enable_header_featured_image_size() {
	$options = array(
		'full' 			=> __( 'Full Image', 'catch-flames' ),
		'slider' 		=> __( 'Full Width Slider Image', 'catch-flames' ),
		'featured' 		=> __( 'Normal Width Slider Image', 'catch-flames' ),
	);

	return apply_filters( 'catchflames_enable_header_featured_image_size', $options );
}

/**
 * Returns an array of featured image positions
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_enable_header_featured_image_position() {
	$options = array(
		'before-menu' 			=> __( 'Before Menu', 'catch-flames' ),
		'after-menu' 			=> __( 'After Menu', 'catch-flames' ),
		'before-header' 		=> __( 'Before Header', 'catch-flames' ),
		'after-sidebartop' 		=> __( 'After Top Sidebar', 'catch-flames' ),
	);

	return apply_filters( 'catchflames_enable_header_featured_image_position', $options );
}

/**
 * Returns an array of comment option
 *
 * @since Catch Flames Pro 3.3
 */
function catchflames_comment_option() {
	$options = array(
		'default'	=> __( 'Use WordPress Settings', 'catch-flames' ),
		'page'		=> __( 'Disable in Pages', 'catch-flames' ),
		'disable'	=> __( 'Disable Completely', 'catch-flames' ),
	);

	return apply_filters( 'catchflames_comment_option', $options );
}