<?php
/**
 * A unique identifier is defined to store the options in the database and reference them from the theme.
 * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
 * If the identifier changes, it'll appear as if the options have been reset.
 */

function optionsframework_option_name() {
    $optionsframework_settings = get_option('optionsframework');
    $optionsframework_settings['id'] = 'options_theme_customizer';
    update_option('optionsframework', $optionsframework_settings);
}

/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the 'id' fields, make sure to use all lowercase and no spaces.
 *
 * If you are making your theme translatable, you should replace 'wpex'
 * with the actual text domain for your theme.  Read more:
 * http://codex.wordpress.org/Function_Reference/load_theme_textdomain
 */

function optionsframework_options() {

	$options = array();
	
	//Pull all the categories into an array
	$blog_cats = array();
	$blog_cats_obj = get_categories();
	$blog_cats[''] = __('Select a category:','wpex');
	foreach ($blog_cats_obj as $blog_cat) {
		$blog_cats[$blog_cat->cat_ID] = $blog_cat->cat_name;
	}
	
	// Combine system and Google Fonts
	$typography_mixed_fonts = array_merge( wpex_typography_get_os_fonts() , wpex_typography_get_google_fonts() );
	asort($typography_mixed_fonts);
	
	// Column options
	$column_options = array( '1'	=> '1', '2'	=> '2', '3'	=> '3', '4'	=> '4', '5'	=> '5' );
	
	// Labels
	$portfolio_label = __('Porfolio','wpex');
	$portfolio_label = of_get_option('portfolio_labels','Portfolio');
	
	$services_label = __('Services','wpex');
	$services_label = of_get_option('services_labels','Services') ;
	
	$staff_label = __('Staff','wpex');
	$staff_label = of_get_option('staff_labels','Staff');
	
	$faq_label = __('FAQ','wpex');
	$faq_label = of_get_option('faq_labels','FAQ');
	
	$testimonials_label = __('Testimonials','wpex');
	$testimonials_label = of_get_option('testimonials_labels','Testimonials');



	/***
	* GENERAL
	*************/
	
	$options[] = array(
		'name'	=> __('General', 'wpex'),
		'type'	=> 'heading');
		
	$options['responsive'] = array(
		'name'	=> __('Responsive?', 'wpex'),
		'desc'	=> __('Check box to enable the responsive layout.', 'wpex'),
		'id'	=> 'responsive',
		'std'	=> '1',
		'type'	=> 'checkbox');
		
	$options['retina_support'] = array(
		'name'	=> __('Retina Support For Featured Images?', 'wpex'),
		'desc'	=> __('Check box to enable the retina support for featured images. This will duplicate each featured image on your server to provide a retina alternative. Best to keep disabled if using a caching system such as W3TC as it seems to create issues at times.', 'wpex'),
		'id'	=> 'retina_support',
		'std'	=> '0',
		'type'	=> 'checkbox');
		
	// Branding
	$options[] = array(
		'name'	=> __('Branding', 'wpex'),
		'type'	=> 'subheading');
		
	$options['custom_logo'] = array(
		'name'	=> __('Logo', 'wpex'),
		'desc'	=> __('Upload your custom logo.', 'wpex'),
		'std'	=> '',
		'id'	=> 'custom_logo',
		'type'	=> 'upload');
		
	$options['custom_retina_logo'] = array(
		'name'	=> __('Retina Logo (optional)', 'wpex'),
		'desc'	=> __('Upload your custom retina ready logo.', 'wpex'),
		'std'	=> '',
		'id'	=> 'custom_retina_logo',
		'type'	=> 'upload');
		
	$options['logo_height'] = array(
		'name'	=> __('Standard Logo Height', 'wpex'),
		'desc'	=> __('Enter your standard logo height in pixels. Used for retina purposes. Should be 1/2 the height of your retina logo dimensions and do not include the "px" string. Example: 150', 'wpex'),
		'std'	=> '',
		'id'	=> 'logo_height',
		'type'	=> 'text');
		
	$options['logo_width'] = array(
		'name'	=> __('Standard Logo Width', 'wpex'),
		'desc'	=> __('Enter your standard logo width in pixels. Used for retina purposes. Should be 1/2 the width of your retina logo dimensions and do not include the "px" string. Example: 80', 'wpex'),
		'std'	=> '',
		'id'	=> 'logo_width',
		'type'	=> 'text');
		
		
	// Styling
	$options[] = array(
		'name'	=> __('Styling', 'wpex'),
		'type'	=> 'subheading');
		
	$options['layout'] = array(
		'name'	=> __('Layout', 'wpex'),
		'desc'	=> __('Select your preferred layout', 'wpex'),
		'id'	=> 'layout',
		'std'	=> 'boxed',
		'type'	=> 'select',
		'options'	=> array(
			'boxed'	=> 'Boxed',
			'full'	=> 'Full-Width',
		) );
		
	$options['header_style'] = array(
		'name'	=> __('Header Style', 'wpex'),
		'desc'	=> __('Select your preferred header style', 'wpex'),
		'id'	=> 'header_style',
		'std'	=> 'one',
		'type'	=> 'select',
		'options'	=> array(
			'one'	=> 'One',
			'two'	=> 'Two',
			'three'	=> 'Three',
		) );

	if ( of_get_option('layout','boxed') == 'boxed' ) {
		
		$options['custom_bg_color'] = array(
			'name'	=> __('Custom Background Color', 'wpex'),
			'desc'	=> __('Here you can select the custom background color of your choice. Note: Some background images options (below) are see through so this color will show up behind', 'wpex'),
			'id'	=> 'custom_bg_color',
			'std'	=> '',
			'type'	=> 'color');
			
		$wpex_skins =  get_template_directory_uri() . '/images/skins/';		
		$options['predefined_bg_color'] = array(
			'name'	=> __('Predefined Background Colors','wpex'),
			'desc'	=> __('Select your color of choice for your theme design. BOXED style only.','wpex'),
			'id'	=> "predefined_bg_color",
			'std'	=> "none",
			'type'	=> "images",
			'options'	=> array(
				'none'	=> $wpex_skins . 'none.png',
				'#000000'	=> $wpex_skins . 'dark.png',
				'#485f71'	=> $wpex_skins . 'steel.png',
				'#dd6342'	=> $wpex_skins . 'orange.png',
				'#9d5add'	=> $wpex_skins . 'purple.png',
				'#307e6c'	=> $wpex_skins . 'green.png',
				'#43aca7'	=> $wpex_skins . 'teal.png',
				'#8dbe4d'	=> $wpex_skins . 'mint.png',
				'#f65949'	=> $wpex_skins . 'peach.png',
				'#ea3636'	=> $wpex_skins . 'red.png',
				'#e76194'	=> $wpex_skins . 'pink.png',
				'#77655d'	=> $wpex_skins . 'earth.png'
			)
		);	
		
		$wpex_bgs =  get_template_directory_uri() . '/images/bgs/options/';
		$options['predefined_bg_img'] = array(
			'name'	=> __('Predefined Background Images','wpex'),
			'desc'	=> __('For more options use the WordPress background editor @ Apperance->Background. BOXED style only.','wpex'),
			'id'	=> "predefined_bg_img",
			'std'	=> "none",
			'type'	=> "images",
			'options'	=> array(
				'none'	=> $wpex_bgs . 'none.png',
				'brushed_alu_dark'	=> $wpex_bgs . 'brushed_alu_dark.png',
				'dark_wall'	=> $wpex_bgs . 'dark_wall.png',
				'debut_dark'	=> $wpex_bgs . 'debut_dark.png',
				'denim'	=> $wpex_bgs . 'denim.png',
				'gray_sand'	=> $wpex_bgs . 'gray_sand.png',
				'green-fibers'	=> $wpex_bgs . 'green-fibers.png',
				'inflicted'	=> $wpex_bgs . 'inflicted.png',
				'irongrip'	=> $wpex_bgs . 'irongrip.png',
				'low_contrast_linen'	=> $wpex_bgs . 'low_contrast_linen.png',
				'mocha_grunge'	=> $wpex_bgs . 'mocha_grunge.png',
				'otis_redding'	=> $wpex_bgs . 'otis_redding.png',
				'pinstriped_suit'	=> $wpex_bgs . 'pinstriped_suit.png',
				'px_by_Gre3g'	=> $wpex_bgs . 'px_by_Gre3g.png',
				'random_grey_variations'	=> $wpex_bgs . 'random_grey_variations.png',
				'vertical_cloth'	=> $wpex_bgs . 'vertical_cloth.png',
				'wild_oliva'	=> $wpex_bgs . 'wild_oliva.png'
			)
		);
	
	}
	
	
	$options['skin_top_color'] = array(
		'name'	=> __('Custom Skin Top Color', 'wpex'),
		'desc'	=> __('The theme makes use of colors/gradients throughout the site. Use this setting to customize that default color scheme. This option defined the top gradient color or flat color for non-gradient styles.', 'wpex'),
		'id'	=> 'skin_top_color',
		'std'	=> '',
		'type'	=> 'color');
		
	$options['skin_bottom_color'] = array(
		'name'	=> __('Custom Skin Bottom Color', 'wpex'),
		'desc'	=> __('The theme makes use of colors/gradients throughout the site. Use this setting to customize that default color scheme. This option defined the bottom gradient color for gradient styles.', 'wpex'),
		'id'	=> 'skin_bottom_color',
		'std'	=> '',
		'type'	=> 'color');
	
	// Top bar
	$options[] = array(
		'name'	=> __('Top Bar', 'wpex'),
		'type'	=> 'subheading');

	$options['top_bar'] = array(
		'name'	=> __('Enable Top Bar?', 'wpex'),
		'desc'	=> __('Check box to enable the top bar area.', 'wpex'),
		'id'	=> 'top_bar',
		'std'	=> '1',
		'type'	=> 'checkbox');
		
	$options['top_bar_left_content'] = array(
		'name'	=> __('Top Bar Left Content', 'wpex'),
		'desc'	=> __('Enter your top bar left content text/html here.', 'wpex'),
		'id'	=> 'top_bar_left_content',
		'std'	=> __('Call Us Today ~ 1-800-999-99-99','wpex'),
		'type'	=> 'textarea');
		
	$options['top_bar_left_content_icon'] = array(
		'name'	=> __('Top Bar Left Content Icon', 'wpex'),
		'desc'	=> __('Select your top bar left content icon.', 'wpex'),
		'id'	=> 'top_bar_left_content_icon',
		'std'	=> 'bullhorn',
		'type'	=> 'select',
		'options'	=> wpex_get_awesome_icons() );
		
	$options['callout_button_top_color'] = array(
		'name'	=> __('Callout Button Top BG Color', 'wpex'),
		'desc'	=> __('Select the top gradient color for your callout button.', 'wpex'),
		'id'	=> 'callout_button_top_color',
		'std'	=> '',
		'type'	=> 'color');
		
	$options['callout_button_bottom_color'] = array(
		'name'	=> __('Callout Button BG Color', 'wpex'),
		'desc'	=> __('Select the bottom gradient color for your callout button.', 'wpex'),
		'id'	=> 'callout_button_bottom_color',
		'std'	=> '',
		'type'	=> 'color');
				
	$options['callout_button_txt_color'] = array(
		'name'	=> __('Callout Button Text Color', 'wpex'),
		'desc'	=> __('Select the color for your callout button text.', 'wpex'),
		'id'	=> 'callout_button_txt_color',
		'std'	=> '',
		'type'	=> 'color');
	
	
	// Header	
	$options[] = array(
		'name'	=> __('Header', 'wpex'),
		'type'	=> 'subheading');
		
	$options['header_top_margin'] = array(
		'name'	=> __('Header Top Margin', 'wpex'),
		'desc'	=> __('Enter a custom header top margin. Value in pixels.', 'wpex'),
		'id'	=> 'header_top_margin',
		'std'	=> '45',
		'type'	=> 'text');
		
	$options['header_bottom_margin'] = array(
		'name'	=> __('Header Bottom Margin', 'wpex'),
		'desc'	=> __('Enter a custom header bottom margin. Value in pixels.', 'wpex'),
		'id'	=> 'header_bottom_margin',
		'std'	=> '45',
		'type'	=> 'text');
		
	$options['header_search'] = array(
		'name'	=> __('Enable Header Search?', 'wpex'),
		'desc'	=> __('Check box to enable the search form in the header.', 'wpex'),
		'id'	=> 'header_search',
		'std'	=> '1',
		'type'	=> 'checkbox');
		
	// Footer
	$options[] = array(
		'name'	=> __('Footer', 'wpex'),
		'type'	=> 'subheading');
		
	$options['footer_widgets'] = array(
		'name'	=> __('Enable Footer Widgets?', 'wpex'),
		'desc'	=> __('Check box to enable the footer widgets.', 'wpex'),
		'id'	=> 'footer_widgets',
		'std'	=> '1',
		'type'	=> 'checkbox');
			
	$options['footer_columns'] = array(
			'name'	=> __('Footer Columns', 'wpex'),
			'desc'	=> __('Select your preferred ammount of columns for footer widgets.', 'wpex'),
			'id'	=> 'footer_columns',
			'std'	=> '4',
			'type'	=> 'select',
			'options'	=> array(
					'1'	=> '1',
					'2'	=> '2',
					'3'	=> '3',
					'4'	=> '4'
				)
			);	
			
	$options['copyright'] = array(
		'name'	=> __('Custom Copyright', 'wpex'),
		'desc'	=> __('Enter your custom copyright text here.', 'wpex'),
		'id'	=> 'copyright',
		'std'	=> '',
		'type'	=> 'textarea');	
	
	// Misc	
	$options[] = array(
		'name'	=> __('Misc', 'wpex'),
		'type'	=> 'subheading');	
				
	$options['custom_wp_gallery'] = array(
		'name'	=> __('Custom WP Gallery', 'wpex'),
		'desc'	=> __('Check box to disable the built-in custom WordPress gallery shortcode output.', 'wpex'),
		'id'	=> 'custom_wp_gallery',
		'std'	=> '1',
		'type'	=> 'checkbox');
		
	$options['custom_wp_gallery_img_width'] = array(
		'name'	=> __('Custom WP Gallery Image Width', 'wpex'),
		'desc'	=> __('You can enter a crop value for your custom WP Gallery Image Width. Default is 450.', 'wpex'),
		'id'	=> 'custom_wp_gallery_img_width',
		'std'	=> '500',
		'type'	=> 'text');
		
	$options['custom_wp_gallery_img_height'] = array(
		'name'	=> __('Custom WP Gallery Image Height', 'wpex'),
		'desc'	=> __('You can enter a crop value for your custom WP Gallery Image Height. Default is 450.', 'wpex'),
		'id'	=> 'custom_wp_gallery_img_height',
		'std'	=> '450',
		'type'	=> 'text');
		
	$options['custom_404_replace'] = array(
		'name'	=> __('Replace 404 Error Page with Image', 'wpex'),
		'desc'	=> __('Upload your image.', 'wpex'),
		'std'	=> '',
		'id'	=> 'custom_404_replace',
		'type'	=> 'upload');
	
	
	/***
	* FONTS
	*************/
	$options[] = array(
		'name'	=> __('Fonts', 'wpex'),
		'type'	=> 'heading');
		
	$options[] = array(
		'name'	=> __('Google Fonts Info', 'wpex'),
		'desc'	=> __('For live samples of included Google Font options please visit','wpex') .' <a href="http://www.google.com/webfonts" target="_blank">Google Fonts &rarr;</a>',
		'type'	=> 'info');
		
	$options['body_font'] = array(
		'name'	=> 'Body',
		'desc'	=> '',
		'id'	=> 'body_font',
		'std'	=> array( 'size'	=> '13px', 'face'	=> '"Helvetica Neue", Helvetica, sans-serif', 'color'	=> '#787878', 'style'	=> 'normal' ),
		'type'	=> 'typography',
		'options'	=> array(
				'faces'	=> $typography_mixed_fonts,
				'color'	=> false,
				'styles'	=> false
			)
		);
		
	$options['main_nav_font'] = array(
		'name'	=> 'Main Navigation',
		'desc'	=> '',
		'id'	=> 'main_nav_font',
		'std'	=> array( 'size'	=> '13px', 'face'	=> '"Helvetica Neue", Helvetica, sans-serif', 'color'	=> '#fff', 'style'	=> 'normal' ),
		'type'	=> 'typography',
		'options'	=> array(
				'faces'	=> $typography_mixed_fonts,
				'color'	=> false
			)
		);
		
	$options['main_nav_dropdown_font'] = array(
		'name'	=> 'Main Navigation Dropdown',
		'desc'	=> '',
		'id'	=> 'main_nav_dropdown_font',
		'std'	=> array( 'size'	=> '12px', 'face'	=> '"Helvetica Neue", Helvetica, sans-serif', 'color'	=> '#fff', 'style'	=> 'normal' ),
		'type'	=> 'typography',
		'options'	=> array(
				'faces'	=> $typography_mixed_fonts,
				'color'	=> false
			)
		);

				
	$options['page_heading_fonts'] = array(
		'name'	=> 'Page Titles',
		'desc'	=> '',
		'id'	=> 'page_heading_fonts',
		'std'	=> array( 'size'	=> '26px', 'face'	=> '"Helvetica Neue", Helvetica, sans-serif', 'color'	=> '#222', 'style'	=> 'bold' ),
		'type'	=> 'typography',
		'options'	=> array(
				'faces'	=> $typography_mixed_fonts,
				'color'	=> false
			)
		);
		
	$options['heading_fonts'] = array(
		'name'	=> 'h2,h3,h4,h5,h6 Headings',
		'desc'	=> '',
		'id'	=> 'heading_fonts',
		'std'	=> array( 'face'	=> '"Helvetica Neue", Helvetica, sans-serif', 'style'	=> 'bold' ),
		'type'	=> 'typography',
		'options'	=> array(
			'faces'	=> $typography_mixed_fonts,
			'sizes'	=> false,
			'color'	=> false )
		);
		
	$options['page_img_overlay_fonts'] = array(
		'name'	=> 'Page Thumbnail Overlay',
		'desc'	=> '',
		'id'	=> 'page_img_overlay_fonts',
		'std'	=> array( 'size'	=> '18px', 'face'	=> '"Helvetica Neue", Helvetica, sans-serif', 'color'	=> '#222', 'style'	=> 'normal' ),
		'type'	=> 'typography',
		'options'	=> array(
				'faces'	=> $typography_mixed_fonts,
				'color'	=> false
			)
		);
		
	$options['symple_heading_fonts'] = array(
		'name'	=> 'Symple Heading Shortcode',
		'desc'	=> '',
		'id'	=> 'symple_heading_fonts',
		'std'	=> array( 'size'	=> '14px', 'face'	=> '"Helvetica Neue", Helvetica, sans-serif', 'style'	=> 'bold' ),
		'type'	=> 'typography',
		'options'	=> array(
				'faces'	=> $typography_mixed_fonts,
				'color'	=> false
			)
		);


	/***
	* SOCIAL
	*************/
	$options[] = array(
		'name'	=> __('Social', 'wpex'),
		'type'	=> 'heading');
			
	$options['social'] = array(
		'name'	=> __('Social?', 'wpex'),
		'desc'	=> __('Check box to enable the social in the theme header.', 'wpex'),
		'id'	=> 'social',
		'std'	=> '1',
		'type'	=> 'checkbox');

		$social_links = wpex_get_social(); // Get social links array
		
		// Loop through each social option and create a theme option
		foreach($social_links as $social_link) {
		$options[] = array( "name"	=> ucfirst($social_link),
							'desc'	=> ' '. __('Enter your ','wpex') . $social_link . __(' url','wpex') .' <br />'. __('Include http:// at the front of the url.', 'wpex'),
							'id'	=> $social_link,
							'std'	=> '#',
							'type'	=> 'text');
		}
	
	
	
	/***
	* Homepage
	*************/
	$options[] = array(
		'name'	=> __('Home', 'wpex'),
		'type'	=> 'heading');

	$options[] = array(
		'name'	=> __('Pre-Built Homepage', 'wpex'),
		'desc'	=> __('We recommend using the shortcodes and default Homepage template for creating the perfect homepage layout for your site, however, if you prefer you can make use of the pre-built sytem to setup a homepage with little effort. Don\'t forget to first create your homepage and select the pre-built template option.', 'wpex'),
		'type'	=> 'info');
		
	$options[] = array(
		'name'	=> __('Slider & Tagline', 'wpex'),
		'type'	=> 'subheading');
			
	$options['home_slider'] = array(
				'name'	=> __('Slider Shortcode', 'wpex'),
				'desc'	=> __('Enter your homepage slider shortcode in here.', 'wpex'),
				'id'	=> 'home_slider',
				'std'	=> '',
				'type'	=> 'text');
				
	$options['home_tagline_enable'] = array(
				'name'	=> __('Enable Tagline', 'wpex'),
				'desc'	=> __('Check this box to enable the tagline.', 'wpex'),
				'id'	=> 'home_tagline_enable',
				'std'	=> '1',
				'type'	=> 'checkbox');
			
	$options['home_tagline'] = array(
				'name'	=> __('Tagline', 'wpex'),
				'desc'	=> '',
				'id'	=> 'home_tagline',
				'std'	=> '<p>Hope you are ready for this awesome WordPress Theme!</p>
							[symple_button color="orange" url="http://www.wpexplorer.com" title="Start Today" target="blank" border_radius="99px" class="large" icon_right="arrow-right"]Purchase[/symple_button]',
				'type'	=> 'editor');
	
	// Home Services
	if ( class_exists( 'Symple_Services_Post_Type' ) ) {
		
		$options[] = array(
			'name'	=> $services_label,
			'type'	=> 'subheading');
			
						
		$options['home_services_enable'] = array(
				'name'	=> __('Enable', 'wpex'). ' '. $services_label,
				'desc'	=> __('Check this box to enable this section.', 'wpex'),
				'id'	=> 'home_services_enable',
				'std'	=> '1',
				'type'	=> 'checkbox');
				
		$options['home_services_title'] = array(
					'name'	=> $services_label .' '. __('Title', 'wpex'),
					'desc'	=> __('Enter your custom section title. Enter the words "disable" to disable the title completely.', 'wpex'),
					'id'	=> 'home_services_title',
					'std'	=> 'disable',
					'type'	=> 'text');
					
		$options['home_services_category'] = array(
					'name'	=> $services_label .' '. __('Category', 'wpex'),
					'desc'	=> __('If you wish to show a specific category instead of the most recent items, select it here.', 'wpex'),
					'id'	=> 'home_services_category',
					'std'	=> 'All',
					'type'	=> 'select',
					'options'	=> wpex_posttype_cats('services') );
					
		$options['home_services_count'] = array(
					'name'	=>$services_label .' '.  __('Count', 'wpex'),
					'desc'	=> __('How many services do you wish to show? Enter 0 to disable this section.', 'wpex'),
					'id'	=> 'home_services_count',
					'std'	=> '6',
					'type'	=> 'text');
					
		$options['home_services_columns'] = array(
					'name'	=> $services_label .' '. __('Columns', 'wpex'),
					'desc'	=> __('How many columns for the grid?', 'wpex'),
					'id'	=> 'home_services_columns',
					'std'	=> '3',
					'type'	=> 'select',
					'options'	=> $column_options );	
								
	} // End services post type check
	
	
	// Home Portfolio
	if ( class_exists( 'Symple_Portfolio_Post_Type' ) ) {
				
		$options[] = array(
			'name'	=> $portfolio_label,
			'type'	=> 'subheading');
			
		$options['home_portfolio_enable'] = array(
				'name'	=> __('Enable', 'wpex'). ' '. $portfolio_label,
				'desc'	=> __('Check this box to enable this section.', 'wpex'),
				'id'	=> 'home_portfolio_enable',
				'std'	=> '1',
				'type'	=> 'checkbox');
					
		$options['home_portfolio_title'] = array(
					'name'	=> $portfolio_label .' '. __('Title', 'wpex'),
					'desc'	=> __('Enter your custom portfolio section title. Enter the words "disable" to disable the title completely.', 'wpex'),
					'id'	=> 'home_portfolio_title',
					'std'	=> '',
					'type'	=> 'text');
					
		$options['home_portfolio_category'] = array(
					'name'	=> $portfolio_label .' '. __('Category', 'wpex'),
					'desc'	=> __('If you wish to show a specific category instead of the most recent items, select it here.', 'wpex'),
					'id'	=> 'home_portfolio_category',
					'std'	=> '',
					'type'	=> 'select',
					'options'	=> wpex_posttype_cats('portfolio') );
					
		$options['home_portfolio_count'] = array(
					'name'	=> $portfolio_label. __('Count', 'wpex'),
					'desc'	=> __('How many items do you wish to show? Enter 0 to disable this section.', 'wpex'),
					'id'	=> 'home_portfolio_count',
					'std'	=> '8',
					'type'	=> 'text');
					
		$options['home_portfolio_columns'] = array(
					'name'	=> $portfolio_label .' '. __('Columns', 'wpex'),
					'desc'	=> __('How many columns for the grid?', 'wpex'),
					'id'	=> 'home_portfolio_columns',
					'std'	=> '4',
					'type'	=> 'select',
					'options'	=> $column_options );
					
		$options['home_portfolio_thumbail_height'] = array(
					'name'	=> $portfolio_label .' '. __('Thumbnail Height', 'wpex'),
					'desc'	=> __('Enter a custom thumbnail height for your entries. Do not leave blank.', 'wpex'),
					'id'	=> 'home_portfolio_thumbail_height',
					'std'	=> '300',
					'type'	=> 'text');
					
		$options['home_portfolio_filter'] = array(
					'name'	=> $portfolio_label .' '. __('Category Filter', 'wpex'),
					'desc'	=> __('Set to true if you wish to show the category filter.', 'wpex'),
					'id'	=> 'home_portfolio_filter',
					'std'	=> 'false',
					'type'	=> 'select',
					'options'	=> array(
						'false'	=> 'False',
						'true'	=> 'True'
					) );
					
		$options['home_portfolio_lightbox_only'] = array(
					'name'	=> $portfolio_label .' '. __('Lightbox Only', 'wpex'),
					'desc'	=> __('Set to true if you wish all items to open in lightbox.', 'wpex'),
					'id'	=> 'home_portfolio_lightbox_only',
					'std'	=> 'false',
					'type'	=> 'select',
					'options'	=> array(
						'false'	=> 'False',
						'true'	=> 'True'
					) );
					
		$options['home_portfolio_entry_title'] = array(
					'name'	=> $portfolio_label .' '. __('Entry Title', 'wpex'),
					'desc'	=> __('Set to true if you wish to show the entry titles.', 'wpex'),
					'id'	=> 'home_portfolio_entry_title',
					'std'	=> 'false',
					'type'	=> 'select',
					'options'	=> array(
						'false'	=> 'False',
						'true'	=> 'True'
					) );
					
		$options['home_portfolio_entry_excerpt'] = array(
					'name'	=> $portfolio_label .' '. __('Entry Excerpt', 'wpex'),
					'desc'	=> __('Set to true if you wish to show the entry excerpts.', 'wpex'),
					'id'	=> 'home_portfolio_entry_excerpt',
					'std'	=> 'false',
					'type'	=> 'select',
					'options'	=> array(
						'false'	=> 'False',
						'true'	=> 'True'
					) );
					
		$options['home_portfolio_excerpt_length'] = array(
					'name'	=> $portfolio_label .' '. __('Entry Excerpt Length', 'wpex'),
					'desc'	=> __('How many words to show for your entry excerpt.', 'wpex'),
					'id'	=> 'home_portfolio_excerpt_length',
					'std'	=> '15',
					'type'	=> 'text');
					
		$options['home_portfolio_entry_readmore'] = array(
					'name'	=> $portfolio_label .' '. __('Entry Read More Link', 'wpex'),
					'desc'	=> __('Set to true if you wish to show the entry read more links.', 'wpex'),
					'id'	=> 'home_portfolio_entry_readmore',
					'std'	=> 'false',
					'type'	=> 'select',
					'options'	=> array(
						'false'	=> 'False',
						'true'	=> 'True'
					) );
				
	} // End portfolio post type check
				
	$options[] = array(
		'name'	=> __('Recent Posts', 'wpex'),
		'type'	=> 'subheading');
		
	$options['home_blog_enable'] = array(
				'name'	=> __('Enable Recent Posts', 'wpex'),
				'desc'	=> __('Check this box to enable this section.', 'wpex'),
				'id'	=> 'home_blog_enable',
				'std'	=> '1',
				'type'	=> 'checkbox');
		
	$options['home_blog_float'] = array(
				'name'	=> __('Display Recent Posts Floated Next To Testimonials', 'wpex'),
				'desc'	=> __('Check this box to show recent posts floated next to the testimonials. Uncheck to make recent posts and testimonials full-width.', 'wpex'),
				'id'	=> 'home_blog_float',
				'std'	=> '1',
				'type'	=> 'checkbox');
				
	$options['home_blog_title'] = array(
				'name'	=> __('Recent Posts Title', 'wpex'),
				'desc'	=> __('Enter your custom recent posts section title. Enter the words "disable" to disable the title completely.', 'wpex'),
				'id'	=> 'home_blog_title',
				'std'	=> '',
				'type'	=> 'text');
				
	$options['home_blog_category'] = array(
				'name'	=> __('Blog Category', 'wpex'),
				'desc'	=> __('If you wish to show a specific category instead of the most recent items, select it here.', 'wpex'),
				'id'	=> 'home_blog_category',
				'std'	=> '',
				'type'	=> 'select',
				'options'	=> $blog_cats);
				
	$options['home_blog_count'] = array(
				'name'	=> __('Recent Posts Count', 'wpex'),
				'desc'	=> __('How many recent posts do you wish to show? Enter 0 to disable this section.', 'wpex'),
				'id'	=> 'home_blog_count',
				'std'	=> '2',
				'type'	=> 'text');
				
	$options['home_blog_columns'] = array(
				'name'	=> __('Recent Posts Columns', 'wpex'),
				'desc'	=> __('How many columns for the recent posts grid?', 'wpex'),
				'id'	=> 'home_blog_columns',
				'std'	=> '1',
				'type'	=> 'select',
				'options'	=> $column_options );
				
	$options['home_blog_excerpt_length'] = array(
				'name'	=> __('Recent Posts Excerpt Length', 'wpex'),
				'desc'	=> __('How many words to show for your recent posts excerpts.', 'wpex'),
				'id'	=> 'home_blog_excerpt_length',
				'std'	=> '15',
				'type'	=> 'text');
				
	$options[] = array(
		'name'	=> $testimonials_label,
		'type'	=> 'subheading');
		
	$options['home_testimonials_enable'] = array(
				'name'	=> __('Enable', 'wpex'). ' '.  $testimonials_label,
				'desc'	=> __('Check this box to enable this section.', 'wpex'),
				'id'	=> 'home_testimonials_enable',
				'std'	=> '1',
				'type'	=> 'checkbox');
		
	$options['home_testimonials_title'] = array(
				'name'	=> $testimonials_label .' ' .__('Title', 'wpex'),
				'desc'	=> __('Enter your custom recent posts section title. Enter the words "disable" to disable the title completely.', 'wpex'),
				'id'	=> 'home_testimonials_title',
				'std'	=> '',
				'type'	=> 'text');
		
		
			
	/***
	* PORTFOLIO
	*************/
	$options[] = array(
		'name'	=> $portfolio_label,
		'type'	=> 'heading');
							
	$options['enable_portfolio'] = array(
			'name'	=> __('Enable Post Type', 'wpex'),
			'desc'	=> __('Check box to enable the post type. Uncheck if you aren\'nt using it to slim down your site a bit. IMPORTANT: This will reset all your theme options associated with this post type.', 'wpex'),
			'id'	=> 'enable_portfolio',
			'std'	=> '1',
			'type'	=> 'checkbox');
				
	if ( class_exists( 'Symple_Portfolio_Post_Type' ) ) {			
		
		// Portfolio labels
		$options[] = array(
				'name'	=> __('General', 'wpex'),
				'type'	=> 'subheading');
				
		$options['portfolio_labels'] = array(
				'name'	=> __('Custom Labels', 'wpex'),
				'desc'	=> __('Easily change the name of your post type here to say something else.', 'wpex'),
				'id'	=> 'portfolio_labels',
				'std'	=> 'Portfolio',
				'type'	=> 'text');
				
		$options['portfolio_slug'] = array(
				'name'	=> __('Custom Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your post type here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'portfolio_slug',
				'std'	=> 'portfolio',
				'type'	=> 'text');
				
		$options['portfolio_cat_slug'] = array(
				'name'	=> __('Custom Category Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your category taxonomy here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'portfolio_cat_slug',
				'std'	=> 'portfolio-category',
				'type'	=> 'text');
				
		$options['portfolio_tag_slug'] = array(
				'name'	=> __('Custom Tag Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your tag taxonomy here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'portfolio_tag_slug',
				'std'	=> 'portfolio-tag',
				'type'	=> 'text');
			
		//Portfolio Archives
		$options[] = array(
				'name'	=> __('Archives', 'wpex'),
				'type'	=> 'subheading');
				
		$options['portfolio_archive_filter'] = array(
			'name'	=> __('Show Archive Taxonomy Menu', 'wpex'),
			'desc'	=> __('Select to show a menu with this post types categories in the archives.', 'wpex'),
			'id'	=> 'portfolio_archive_filter',
			'std'	=> '1',
			'type'	=> 'checkbox');
			
		$options['portfolio_archive_feature_exclude_ids'] = array(
			'name'	=> __('Archive Taxonomy Menu Exclude Categories', 'wpex'),
			'desc'	=> __('Enter the IDs of categories you wish to exclude seperated by a comma. Example: 1,2,3', 'wpex'),
			'id'	=> 'portfolio_archive_filter_exclude_ids',
			'std'	=> '',
			'class'	=> 'hidden',
			'type'	=> 'text');
						
		$options['portfolio_archive_filter'] = array(
			'name'	=> __('Show Archive Taxonomy Menu', 'wpex'),
			'desc'	=> __('Select to show a menu with this post types categories in the archives.', 'wpex'),
			'id'	=> 'portfolio_archive_filter',
			'std'	=> '1',
			'type'	=> 'checkbox');
				
		$options['portfolio_pagination'] = array(
			'name'	=> __('Posts Per Page', 'wpex'),
			'desc'	=> __('How many posts do you wish to show before they paginate on archives.', 'wpex'),
			'id'	=> 'portfolio_pagination',
			'std'	=> '12',
			'type'	=> 'text');
			
		$options['portfolio_archive_style'] = array(
			'name'	=> __('Archives Style', 'wpex'),
			'desc'	=> __('Select your archives style.', 'wpex'),
			'id'	=> 'portfolio_archive_style',
			'std'	=> 'default',
			'type'	=> 'select',
			'options'	=> array(
					'default'	=> 'default',
					'masonry'	=> 'masonry'
				)
			);
			
		$options['portfolio_archive_columns'] = array(
			'name'	=> __('Archives Columns', 'wpex'),
			'desc'	=> __('Select your preferred ammount of columns for archives.', 'wpex'),
			'id'	=> 'portfolio_archive_columns',
			'std'	=> '3',
			'type'	=> 'select',
			'options'	=> $column_options );
			
		$options['portfolio_archive_sidebar'] = array(
			'name'	=> __('Enable Sidebar on Archives', 'wpex'),
			'desc'	=> __('Check box to enable the sidebar for this post type archives.', 'wpex'),
			'id'	=> 'portfolio_archive_sidebar',
			'std'	=> '',
			'type'	=> 'checkbox');
			
		$options['portfolio_entry_hover'] = array(
			'name'	=> __('Hover Animation', 'wpex'),
			'desc'	=> __('Select your preferred hover style.', 'wpex'),
			'id'	=> 'portfolio_entry_hover',
			'std'	=> 'icon_overlay',
			'type'	=> 'select',
			'options'	=> array(
					'icon_overlay'	=> 'Icon Overlay',
					'opacity'	=> 'Opacity'
				)
			);
									
		$options['portfolio_entry_img_width'] = array(
				'name'	=> __('Entry Image Width', 'wpex'),
				'desc'	=> __('Enter a custom entry image width for your items. WP generated archives only. Shortcode is controlled per usage.', 'wpex'),
				'id'	=> 'portfolio_entry_img_width',
				'std'	=> '450',
				'type'	=> 'text');
			
		$options['portfolio_entry_img_height'] = array(
				'name'	=> __('Entry Image Height', 'wpex'),
				'desc'	=> __('Enter a custom entry image height for your items. WP generated archives only. Shortcode is controlled per usage.', 'wpex'),
				'id'	=> 'portfolio_entry_img_height',
				'std'	=> '350',
				'type'	=> 'text');
				
		$options['portfolio_entry_title'] = array(
				'name'	=> __('Title', 'wpex'),
				'desc'	=> __('Check to enable the entry title.', 'wpex'),
				'id'	=> 'portfolio_entry_title',
				'std'	=> '1',
				'type'	=> 'checkbox');
				
		$options['portfolio_entry_excerpt'] = array(
				'name'	=> __('Excerpt', 'wpex'),
				'desc'	=> __('Check to enable the entry excerpt.', 'wpex'),
				'id'	=> 'portfolio_entry_excerpt',
				'std'	=> '1',
				'type'	=> 'checkbox');
				
		$options['portfolio_entry_excerpt_length'] = array(
				'name'	=> __('Excerpt Length', 'wpex'),
				'desc'	=> __('Enter your desired excerpt length. Default is 20 words.', 'wpex'),
				'id'	=> 'portfolio_entry_excerpt_length',
				'std'	=> '20',
				'type'	=> 'text');
				
		$options['portfolio_entry_readmore'] = array(
				'name'	=> __('Read More Link?', 'wpex'),
				'desc'	=> __('Check to enable the read more link.', 'wpex'),
				'id'	=> 'portfolio_entry_readmore',
				'std'	=> '',
				'type'	=> 'checkbox');
			
		//Portfolio posts
		$options[] = array(
				'name'	=> __('Posts', 'wpex'),
				'type'	=> 'subheading');
				
		$options['portfolio_comments'] = array(
			'name'	=> __('Enable comments', 'wpex'),
			'desc'	=> __('Check box to enable comments on your posts. Remember in WordPress you can always enable/disable on a per-post basis as well.', 'wpex'),
			'id'	=> 'portfolio_comments',
			'std'	=> '',
			'type'	=> 'checkbox');	
			
		$options['portfolio_related'] = array(
			'name'	=> __('Show "More Items" section on posts', 'wpex'),
			'desc'	=> __('Check box to disable the homepage heading.', 'wpex'),
			'id'	=> 'portfolio_related',
			'std'	=> '1',
			'type'	=> 'checkbox');
			
		$options['portfolio_post_sidebar_img_height'] = array(
				'name'	=> __('Post With Sidebar: Image Height', 'wpex'),
				'desc'	=> __('Enter a custom post image height for your posts that have a sidebar.', 'wpex'),
				'id'	=> 'portfolio_post_sidebar_img_height',
				'std'	=> '9999',
				'type'	=> 'text');
					
		$options['portfolio_post_full_img_height'] = array(
				'name'	=> __('Post Without Sidebar: Image Height', 'wpex'),
				'desc'	=> __('Enter a custom post image height for your posts that do not have a sidebar.', 'wpex'),
				'id'	=> 'portfolio_post_full_img_height',
				'std'	=> '9999',
				'type'	=> 'text');
	
		$options['portfolio_post_img_crop'] = array(
			'name'	=> __('Hard Crop Image?', 'wpex'),
			'desc'	=> __('by default post images will resize and mantain their proportions. Check this box to hard crop them instead.', 'wpex'),
			'id'	=> 'portfolio_post_img_crop',
			'std'	=> '',
			'type'	=> 'checkbox');	
				
	}
		
	
	
	
	/***
	* SERVICES
	*************/
	$options[] = array(
		'name'	=> $services_label,
		'type'	=> 'heading');
			
	$options['enable_services'] = array(
				'name'	=> __('Enable Post Type', 'wpex'),
				'desc'	=> __('Check box to enable the post type. Uncheck if you aren\'nt using it to slim down your site a bit. IMPORTANT: This will reset all your theme options associated with this post type.', 'wpex'),
				'id'	=> 'enable_services',
				'std'	=> '1',
				'type'	=> 'checkbox');
		
	if ( class_exists( 'Symple_Services_Post_Type' ) ) {
			
		// Services labels
		$options[] = array(
				'name'	=> __('Labels & Slugs', 'wpex'),
				'type'	=> 'subheading');
						
		$options['services_labels'] = array(
				'name'	=> __('Custom Labels', 'wpex'),
				'desc'	=> __('Easily change the name of your Services post type here to say something else.', 'wpex'),
				'id'	=> 'services_labels',
				'std'	=> 'Services',
				'type'	=> 'text');
				
		$options['services_slug'] = array(
				'name'	=> __('Custom Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your Services post type here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'services_slug',
				'std'	=> 'services',
				'type'	=> 'text');
				
		$options['services_cat_slug'] = array(
				'name'	=> __('Custom Category Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your category taxonomy here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'services_cat_slug',
				'std'	=> 'services-category',
				'type'	=> 'text');
				
		$options['services_tag_slug'] = array(
				'name'	=> __('Custom Tag Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your tag taxonomy here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'services_tag_slug',
				'std'	=> 'services-tag',
				'type'	=> 'text');
				
		// Services Archives
		$options[] = array(
				'name'	=> __('Archives', 'wpex'),
				'type'	=> 'subheading');
				
		$options['services_archive_filter'] = array(
			'name'	=> __('Show Archive Taxonomy Menu', 'wpex'),
			'desc'	=> __('Select to show a menu with this post types categories in the archives.', 'wpex'),
			'id'	=> 'services_archive_filter',
			'std'	=> '1',
			'type'	=> 'checkbox');
			
		$options['services_archive_feature_exclude_ids'] = array(
			'name'	=> __('Archive Taxonomy Menu Exclude Categories', 'wpex'),
			'desc'	=> __('Enter the IDs of categories you wish to exclude seperated by a comma. Example: 1,2,3', 'wpex'),
			'id'	=> 'services_archive_filter_exclude_ids',
			'std'	=> '',
			'class'	=> 'hidden',
			'type'	=> 'text');
			
		$options['services_pagination'] = array(
			'name'	=> __('Posts Per Page', 'wpex'),
			'desc'	=> __('How many posts do you wish to show before they paginate? This is used on archives.', 'wpex'),
			'id'	=> 'services_pagination',
			'std'	=> '12',
			'type'	=> 'text');
			
		$options['services_archive_columns'] = array(
			'name'	=> __('Archives Columns', 'wpex'),
			'desc'	=> __('Select your preferred ammount of columns for archives.', 'wpex'),
			'id'	=> 'services_archive_columns',
			'std'	=> '3',
			'type'	=> 'select',
			'options'	=> $column_options );
			
		$options['services_archive_sidebar'] = array(
			'name'	=> __('Enable Sidebar on Archives', 'wpex'),
			'desc'	=> __('Check box to enable the sidebar for this post type archives.', 'wpex'),
			'id'	=> 'services_archive_sidebar',
			'std'	=> '',
			'type'	=> 'checkbox');
			
		$options['services_entry_readmore'] = array(
				'name'	=> __('Read More Link?', 'wpex'),
				'desc'	=> __('Check to enable the read more link.', 'wpex'),
				'id'	=> 'services_entry_readmore',
				'std'	=> '',
				'type'	=> 'checkbox');
			
			
		// Services Posts
		$options[] = array(
				'name'	=> __('Posts', 'wpex'),
				'type'	=> 'subheading');
			
		$options['services_comments'] = array(
			'name'	=> __('Enable comments', 'wpex'),
			'desc'	=> __('Check box to enable comments on your posts. Remember in WordPress you can always enable/disable on a per-post basis as well.', 'wpex'),
			'id'	=> 'services_comments',
			'std'	=> '',
			'type'	=> 'checkbox');	
	}
	
	
	
	/***
	* FAQ
	*************/
	$options[] = array(
		'name'	=> $faq_label,
		'type'	=> 'heading');
		
	$options['enable_faq'] = array(
			'name'	=> __('Enable Post Type', 'wpex'),
			'desc'	=> __('Check box to enable the post type. Uncheck if you aren\'nt using it to slim down your site a bit. IMPORTANT: This will reset all your theme options associated with this post type.', 'wpex'),
			'id'	=> 'enable_faq',
			'std'	=> '1',
			'type'	=> 'checkbox');
		
	if ( class_exists( 'Symple_FAQ_Post_Type' ) ) {	
	
		// FAQ Labels
		$options[] = array(
				'name'	=> __('Labels & Slugs', 'wpex'),
				'type'	=> 'subheading');
			
		$options['faq_labels'] = array(
				'name'	=> __('Custom Labels', 'wpex'),
				'desc'	=> __('Easily change the name of your post type here to say something else.', 'wpex'),
				'id'	=> 'faq_labels',
				'std'	=> 'FAQ',
				'type'	=> 'text');
				
		$options['faq_slug'] = array(
				'name'	=> __('Custom Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your post type here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'faq_slug',
				'std'	=> 'faq',
				'type'	=> 'text');	
				
		$options['faq_cat_slug'] = array(
				'name'	=> __('Custom Category Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your category taxonomy here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'faq_cat_slug',
				'std'	=> 'faq-category',
				'type'	=> 'text');
				
		$options['faq_tag_slug'] = array(
				'name'	=> __('Custom Tag Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your tag taxonomy here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'faq_tag_slug',
				'std'	=> 'faq-tag',
				'type'	=> 'text');
			
				
		// FAQ Archives
		$options[] = array(
				'name'	=> __('Archives', 'wpex'),
				'type'	=> 'subheading');
				
		$options['faq_archive_filter'] = array(
			'name'	=> __('Show Archive Taxonomy Menu', 'wpex'),
			'desc'	=> __('Select to show a menu with this post types categories in the archives.', 'wpex'),
			'id'	=> 'faq_archive_filter',
			'std'	=> '1',
			'type'	=> 'checkbox');
			
		$options['faq_archive_feature_exclude_ids'] = array(
			'name'	=> __('Archive Taxonomy Menu Exclude Categories', 'wpex'),
			'desc'	=> __('Enter the IDs of categories you wish to exclude seperated by a comma. Example: 1,2,3', 'wpex'),
			'id'	=> 'faq_archive_filter_exclude_ids',
			'std'	=> '',
			'class'	=> 'hidden',
			'type'	=> 'text');
								
		$options['faq_archive_sidebar'] = array(
			'name'	=> __('Enable Sidebar on Archives', 'wpex'),
			'desc'	=> __('Check box to enable the sidebar for this post type archives.', 'wpex'),
			'id'	=> 'faq_archive_sidebar',
			'std'	=> '1',
			'type'	=> 'checkbox');
			
		$options['faq_pagination'] = array(
			'name'	=> __('Posts Per Page', 'wpex'),
			'desc'	=> __('How many posts do you wish to show before they paginate? This is used on archives.', 'wpex'),
			'id'	=> 'faq_pagination',
			'std'	=> '12',
			'type'	=> 'text');
			
		// FAQ Posts
		$options[] = array(
					'name'	=> __('Posts', 'wpex'),
					'type'	=> 'subheading');
				
		$options['faq_comments'] = array(
			'name'	=> __('Enable comments', 'wpex'),
			'desc'	=> __('Check box to enable comments on your posts. Remember in WordPress you can always enable/disable on a per-post basis as well.', 'wpex'),
			'id'	=> 'faq_comments',
			'std'	=> '',
			'type'	=> 'checkbox');

	}


	
	
	/***
	* STAFF
	*************/
	$options[] = array(
		'name'	=> $staff_label,
		'type'	=> 'heading');
		
	$options['enable_staff'] = array(
			'name'	=> __('Enable Post Type', 'wpex'),
			'desc'	=> __('Check box to enable the post type. Uncheck if you aren\'nt using it to slim down your site a bit. IMPORTANT: This will reset all your theme options associated with this post type.', 'wpex'),
			'id'	=> 'enable_staff',
			'std'	=> '1',
			'type'	=> 'checkbox');
		
	if ( class_exists( 'Symple_Staff_Post_Type' ) ) {
			
		// Staff labels
		$options[] = array(
				'name'	=> __('Labels & Slugs', 'wpex'),
				'type'	=> 'subheading');
			
		$options['staff_labels'] = array(
				'name'	=> __('Custom Labels', 'wpex'),
				'desc'	=> __('Easily change the name of your Staff post type here to say something else.', 'wpex'),
				'id'	=> 'staff_labels',
				'std'	=> 'Staff',
				'type'	=> 'text');
				
		$options['staff_slug'] = array(
				'name'	=> __('Custom Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your Staff post type here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'staff_slug',
				'std'	=> 'staff',
				'type'	=> 'text');
				
		$options['staff_cat_slug'] = array(
				'name'	=> __('Custom Category Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your category taxonomy here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'staff_cat_slug',
				'std'	=> 'staff-category',
				'type'	=> 'text');
				
		$options['staff_tag_slug'] = array(
				'name'	=> __('Custom Tag Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your tag taxonomy here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'staff_tag_slug',
				'std'	=> 'staff-tag',
				'type'	=> 'text');
				
		// Staff Archives
		$options[] = array(
				'name'	=> __('Archives', 'wpex'),
				'type'	=> 'subheading');
				
		$options['staff_archive_filter'] = array(
			'name'	=> __('Show Archive Taxonomy Menu', 'wpex'),
			'desc'	=> __('Select to show a menu with this post types categories in the archives.', 'wpex'),
			'id'	=> 'staff_archive_filter',
			'std'	=> '1',
			'type'	=> 'checkbox');
			
		$options['staff_archive_feature_exclude_ids'] = array(
			'name'	=> __('Archive Taxonomy Menu Exclude Categories', 'wpex'),
			'desc'	=> __('Enter the IDs of categories you wish to exclude seperated by a comma. Example: 1,2,3', 'wpex'),
			'id'	=> 'staff_archive_filter_exclude_ids',
			'std'	=> '',
			'class'	=> 'hidden',
			'type'	=> 'text');
												
		$options['staff_pagination'] = array(
			'name'	=> __('Posts Per Page', 'wpex'),
			'desc'	=> __('How many posts do you wish to show before they paginate? This is used on archives.', 'wpex'),
			'id'	=> 'staff_pagination',
			'std'	=> '12',
			'type'	=> 'text');
						
		$options['staff_archive_columns'] = array(
			'name'	=> __('Archives Columns', 'wpex'),
			'desc'	=> __('Select your preferred ammount of columns for staff archives.', 'wpex'),
			'id'	=> 'staff_archive_columns',
			'std'	=> '3',
			'type'	=> 'select',
			'options'	=> $column_options );
			
		$options['staff_archive_sidebar'] = array(
			'name'	=> __('Enable Sidebar on Archives', 'wpex'),
			'desc'	=> __('Check box to enable the sidebar for this post type archives.', 'wpex'),
			'id'	=> 'staff_archive_sidebar',
			'std'	=> '',
			'type'	=> 'checkbox');
			
			
		// Staff Posts
		$options[] = array(
				'name'	=> __('Posts', 'wpex'),
				'type'	=> 'subheading');
				
		$options['staff_comments'] = array(
				'name'	=> __('Enable comments', 'wpex'),
				'desc'	=> __('Check box to enable comments on your posts. Remember in WordPress you can always enable/disable on a per-post basis as well.', 'wpex'),
				'id'	=> 'staff_comments',
				'std'	=> '',
				'type'	=> 'checkbox');

	}
		
	
	/***
	* TESTIMONIALS
	*************/
	$options[] = array(
		'name'	=> $testimonials_label,
		'type'	=> 'heading');

	$options['enable_testimonials'] = array(
			'name'	=> __('Enable Post Type', 'wpex'),
			'desc'	=> __('Check box to enable the post type. Uncheck if you aren\'nt using it to slim down your site a bit. IMPORTANT: This will reset all your theme options associated with this post type.', 'wpex'),
			'id'	=> 'enable_testimonials',
			'std'	=> '1',
			'type'	=> 'checkbox');
			
	if ( class_exists( 'Symple_Testimonials_Post_Type' ) ) {
	
		// Testimonial labels
		$options[] = array(
				'name'	=> __('Labels & Slugs', 'wpex'),
				'type'	=> 'subheading');
			
		$options['testimonials_labels'] = array(
				'name'	=> __('Custom Labels', 'wpex'),
				'desc'	=> __('Easily change the name of your post type here to say something else.', 'wpex'),
				'id'	=> 'testimonials_labels',
				'std'	=> 'Testimonials',
				'type'	=> 'text');
				
		$options['testimonials_slug'] = array(
				'name'	=> __('Custom Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your post type here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'testimonials_slug',
				'std'	=> 'testimonials',
				'type'	=> 'text');
				
		$options['testimonials_cat_slug'] = array(
				'name'	=> __('Custom Category Slug', 'wpex'),
				'desc'	=> __('Easily change the slug of your category taxonomy here to say something else. <strong>IMPORTANT</strong>: You must re-save your permalinks after changing this setting.', 'wpex'),
				'id'	=> 'testimonials_cat_slug',
				'std'	=> 'testimonials-category',
				'type'	=> 'text');
			
		
		// Testimonial Archives
		$options[] = array(
				'name'	=> __('Archives', 'wpex'),
				'type'	=> 'subheading');	
				
	$options['testimonials_pagination'] = array(
			'name'	=> __('Posts Per Page', 'wpex'),
			'desc'	=> __('How many posts do you wish to show before they paginate? This is used on archives.', 'wpex'),
			'id'	=> 'testimonials_pagination',
			'std'	=> '-1',
			'type'	=> 'text');
				
		$options['testimonials_archive_sidebar'] = array(
			'name'	=> __('Enable Sidebar on Archives', 'wpex'),
			'desc'	=> __('Check box to enable the sidebar for this post type archives.', 'wpex'),
			'id'	=> 'testimonials_archive_sidebar',
			'std'	=> '',
			'type'	=> 'checkbox');
			
		// Testimonial Posts
		$options[] = array(
					'name'	=> __('Posts', 'wpex'),
					'type'	=> 'subheading');
				
		$options['testimonials_comments'] = array(
				'name'	=> __('Enable comments', 'wpex'),
				'desc'	=> __('Check box to enable comments on your posts. Remember in WordPress you can always enable/disable on a per-post basis as well.', 'wpex'),
				'id'	=> 'testimonials_comments',
				'std'	=> '',
				'type'	=> 'checkbox');
	
	}
	
	
	/***
	* BLOG
	*************/
	$options[] = array(
		'name'	=> __('Blog', 'wpex'),
		'type'	=> 'heading');
		
	$options['blog_page_url'] = array(
		'name'	=> __('Main Blog Page URL', 'wpex'),
		'desc'	=> __('Enter your main blog page URL here. This is used for the back to blog link on single posts.', 'wpex'),
		'id'	=> 'blog_page_url',
		'std'	=> '',
		'type'	=> 'text'
	);
		
	// Blog Entries	
	$options[] = array(
		'name'	=> __('Entries', 'wpex'),
		'type'	=> 'subheading');
		
	$options['blog_entry_style'] = array(
		'name'	=> __('Blog Entry Style', 'wpex'),
		'desc'	=> __('Select your preferred blog entry style.', 'wpex'),
		'id'	=> 'blog_entry_style',
		'std'	=> 'large_image',
		'type'	=> 'select',
		'options'	=> array(
			'medium_image'	=> 'Medium image',
			'large_image'	=> 'Large Image',
			'full_image'	=> 'Full Image'
		)
	);
	
	$options['blog_entry_excerpt'] = array(
		'name'	=> __('Auto Entry Excerpts', 'wpex'),
		'desc'	=> __('Check this box if you want the theme to automatically trim and create excerpts for your blog. Otherwise it will show your full post.', 'wpex'),
		'id'	=> 'blog_entry_excerpt',
		'std'	=> '1',
		'type'	=> 'checkbox'
	);
	
	$options['blog_entry_excerpt_trim'] = array(
		'name'	=> __('Excerpt Length', 'wpex'),
		'desc'	=> __('If you selected to auto trim excerpts, how many words do you wish to show?', 'wpex'),
		'id'	=> 'blog_entry_excerpt_trim',
		'std'	=> '60',
		'type'	=> 'text'
	);
	
	$options['blog_entry_readmore'] = array(
		'name'	=> __('Read More Link', 'wpex'),
		'desc'	=> __('Check this box to enable the readmore link on blog entries.', 'wpex'),
		'id'	=> 'blog_entry_readmore',
		'std'	=> '1',
		'type'	=> 'checkbox'
	);
	
	$options['blog_entry_thumbnail_crop'] = array(
		'name'	=> __('Crop Entry Thumbnails', 'wpex'),
		'desc'	=> __('Check this box to automatically crop your blog entry thumbnails vertically. Uncheck so your featured images mantain their proportions.', 'wpex'),
		'id'	=> 'blog_entry_thumbnail_crop',
		'std'	=> '1',
		'type'	=> 'checkbox'
	);
	
	$options['blog_entry_thumbnail_height'] = array(
		'name'	=> __('Entry Custom Thumbnail Height', 'wpex'),
		'desc'	=> __('Enter your custom entry thumbnail height in px.', 'wpex'),
		'id'	=> 'blog_entry_thumbnail_height',
		'std'	=> '',
		'type'	=> 'text'
	);
	
	// Blog Posts	
	$options[] = array(
		'name'	=> __('Posts', 'wpex'),
		'type'	=> 'subheading');
		
	$options['blog_post_thumbnail'] = array(
		'name'	=> __('Show Featured Image On Single Posts', 'wpex'),
		'desc'	=> __('Check this box to show your featured images on your single posts.', 'wpex'),
		'id'	=> 'blog_post_thumbnail',
		'std'	=> '1',
		'type'	=> 'checkbox' );
	
	$options['blog_post_thumbnail_crop'] = array(
		'name'	=> __('Crop Post Thumbnails', 'wpex'),
		'desc'	=> __('Check this box to automatically crop your blog post thumbnails vertically. Uncheck so your featured images mantain their proportions.', 'wpex'),
		'id'	=> 'blog_post_thumbnail_crop',
		'std'	=> '1',
		'type'	=> 'checkbox' );
	
	$options['blog_post_thumbnail_height'] = array(
		'name'	=> __('Post Thumbnail Height', 'wpex'),
		'desc'	=> __('Enter your custom post thumbnail height in px.', 'wpex'),
		'id'	=> 'blog_post_thumbnail_height',
		'std'	=> '300',
		'type'	=> 'text'
	);
	
	$options['blog_post_tags'] = array(
		'name'	=> __('Show Tags', 'wpex'),
		'desc'	=> __('Check this box to show your post tags below your posts.', 'wpex'),
		'id'	=> 'blog_post_tags',
		'std'	=> '',
		'type'	=> 'checkbox' );
		
	$options['blog_post_meta'] = array(
		'name'	=> __('Show Post Meta', 'wpex'),
		'desc'	=> __('Check this box to show the post meta below your posts.', 'wpex'),
		'id'	=> 'blog_post_meta',
		'std'	=> '1',
		'type'	=> 'checkbox' );
		
	$options['blog_post_author_bio'] = array(
		'name'	=> __('Show Author Bio', 'wpex'),
		'desc'	=> __('Check this box to show the author bio below your posts.', 'wpex'),
		'id'	=> 'blog_post_author_bio',
		'std'	=> '1',
		'type'	=> 'checkbox' );
		
	$options['blog_post_related'] = array(
		'name'	=> __('Show Related Posts', 'wpex'),
		'desc'	=> __('Check this box to show the related posts on your blog posts.', 'wpex'),
		'id'	=> 'blog_post_related',
		'std'	=> '1',
		'type'	=> 'checkbox' );

	return $options;
}



/*
 * Shows/hides an option when a checkbox is clicked.
 */
add_action('optionsframework_custom_scripts', 'wpex_of_scripts');
function wpex_of_scripts() { ?>

<script type="text/javascript">
jQuery(document).ready(function($) {

	$('#portfolio_archive_filter, #staff_archive_filter, #faq_archive_filter, #services_archive_filter').click(function() {
  		$('#section-portfolio_archive_filter_exclude_ids, #section-staff_archive_filter_exclude_ids, #section-faq_archive_filter_exclude_ids, #section-services_archive_filter_exclude_ids').slideToggle(400);
	});

	if ($('#portfolio_archive_filter:checked, #staff_archive_filter:checked, #faq_archive_filter:checked, #services_archive_filter:checked').val() !== undefined) {
		$('#section-portfolio_archive_filter_exclude_ids, #section-staff_archive_filter_exclude_ids, #section-faq_archive_filter_exclude_ids, #section-services_archive_filter_exclude_ids').show();
	}

});
</script>

<?php
}