<?php
/**
 * Options mods to framework through API
 *
 * @since 1.0.0
 */
function gnar_options() {

    // Background support
	add_theme_support( 'custom-background', array(
		'default-color'	=> 'ffffff',
		'default-image'	=> ''
	));

    // Add top-level "Styles" tab
    themeblvd_add_option_tab( 'styles', __('Styles', 'gnar'), true );

	// Add Styles > Presets
	themeblvd_add_option_section('styles', 'presets', __('Preset Styles', 'gnar'), null, array());

	themeblvd_add_option_presets(array(
		'id'		=> 'style_presets',
		'tab' 		=> 'styles',
		'section'	=> 'presets',
		'sets'		=> array(
			'default' => array(
				'id'			=> 'default',
				'icon'			=> get_template_directory_uri() . '/assets/images/preset-default.png',
				'icon_width'	=> '80',
				'settings'		=> array(
					'btn_color'                     => '#1a212c',
					'highlight'                     => '#e64d43',
					'header_bg_color'               => '#1a212c',
					'header_bg_brightness'          => 'dark',
					'header_logo_color'             => '#e64d43',
					'header_toggle_color'           => '#e64d43',
					'mobile_header_bg_color'        => '#1a212c',
					'mobile_header_bg_brightness'   => 'dark',
					'mobile_header_toggle_color'    => '#e64d43',
					'footer_bg_color'               => '#1a212c',
					'footer_bg_brightness'          => 'dark',
					'copyright_bg_color'            => '#1e2633',
					'copyright_bg_brightness'       => 'dark',
					'link_color'                    => '#e64d43',
					'link_hover_color'              => '#c43636',
					'footer_link_color'             => '#e64d43',
					'footer_link_hover_color'       => '#c43636'
				)
			),
			'maui'	=> array(
				'id'			=> 'maui',
				'icon'			=> get_template_directory_uri() . '/assets/images/preset-maui.png',
				'icon_width'	=> '80',
				'settings'		=> array(
					'btn_color'                     => '#1a9199',
					'highlight'                     => '#facc2a',
					'header_bg_color'               => '#1a9199',
					'header_bg_brightness'          => 'dark',
					'header_logo_color'             => '#facc2a',
					'header_toggle_color'           => '#facc2a',
					'mobile_header_bg_color'        => '#1a9199',
					'mobile_header_bg_brightness'   => 'dark',
					'mobile_header_toggle_color'    => '#facc2a',
					'footer_bg_color'               => '#1a9199',
					'footer_bg_brightness'          => 'dark',
					'copyright_bg_color'            => '#2cb1c0',
					'copyright_bg_brightness'       => 'dark',
					'link_color'                    => '#1a9199',
					'link_hover_color'              => '#18b4ba',
					'footer_link_color'             => '#facc2a',
					'footer_link_hover_color'       => '#ffc700'
				)
			),
			'newyork'	=> array(
				'id'			=> 'newyork',
				'icon'			=> get_template_directory_uri() . '/assets/images/preset-newyork.png',
				'icon_width'	=> '80',
				'settings'		=> array(
					'btn_color'                     => '#08475c',
					'highlight'                     => '#f61067',
					'header_bg_color'               => '#08475c',
					'header_bg_brightness'          => 'dark',
					'header_logo_color'             => '#f61067',
					'header_toggle_color'           => '#f61067',
					'mobile_header_bg_color'        => '#08475c',
					'mobile_header_bg_brightness'   => 'dark',
					'mobile_header_toggle_color'    => '#f61067',
					'footer_bg_color'               => '#08475c',
					'footer_bg_brightness'          => 'dark',
					'copyright_bg_color'            => '#063c4e',
					'copyright_bg_brightness'       => 'dark',
					'link_color'                    => '#063c4e',
					'link_hover_color'              => '#18b4ba',
					'footer_link_color'             => '#f61067',
					'footer_link_hover_color'       => '#d5105a'
				)
			),
			'portland' => array(
				'id'			=> 'portland',
				'icon'			=> get_template_directory_uri() . '/assets/images/preset-portland.png',
				'icon_width'	=> '80',
				'settings'		=> array(
					'btn_color'                     => '#1b1b1b',
					'highlight'                     => '#36b3a8',
					'header_bg_color'               => '#1b1b1b',
					'header_bg_brightness'          => 'dark',
					'header_logo_color'             => '#36b3a8',
					'header_toggle_color'           => '#36b3a8',
					'mobile_header_bg_color'        => '#1b1b1b',
					'mobile_header_bg_brightness'   => 'dark',
					'mobile_header_toggle_color'    => '#36b3a8',
					'footer_bg_color'               => '#1b1b1b',
					'footer_bg_brightness'          => 'dark',
					'copyright_bg_color'            => '#222222',
					'copyright_bg_brightness'       => 'dark',
					'link_color'                    => '#36b3a8',
					'link_hover_color'              => '#009da0',
					'footer_link_color'             => '#36b3a8',
					'footer_link_hover_color'       => '#009da0'
				)
			),
			'santamonica' => array(
				'id'			=> 'santamonica',
				'icon'			=> get_template_directory_uri() . '/assets/images/preset-santamonica.png',
				'icon_width'	=> '80',
				'settings'		=> array(
					'btn_color'                     => '#444b4d',
					'highlight'                     => '#adc400',
					'header_bg_color'               => '#444b4d',
					'header_bg_brightness'          => 'dark',
					'header_logo_color'             => '#adc400',
					'header_toggle_color'           => '#adc400',
					'mobile_header_bg_color'        => '#444b4d',
					'mobile_header_bg_brightness'   => 'dark',
					'mobile_header_toggle_color'    => '#adc400',
					'footer_bg_color'               => '#444b4d',
					'footer_bg_brightness'          => 'dark',
					'copyright_bg_color'            => '#363c3e',
					'copyright_bg_brightness'       => 'dark',
					'link_color'                    => '#adc400',
					'link_hover_color'              => '#bfd420',
					'footer_link_color'             => '#adc400',
					'footer_link_hover_color'       => '#bfd420'
				)
			),
			'vail' => array(
				'id'			=> 'vail',
				'icon'			=> get_template_directory_uri() . '/assets/images/preset-vail.png',
				'icon_width'	=> '80',
				'settings'		=> array(
					'btn_color'                     => '#8f776a',
					'highlight'                     => '#66aef3',
					'header_bg_color'               => '#8f776a',
					'header_bg_brightness'          => 'dark',
					'header_logo_color'             => '#66aef3',
					'header_toggle_color'           => '#66aef3',
					'mobile_header_bg_color'        => '#8f776a',
					'mobile_header_bg_brightness'   => 'dark',
					'mobile_header_toggle_color'    => '#66aef3',
					'footer_bg_color'               => '#8f776a',
					'footer_bg_brightness'          => 'dark',
					'copyright_bg_color'            => '#695950',
					'copyright_bg_brightness'       => 'dark',
					'link_color'                    => '#66aef3',
					'link_hover_color'              => '#4989c7',
					'footer_link_color'             => '#66aef3',
					'footer_link_hover_color'       => '#4989c7'
				)
			)
		)
	));

    // Add Styles > General
    themeblvd_add_option_section('styles', 'general_styles', __('General', 'gnar'), null, array(
        'general_info' => array(
			'id'		=> 'general_info',
			'desc'		=> __('These options provide general styles for the entire structure of your website.', 'gnar'),
			'type'		=> 'info'
		),
		'layout_style' => array(
			'name' 		=> __('Site Style', 'gnar'),
			'desc' 		=> __('Select whether you\'d like the layout of the theme to be boxed or not.', 'gnar'),
			'id' 		=> 'layout_style',
			'std' 		=> 'stretch',
			'type' 		=> 'select',
			'options'	=> array(
				'stretch' 	=> __('Stretched', 'gnar'),
				'boxed' 	=> __('Boxed', 'gnar')
			)
		),
		'style' => array(
			'id'		=> 'style',
			'name' 		=> __('Content Style', 'gnar'),
			'desc'		=> __('Select the content style of your website.', 'gnar'),
			'std'		=> 'light',
			'type' 		=> 'select',
			'options'	=> array(
				'light' => __('Light', 'gnar'),
				'dark' 	=> __('Dark', 'gnar')
			)
		),
		'btn_color' => array(
			'id' 		=> 'btn_color',
			'name' 		=> __('Primary Buttons', 'gnar'),
			'desc' 		=> __('Select a background color for primary buttons throughour your website.', 'gnar'),
			'std' 		=> '#1a212c',
			'type' 		=> 'color'
		),
		'highlight' => array(
			'id' 		=> 'highlight',
			'name' 		=> __('Highlight', 'gnar'),
			'desc' 		=> __('Select a "highlight" color to be used throughour your website, like with button and thumbnail hovers, for example.', 'gnar'),
			'std' 		=> '#e64d43',
			'type' 		=> 'color'
		)
    ));

    // Add Styles > Header
    themeblvd_add_option_section('styles', 'header_styles', __('Header', 'gnar'), null, array(
        'header_info' => array(
			'id'		=> 'header_info',
			'desc'		=> __('These options apply to the header of your website.', 'gnar'),
			'type'		=> 'info'
		),
		'header_sub_group_start' => array(
			'id'		=> 'header_sub_group_start',
			'type' 		=> 'subgroup_start',
			'class'		=> 'show-hide-toggle'
		),
		'header_style' => array(
			'id' 		=> 'header_style',
			'name' 		=> __('Style', 'gnar'),
			'desc' 		=> __('Select how you want the header to be displayed.', 'gnar'),
			'std' 		=> 'edgy',
			'type' 		=> 'select',
			'options'	=> array(
				'edgy'		=> __('Edgy', 'gnar'),
				'bold' 		=> __('Bold', 'gnar'),
				'modern'	=> __('Modern', 'gnar')
			),
			'class'		=> 'trigger'
		),
		'header_bg_color' => array(
			'id'		=> 'header_bg_color',
			'name'		=> __('Background Color', 'gnar'),
			'desc'		=> __('Select a background color for the standard header.', 'gnar'),
			'std'		=> '#1a212c',
			'type'		=> 'color'
		),
        'header_bg_brightness' => array(
			'id' 		=> 'header_bg_brightness',
			'name' 		=> __('Background Color Brightness', 'gnar'),
			'desc' 		=> __('In the previous option, did you go dark or light?', 'gnar'),
			'std' 		=> 'dark',
			'type' 		=> 'select',
			'options'	=> array(
				'light' => __('I chose a light color in the previous option.', 'gnar'),
				'dark' 	=> __('I chose a dark color in the previous option.', 'gnar')
			)
		),
		'header_logo_placement' => array(
			'id' 		=> 'header_logo_placement',
			'name' 		=> __('Logo Placement', 'gnar'),
			'desc' 		=> __('Which side of the header do you want the logo on? The other header elements will display on the opposite side.', 'gnar'),
			'std' 		=> 'right',
			'type' 		=> 'select',
			'options'	=> array(
				'left' 	=> __('Left', 'gnar'),
				'right' => __('Right', 'gnar')
			)
		),
        'header_logo_color' => array(
			'id'		=> 'header_logo_color',
			'name'		=> __('Logo Background Color', 'gnar'),
			'desc'		=> __('Select a background color for the block that holds the logo.', 'gnar'),
			'std'		=> '#e64d43',
			'type'		=> 'color',
			'class'		=> 'hide receiver receiver-edgy receiver-bold'
		),
        'header_toggle_color' => array(
			'id'		=> 'header_toggle_color',
			'name'		=> __('Menu Toggle Color', 'gnar'),
			'desc'		=> __('Select a color for the button that toggles open the menu. This color should contrast your header background color.', 'gnar'),
			'std'		=> '#e64d43',
			'type'		=> 'color',
			'class'		=> 'hide receiver receiver-edgy receiver-bold'
		),
		'mobile_header_bg_color' => array(
			'id'		=> 'mobile_header_bg_color',
			'name'		=> __('Mobile Background Color', 'gnar'),
			'desc'		=> __('Select a background color for the mobile header.', 'gnar'),
			'std'		=> '#1a212c',
			'type'		=> 'color'
		),
		'mobile_header_bg_brightness' => array(
			'id' 		=> 'mobile_header_bg_brightness',
			'name' 		=> __('Mobile Background Color Brightness', 'gnar'),
			'desc' 		=> __('In the previous option, did you go dark or light?', 'gnar'),
			'std' 		=> 'dark',
			'type' 		=> 'select',
			'options'	=> array(
				'light' => __('I chose a light color in the previous option.', 'gnar'),
				'dark' 	=> __('I chose a dark color in the previous option.', 'gnar')
			)
		),
		'mobile_header_toggle_color' => array(
			'id'		=> 'mobile_header_toggle_color',
			'name'		=> __('Mobile Menu Toggle Color', 'gnar'),
			'desc'		=> __('Select a color for the button that toggles open the menu. This color should contrast your mobile header background color.', 'gnar'),
			'std'		=> '#e64d43',
			'type'		=> 'color',
			'class'		=> 'hide receiver receiver-edgy receiver-bold'
		),
		'mobile_menu_color' => array(
			'id'		=> 'mobile_menu_color',
			'name'		=> __('Mobile Menu Color', 'gnar'),
			'desc'		=> __('Select a background color for the mobile menu when it shows.', 'gnar'),
			'std'		=> '#1e2633',
			'type'		=> 'color'
		),
		'header_sub_group_end' => array(
			'id'		=> 'header_sub_group_end',
			'type' 		=> 'subgroup_end'
		),
		'menu_visible' => array(
			'id'		=> 'menu_visible',
			'name'		=> null,
			'desc'		=> __('Menu is always visible.', 'gnar') . ' &mdash; <em>' . __('Note: Contact icons will not display in your header when this is enabled.', 'gnar') . '</em>',
			'std'		=> '0',
			'type'		=> 'checkbox'
		),
		'menu_arrows' => array(
			'id'		=> 'menu_arrows',
			'name'		=> null,
			'desc'		=> __('Display submenu icon arrows on first level of main menu.', 'gnar'),
			'std'		=> '0',
			'type'		=> 'checkbox'
		),
		'mobile_header_fixed' => array(
            'name' 		=> null,
            'desc' 		=> __('Stick header on mobile devices.', 'gnar'),
            'id' 		=> 'mobile_header_fixed',
            'std'       => '1',
            'type' 		=> 'checkbox'
        )
    ));

    // Add Styles > Footer
    themeblvd_add_option_section('styles', 'footer_styles', __('Footer', 'gnar'), null, array(
        'footer_info' => array(
			'id'		=> 'footer_info',
			'desc'		=> sprintf(__('These options apply to the footer of your website. Note that for the footer menu to show in the copyright area, you must assign a menu to the "Footer Navigation" location at %s.', 'gnar'), '<a href="nav-menus.php" target="_blank">'.__('Appearance > Menus', 'gnar').'</a>' ),
			'type'		=> 'info'
		),
		'footer_bg_color' => array(
			'id'		=> 'footer_bg_color',
			'name'		=> __('Footer Background Color', 'gnar'),
			'desc'		=> __('Select a background color for the footer columns.', 'gnar'),
			'std'		=> '#1a212c',
			'type'		=> 'color'
		),
		'footer_bg_brightness' => array(
		    'id'		=> 'footer_bg_brightness',
		    'name' 		=> __('Footer Background Color Brightness', 'gnar'),
			'desc' 		=> __('In the previous option, did you go dark or light?', 'gnar'),
			'std' 		=> 'dark',
			'type' 		=> 'select',
			'options'	=> array(
				'light' => __('I chose a light color in the previous option.', 'gnar'),
				'dark' 	=> __('I chose a dark color in the previous option.', 'gnar')
			)
		),
		'copyright_bg_color' => array(
			'id'		=> 'copyright_bg_color',
			'name'		=> __('Copyright Background Color', 'gnar'),
			'desc'		=> __('Select a background color for the copyright area below the footer columns.', 'gnar'),
			'std'		=> '#1e2633',
			'type'		=> 'color'
		),
		'copyright_bg_brightness' => array(
		    'id'		=> 'copyright_bg_brightness',
		    'name' 		=> __('Copyright Background Color Brightness', 'gnar'),
			'desc' 		=> __('In the previous option, did you go dark or light?', 'gnar'),
			'std' 		=> 'dark',
			'type' 		=> 'select',
			'options'	=> array(
				'light' => __('I chose a light color in the previous option.', 'gnar'),
				'dark' 	=> __('I chose a dark color in the previous option.', 'gnar')
			)
		)
    ));

    // Add Styles > Search Panel
    themeblvd_add_option_section('styles', 'search_panel_styles', __('Search Panel', 'gnar'), null, array(
        'search_panel_info' => array(
			'id'		=> 'search_panel_info',
			'desc'		=> __('These options apply to your menu panel that slides out from the top of your website.', 'gnar'),
			'type'		=> 'info'
		),
		'search_panel_bg_color' => array(
			'id'		=> 'search_panel_bg_color',
			'name'		=> __('Background Color', 'gnar'),
			'desc'		=> __('Select a background color for the full-screen search panel.', 'gnar'),
			'std'		=> '#ffffff',
			'type'		=> 'color'
		),
		'search_panel_brightness' => array(
			'id' 		=> 'search_panel_brightness',
			'name' 		=> __('Background Color Brightness', 'gnar'),
			'desc' 		=> __('In the previous option, did you go dark or light?', 'gnar'),
			'std' 		=> 'light',
			'type' 		=> 'select',
			'options'	=> array(
				'light' => __('I chose a light color in the previous option.', 'gnar'),
				'dark' 	=> __('I chose a dark color in the previous option.', 'gnar')
			)
		)
    ));

    // Add Styles > Typography
    themeblvd_add_option_section('styles', 'typo_styles', __('Typography', 'gnar'), null, array(
        'typo_info' => array(
			'id'		=> 'typo_info',
			'desc'		=> __('These options allow you to configure the general fonts and link colors for your website.', 'gnar'),
			'type'		=> 'info'
		),
		'font_body' => array(
			'id' 		=> 'font_body',
			'name' 		=> __('Primary Font', 'gnar'),
			'desc' 		=> __('This is the default body text, which serves as the default for most of the text on your website.', 'gnar'),
			'std' 		=> array('size' => '16px', 'face' => 'google', 'weight' => '400', 'color' => '', 'google' => 'Lato:300', 'style' => 'normal'),
			'atts'		=> array('size', 'face', 'style', 'weight'),
			'type' 		=> 'typography'
		),
		'font_header' => array(
			'id' 		=> 'font_header',
			'name' 		=> __('Header Font', 'gnar'),
			'desc' 		=> __('This applies to most of the primary headers throughout your website.', 'gnar'),
			'std' 		=> array('size' => '', 'face' => 'google', 'weight' => '400', 'color' => '', 'google' => 'Nixie One', 'style' => 'normal'),
			'atts'		=> array('face', 'style', 'weight'),
			'type' 		=> 'typography'
		),
		'font_header_sp' => array(
			'id' 		=> 'font_header_sp',
			'name'		=> __('Header Letter Spacing', 'gnar'),
			'desc'		=> __('Adjust the spacing between letters.', 'gnar'),
			'std'		=> '1px',
			'type'		=> 'slide',
			'options'	=> array(
				'units'	=> 'px',
				'min'	=> '0',
				'max'	=> '5',
				'step'	=> '1'
			)
		),
		'font_header_sm' => array(
			'id' 		=> 'font_header_sm',
			'name' 		=> __('Small Header Font', 'gnar'),
			'desc' 		=> __('This applies to smaller sub headers throughout your website, like widget titles, for example.', 'gnar'),
			'std' 		=> array('size' => '', 'face' => 'google', 'weight' => '700', 'color' => '', 'google' => 'Lato:700', 'style' => 'uppercase'),
			'atts'		=> array('face', 'style', 'weight'),
			'type' 		=> 'typography'
		),
		'font_header_sm_sp' => array(
			'id' 		=> 'font_header_sm_sp',
			'name'		=> __('Small Header Letter Spacing', 'gnar'),
			'desc'		=> __('Adjust the spacing between letters.', 'gnar'),
			'std'		=> '1px',
			'type'		=> 'slide',
			'options'	=> array(
				'units'	=> 'px',
				'min'	=> '0',
				'max'	=> '5',
				'step'	=> '1'
			)
		),
		'font_quote' => array(
			'id' 		=> 'font_quote',
			'name' 		=> __('Quote Font', 'gnar'),
			'desc' 		=> __('This applies to quoted text in blockquote tags.', 'gnar'),
			'std' 		=> array('size' => '', 'face' => 'google', 'weight' => '400', 'color' => '', 'google' => 'Libre Baskerville:400italic', 'style' => 'italic'),
			'atts'		=> array('face', 'style', 'weight'),
			'type' 		=> 'typography'
		),
		'font_quote_sp' => array(
			'id' 		=> 'font_quote_sp',
			'name'		=> __('Quote Letter Spacing', 'gnar'),
			'desc'		=> __('Adjust the spacing between letters.', 'gnar'),
			'std'		=> '0px',
			'type'		=> 'slide',
			'options'	=> array(
				'units'	=> 'px',
				'min'	=> '0',
				'max'	=> '5',
				'step'	=> '1'
			)
		),
		'font_meta' => array(
			'id' 		=> 'font_meta',
			'name' 		=> __('Meta Info Font', 'gnar'),
			'desc' 		=> __('This applies to meta info like the "Posted" date below a post title, for example.', 'gnar'),
			'std' 		=> array('size' => '', 'face' => 'google', 'weight' => '700', 'color' => '', 'google' => 'Lato:700', 'style' => 'uppercase'),
			'atts'		=> array('face', 'style', 'weight'),
			'type' 		=> 'typography'
		),
		'font_meta_sp' => array(
			'id' 		=> 'font_meta_sp',
			'name'		=> __('Meta Info Letter Spacing', 'gnar'),
			'desc'		=> __('Adjust the spacing between letters.', 'gnar'),
			'std'		=> '2px',
			'type'		=> 'slide',
			'options'	=> array(
				'units'	=> 'px',
				'min'	=> '0',
				'max'	=> '5',
				'step'	=> '1'
			)
		),
		'font_epic' => array(
			'id' 		=> 'font_epic',
			'name' 		=> __('Featured Image Title Font', 'gnar'),
			'desc' 		=> __('This applies when displaying a title on top of featured images.', 'gnar'),
			'std' 		=> array('size' => '', 'face' => 'google', 'weight' => '400', 'color' => '', 'google' => 'Nixie One', 'style' => 'uppercase'),
			'atts'		=> array('face', 'style', 'weight'),
			'type' 		=> 'typography'
		),
		'font_epic_sp' => array(
			'id' 		=> 'font_epic_sp',
			'name'		=> __('Featured Image Title Letter Spacing', 'gnar'),
			'desc'		=> __('Adjust the spacing between letters.', 'gnar'),
			'std'		=> '3px',
			'type'		=> 'slide',
			'options'	=> array(
				'units'	=> 'px',
				'min'	=> '0',
				'max'	=> '5',
				'step'	=> '1'
			)
		),
		'font_menu' => array(
			'id' 		=> 'font_menu',
			'name' 		=> __('Main Menu Font', 'gnar'),
			'desc' 		=> __('This applies to the main menu items of your website.', 'gnar'),
			'std' 		=> array('size' => '11px', 'face' => 'google', 'weight' => '700', 'color' => '', 'google' => 'Lato:700', 'style' => 'uppercase'),
			'atts'		=> array('size', 'face', 'style', 'weight'),
			'sizes'		=> array_map( 'absint', range(8, 20) ),
			'type' 		=> 'typography'
		),
		'font_menu_sp' => array(
			'id' 		=> 'font_menu_sp',
			'name'		=> __('Main Menu Letter Spacing', 'gnar'),
			'desc'		=> __('Adjust the spacing between letters.', 'gnar'),
			'std'		=> '2px',
			'type'		=> 'slide',
			'options'	=> array(
				'units'	=> 'px',
				'min'	=> '0',
				'max'	=> '5',
				'step'	=> '1'
			)
		),
		'link_color' => array(
			'id' 		=> 'link_color',
			'name' 		=> __('Link Color', 'gnar'),
			'desc' 		=> __('Choose the color you\'d like applied to links.', 'gnar'),
			'std' 		=> '#e64d43',
			'type' 		=> 'color'
		),
		'link_hover_color' => array(
			'id' 		=> 'link_hover_color',
			'name' 		=> __('Link Hover Color', 'gnar'),
			'desc' 		=> __('Choose the color you\'d like applied to links when they are hovered over.', 'gnar'),
			'std' 		=> '#c43636',
			'type' 		=> 'color'
		),
		'footer_link_color' => array(
			'id' 		=> 'footer_link_color',
			'name' 		=> __('Footer Link Color', 'gnar'),
			'desc' 		=> __('Choose the color you\'d like applied to links in the footer.', 'gnar'),
			'std' 		=> '#e64d43',
			'type' 		=> 'color'
		),
		'footer_link_hover_color' => array(
			'id' 		=> 'footer_link_hover_color',
			'name' 		=> __('Footer Link Hover Color', 'gnar'),
			'desc' 		=> __('Choose the color you\'d like applied to links in the footer when they are hovered over.', 'gnar'),
			'std' 		=> '#c43636',
			'type' 		=> 'color'
		)
    ));

    // Add Styles > Custom CSS
    themeblvd_add_option_section('styles', 'css_styles', __('Custom CSS', 'gnar'), null, array(
        'custom_styles' => array(
			'id'		=> 'custom_styles',
			'name' 		=> null,
			'desc'		=> null,
			'std'		=> '',
			'type' 		=> 'code',
			'lang'		=> 'css'
		)
    ));

    // Set default logo and dimensions
    themeblvd_edit_option('layout', 'header', 'logo', 'std', array( 'type' => 'image', 'image' => get_template_directory_uri().'/assets/images/logo.png', 'image_width' => '70', 'image_height' => '80', 'image_2x' => get_template_directory_uri().'/assets/images/logo_2x.png' ));

	// Logo help
	$desc  = __('Configure the primary branding logo for the header of your site.', 'gnar');
	$desc .= '<br /><br />';
	$desc .= __('If you\'re using the Edgy or Bold header style, we suggest an image that is about 80px in height. And with the Modern header style, we suggest an image that is exactly 40px in height. For any style, your logo image can be square or rectangular.', 'gnar');
	$desc .= '<br /><br />';
	$desc .= '<em>'.__('Note: If you\'re inputting a "HiDPI-optimized" image, it needs to be twice as large as you intend it to be displayed, and have the same aspect ratio as the standard image. Feel free to leave the HiDPI image field blank if you\'d like it to simply not have any effect.', 'gnar').'</em>';

	themeblvd_edit_option('layout', 'header', 'logo', 'desc', $desc);

    // Remove header text and social media options.
    themeblvd_remove_option('layout', 'header', 'header_text');
    themeblvd_remove_option('layout', 'header', 'social_media');
    themeblvd_remove_option('layout', 'header', 'social_media_style');

    // Remove transparent header options
    themeblvd_remove_option_section('layout', 'header_trans');

	// Set default mobile logo and dimensions
	themeblvd_edit_option('layout', 'header_mobile', 'mobile_logo', 'std', array('type' => 'image', 'image' => get_template_directory_uri().'/assets/images/logo-mobile.png', 'image_width' => '100', 'image_height' => '40', 'image_2x' => get_template_directory_uri().'/assets/images/logo-mobile_2x.png'));

    // Change description at Layout > Mobile Header
	$desc  = __('Configure the primary branding logo for the mobile header of your site.', 'gnar');
	$desc .= '<br /><br />';
	$desc .= __('No matter the header style, we suggest using an image that is exactly 40px in height for your mobile header; it can be square or rectangular.', 'gnar');
	$desc .= '<br /><br />';
	$desc .= '<em>'.__('Note: If you\'re inputting a "HiDPI-optimized" image, it needs to be twice as large as you intend it to be displayed, and have the same aspect ratio as the standard image. Feel free to leave the HiDPI image field blank if you\'d like it to simply not have any effect.', 'gnar').'</em>';

	themeblvd_edit_option('layout', 'header_mobile', 'mobile_logo', 'desc', $desc);

    // Adjust default copyright setting
	themeblvd_edit_option('layout', 'footer', 'footer_copyright', 'std', '&copy; %year% %site_title% Designed by <a href="http://themeblvd.com" title="Theme Blvd" target="_blank">Theme Blvd</a>');

    // Change default sidebar layout to full width for single posts and pages
    themeblvd_edit_option('layout', 'sidebar_layouts', 'single_sidebar_layout', 'std', 'full_width');
    themeblvd_edit_option('layout', 'sidebar_layouts', 'page_sidebar_layout', 'std', 'full_width');

    // Add Layout > Contact
	themeblvd_add_option_section('layout', 'contact', __( 'Contact', 'gnar' ), null, array(
        'social_media' => array(
            'name' 		=> __( 'Contact Buttons', 'gnar' ),
            'desc' 		=> __( 'Configure the contact and social media buttons you\'d like to use.', 'gnar' ),
            'id' 		=> 'social_media',
            'std' 		=> array(
                'item_1' => array(
                    'icon'	=> 'facebook',
                    'url'	=> 'http://facebook.com/jasonbobich',
                    'label'	=> 'Facebook',
                    'target'=> '_blank'
                ),
                'item_2' => array(
                    'icon'	=> 'google',
                    'url'	=> 'https://plus.google.com/116531311472104544767/posts',
                    'label'	=> 'Google+',
                    'target'=> '_blank'
                ),
                'item_3' => array(
                    'icon'	=> 'twitter',
                    'url'	=> 'http://twitter.com/jasonbobich',
                    'label'	=> 'Twitter',
                    'target'=> '_blank'
                ),
                'item_4' => array(
                    'icon'	=> 'rss',
                    'url'	=> get_feed_link(),
                    'label'	=> 'RSS Feed',
                    'target'=> '_blank'
                )
            ),
            'type' 		=> 'social_media'
        ),
        'social_panel' => array(
            'name' 		=> null,
            'desc' 		=> __( 'Display contact buttons in main menu panel.', 'gnar' ),
            'id' 		=> 'social_panel',
            'std' 		=> '1',
            'type' 		=> 'checkbox'
        ),
        'social_footer' => array(
            'name' 		=> null,
            'desc' 		=> __( 'Display contact buttons in footer.', 'gnar' ),
            'id' 		=> 'social_footer',
            'std' 		=> '1',
            'type' 		=> 'checkbox'
        )
    ));

    // Adjust Content > General

	themeblvd_remove_option( 'content', 'general', 'general_sub_group_start' );
	themeblvd_remove_option( 'content', 'general', 'fw_narrow' );
	themeblvd_remove_option( 'content', 'general', 'img_popout' );
	themeblvd_remove_option( 'content', 'general', 'general_sub_group_end' );

	themeblvd_add_option( 'content', 'general', 'img_popout', array(
		'name' 		=> null,
		'desc' 		=> __( 'Popout large images on full-width pages and posts.', 'gnar' ),
		'id' 		=> 'img_popout',
		'std' 		=> '1',
		'type' 		=> 'checkbox'
	));

	themeblvd_add_option( 'content', 'general', 'dropcap', array(
		'name' 		=> null,
		'desc' 		=> __( 'Apply drop cap to first letter of standard post content.', 'gnar' ),
		'id' 		=> 'dropcap',
		'std' 		=> '0',
		'type' 		=> 'checkbox'
	));

	themeblvd_add_option( 'content', 'general', 'timeago', array(
		'name' 		=> null,
		'desc' 		=> __( 'Use "time ago" formatting for publish dates.', 'gnar' ),
		'id' 		=> 'timeago',
		'std' 		=> '0',
		'type' 		=> 'checkbox'
	));

	themeblvd_add_option( 'content', 'general', 'scroll_effects', array(
		'name' 		=> null,
		'desc' 		=> __( 'Apply scroll effects to custom layouts.', 'gnar' ),
		'id' 		=> 'scroll_effects',
		'std' 		=> '1',
		'type' 		=> 'checkbox'
	));

    // Edit Content > Single Posts > Featured Images
    themeblvd_edit_option('content', 'single', 'single_thumbs', 'std', 'fw');

	// Edit Content > Single Posts > Related Posts Style
	themeblvd_edit_option('content', 'single', 'single_related_posts_style', 'std', 'grid');

    // Edit Content > Post List
    themeblvd_edit_option('content', 'list', 'list_more', 'std', 'button');
    themeblvd_edit_option('content', 'list', 'list_more_text', 'std', 'Read More'); // def option value, doesn't need to be localized

}
add_action('after_setup_theme', 'gnar_options');

/**
 * Customizer integration
 *
 * @since 1.0.0
 */
function gnar_customize_register( $wp_customize ) {

	$option_name = themeblvd_get_option_name();

	/**
	 * Site Style (custom section)
	 */

 	// Add section
 	$wp_customize->add_section( 'themeblvd_style', array(
 		'title'    => __('Site Style', 'gnar'),
 		'priority' => 30,
 	));

	// Site Style
	$wp_customize->add_setting($option_name.'[layout_style]', array(
		'default' 			=> 'stretch',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_text',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control('gnar_layout_style', array(
		'label'		=> __('Site Style', 'gnar'),
		'section'	=> 'themeblvd_style',
		'settings'	=> $option_name.'[layout_style]',
		'type'		=> 'select',
		'choices'	=> array(
			'stretch' 	=> __('Stretched', 'gnar'),
			'boxed' 	=> __('Boxed', 'gnar')
		)
	));

	// Content Style
	$wp_customize->add_setting($option_name.'[style]', array(
		'default' 			=> 'light',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_text',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'refresh'
	));

	$wp_customize->add_control('gnar_style', array(
		'label'		=> __('Content Style', 'gnar'),
		'section'	=> 'themeblvd_style',
		'settings'	=> $option_name.'[style]',
		'type'		=> 'select',
		'choices'	=> array(
			'light' 	=> __('Light', 'gnar'),
	        'dark' 		=> __('Dark', 'gnar')
		)
	));

	// Primary Buttons
	$wp_customize->add_setting($option_name.'[btn_color]', array(
		'default' 			=> '#1a212c',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_btn_color', array(
		'settings'		=> $option_name.'[btn_color]',
		'label'			=> __('Primary Buttons', 'gnar'),
		'section'		=> 'themeblvd_style'
	)));

	// Highlight
	$wp_customize->add_setting($option_name.'[highlight]', array(
		'default' 			=> '#e64d43',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_highlight', array(
		'settings'		=> $option_name.'[highlight]',
		'label'			=> __('Default Highlight', 'gnar'),
		'section'		=> 'themeblvd_style'
	)));

	/**
	 * Site Style (custom section)
	 */

 	// Add section
 	$wp_customize->add_section( 'themeblvd_header_style', array(
 		'title'    => __('Header Style', 'gnar'),
 		'priority' => 35,
 	));

	// Header Style
	$wp_customize->add_setting($option_name.'[header_style]', array(
		'default' 			=> 'edgy',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_text',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control('gnar_header_style', array(
		'label'		=> __('Header Style', 'gnar'),
		'section'	=> 'themeblvd_header_style',
		'settings'	=> $option_name.'[header_style]',
		'type'		=> 'select',
		'choices'	=> array(
			'edgy' 		=> __('Edgy', 'gnar'),
	        'bold' 		=> __('Bold', 'gnar'),
			'modern'	=> __('Modern', 'gnar')
		)
	));

	// Logo Placement
	$wp_customize->add_setting($option_name.'[header_logo_placement]', array(
		'default' 			=> 'right',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_text',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control('gnar_header_logo_placement', array(
		'label'		=> __('Logo Placement', 'gnar'),
		'section'	=> 'themeblvd_header_style',
		'settings'	=> $option_name.'[header_logo_placement]',
		'type'		=> 'select',
		'choices'	=> array(
			'left' 	=> __('Left', 'gnar'),
			'right' => __('Right', 'gnar')
		)
	));

	// Header Logo Color
	$wp_customize->add_setting($option_name.'[header_logo_color]', array(
		'default' 			=> '#e64d43',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_header_logo_color', array(
		'settings'		=> $option_name.'[header_logo_color]',
		'label'			=> __('Logo Color', 'gnar'),
		'section'		=> 'themeblvd_header_style'
	)));

	// Header Toggle Color
	$wp_customize->add_setting($option_name.'[header_toggle_color]', array(
		'default' 			=> '#e64d43',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_header_toggle_color', array(
		'settings'		=> $option_name.'[header_toggle_color]',
		'label'			=> __('Menu Toggle Color', 'gnar'),
		'section'		=> 'themeblvd_header_style'
	)));

	// Mobile Toggle Color
	$wp_customize->add_setting($option_name.'[mobile_header_toggle_color]', array(
		'default' 			=> '#e64d43',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_mobile_header_toggle_color', array(
		'settings'		=> $option_name.'[mobile_header_toggle_color]',
		'label'			=> __('Mobile Menu Toggle Color', 'gnar'),
		'section'		=> 'themeblvd_header_style'
	)));

	/**
	 * Background Colors (adding to WP default section, but with name changed from "Colors")
	 */

	$wp_customize->get_section('colors')->title = __('Background Colors', 'gnar');

	// Header BG Color
	$wp_customize->add_setting($option_name.'[header_bg_color]', array(
		'default' 			=> '#1a212c',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_header_bg_color', array(
		'settings'		=> $option_name.'[header_bg_color]',
		'label'			=> __('Header', 'gnar'),
		'section'		=> 'colors'
	)));

	// Header BG Brightness
	$wp_customize->add_setting($option_name.'[header_bg_brightness]', array(
		'default' 			=> 'dark',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_text',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control('gnar_header_bg_brightness', array(
		'label'		=> __('Header Brightness', 'gnar'),
		'section'	=> 'colors',
		'settings'	=> $option_name.'[header_bg_brightness]',
		'type'		=> 'select',
		'choices'	=> array(
			'light' => __('Light Color', 'gnar'),
	        'dark' 	=> __('Dark Color', 'gnar')
		)
	));

	// Mobile Header BG Color
	$wp_customize->add_setting($option_name.'[mobile_header_bg_color]', array(
		'default' 			=> '#1a212c',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_mobile_header_bg_color', array(
		'settings'		=> $option_name.'[mobile_header_bg_color]',
		'label'			=> __('Mobile Header', 'gnar'),
		'section'		=> 'colors'
	)));

	// Mobile Header BG Brightness
	$wp_customize->add_setting($option_name.'[mobile_header_bg_brightness]', array(
		'default' 			=> 'dark',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_text',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control('gnar_mobile_header_bg_brightness', array(
		'label'		=> __('Mobile Header Brightness', 'gnar'),
		'section'	=> 'colors',
		'settings'	=> $option_name.'[mobile_header_bg_brightness]',
		'type'		=> 'select',
		'choices'	=> array(
			'light' => __('Light Color', 'gnar'),
	        'dark' 	=> __('Dark Color', 'gnar')
		)
	));

	// Search Panel BG Color
	$wp_customize->add_setting($option_name.'[search_panel_bg_color]', array(
		'default' 			=> '#ffffff',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_search_panel_bg_color', array(
		'settings'		=> $option_name.'[search_panel_bg_color]',
		'label'			=> __('Search Panel', 'gnar'),
		'section'		=> 'colors'
	)));

	// Search Panel BG Brightness
	$wp_customize->add_setting($option_name.'[search_panel_brightness]', array(
		'default' 			=> 'light',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_text',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control('gnar_search_panel_brightness', array(
		'label'		=> __('Search Panel Brightness', 'gnar'),
		'section'	=> 'colors',
		'settings'	=> $option_name.'[search_panel_brightness]',
		'type'		=> 'select',
		'choices'	=> array(
			'light' => __('Light Color', 'gnar'),
	        'dark' 	=> __('Dark Color', 'gnar')
		)
	));

	// Footer BG Color
	$wp_customize->add_setting($option_name.'[footer_bg_color]', array(
		'default' 			=> '#1a212c',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_footer_bg_color', array(
		'settings'		=> $option_name.'[footer_bg_color]',
		'label'			=> __('Footer', 'gnar'),
		'section'		=> 'colors'
	)));

	// Footer BG Brightness
	$wp_customize->add_setting($option_name.'[footer_bg_brightness]', array(
		'default' 			=> 'dark',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_text',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control('gnar_footer_bg_brightness', array(
		'label'		=> __('Footer Brightness', 'gnar'),
		'section'	=> 'colors',
		'settings'	=> $option_name.'[footer_bg_brightness]',
		'type'		=> 'select',
		'choices'	=> array(
			'light' => __('Light Color', 'gnar'),
	        'dark' 	=> __('Dark Color', 'gnar')
		)
	));

	// Copyright BG Color
	$wp_customize->add_setting($option_name.'[copyright_bg_color]', array(
		'default' 			=> '#112633',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_hex',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'gnar_copyright_bg_color', array(
		'settings'		=> $option_name.'[copyright_bg_color]',
		'label'			=> __('Copyright', 'gnar'),
		'section'		=> 'colors'
	)));

	// Copyright BG Brightness
	$wp_customize->add_setting($option_name.'[copyright_bg_brightness]', array(
		'default' 			=> 'dark',
		'type'       		=> 'option',
		'sanitize_callback' => 'themeblvd_sanitize_text',
		'capability'		=> themeblvd_admin_module_cap('options'),
		'transport'			=> 'postMessage'
	));

	$wp_customize->add_control('gnar_copyright_bg_brightness', array(
		'label'		=> __('Copyright Brightness', 'gnar'),
		'section'	=> 'colors',
		'settings'	=> $option_name.'[copyright_bg_brightness]',
		'type'		=> 'select',
		'choices'	=> array(
			'light' => __('Light Color', 'gnar'),
	        'dark' 	=> __('Dark Color', 'gnar')
		)
	));

	// ...

}
add_action('customize_register', 'gnar_customize_register');

/**
 * Add javascript files to admin customizer
 * controls.
 *
 * @since 1.0.0
 */
function gnar_customize_controls() {

	$theme = wp_get_theme( get_template() );
	$ver = $theme->get('Version');

	wp_enqueue_script( 'gnar-customize-controls', esc_url( get_template_directory_uri() . '/assets/js/admin-customizer.min.js' ), array('jquery', 'customize-controls'), $ver );

}
add_action('customize_controls_enqueue_scripts', 'gnar_customize_controls');

/**
 * Customizer live preview javascript file
 *
 * @since 1.0.0
 */
function gnar_customize_preview() {

	$theme = wp_get_theme( get_template() );
	$ver = $theme->get('Version');

	wp_enqueue_script( 'gnar-customize', esc_url( get_template_directory_uri() . '/assets/js/theme-customizer.min.js' ), array('jquery', 'customize-preview'), $ver );

	wp_localize_script( 'gnar-customize', 'gnar_customize', array(
		'option_id' 	=> themeblvd_get_option_name(),
		'template_uri' 	=> get_template_directory_uri()
	));

}
add_action('customize_preview_init', 'gnar_customize_preview');

/**
 * Allow "refresh" transport type settings to
 * work right in the Customizer.
 *
 * @since 1.0.0
 */
function gnar_customize_refresh() {

	global $wp_customize;

	// Check if customizer is running.
	if ( ! is_a( $wp_customize, 'WP_Customize_Manager' ) ) {
		return;
	}

	// Reset themeblvd settings after Customizer
	// has applied filters.
	if ( $wp_customize->is_preview() ) {
		$api = Theme_Blvd_Options_API::get_instance();
		$api->set_settings();
	}
}
add_action('wp_loaded', 'gnar_customize_refresh');

/**
 * Filtered mods to final, formatted theme options for
 * anything that can't be achieved through API --
 * See previous gnar_options().
 *
 * @since 1.0.0
 */
function gnar_formatted_options( $options ) {

    if ( is_admin() ) {

        // For all sidebar layout options, remove double sidebar choices.
        $choices = array();
        $layouts = themeblvd_sidebar_layouts(); // has now been filtered by Gnar

        foreach ( $layouts as $layout ) {
            $choices[$layout['id']] = get_template_directory_uri() . '/framework/admin/assets/images/layout-'.$layout['id'].'.png';
        }

        if ( isset( $options['sidebar_layout'] ) ) {
            $options['sidebar_layout']['options'] = $choices;
        }

        $choices = array_merge( array('default' => get_template_directory_uri() . '/framework/admin/assets/images/layout-default.png'), $choices );

        if ( isset( $options['single_sidebar_layout'] ) ) {
            $options['single_sidebar_layout']['options'] = $choices;
        }

        if ( isset( $options['page_sidebar_layout'] ) ) {
            $options['page_sidebar_layout']['options'] = $choices;
        }

        if ( isset( $options['archive_sidebar_layout'] ) ) {
            $options['archive_sidebar_layout']['options'] = $choices;
        }

        if ( isset( $options['portfolio_sidebar_layout'] ) ) {
            $options['portfolio_sidebar_layout']['options'] = $choices;
        }
    }

    return $options;

}
add_filter('themeblvd_formatted_options', 'gnar_formatted_options', 15);

/**
 * Modify post meta box options
 *
 * @since 1.0.0
 */
function gnar_post_meta( $setup ) {

    $add = array(
        'tb_dropcap' => array(
            'id' 		=> 'tb_dropcap',
            'name' 		=> __( 'Dropcap (the single post)', 'gnar' ),
            'desc' 		=> __( 'Select if you\'d like the first letter of the post\'s content to be a dropcap.', 'gnar' ),
            'std' 		=> 'default',
            'type' 		=> 'radio',
            'options' 	=> array(
                'default'   => __( 'Use default setting', 'gnar' ),
                'yes'       => __( 'Yes, use a dropcap', 'gnar' ),
                'no'        => __( 'No, don\'t use a dropcap', 'gnar' )
            )
        )
    );

    $setup['options'] = array_merge($add, $setup['options']);

    return $setup;
}
add_filter('themeblvd_post_meta', 'gnar_post_meta');
