// Custom CSS End
// Excerpt Options
$wp_customize->add_section('catchbase_excerpt_options', array('panel' => 'catchbase_theme_options', 'priority' => 204, 'title' => __('Excerpt Options', 'catch-base')));
$wp_customize->add_setting('catchbase_theme_options[excerpt_length]', array('capability' => 'edit_theme_options', 'default' => $defaults['excerpt_length'], 'sanitize_callback' => 'absint'));
$wp_customize->add_control('catchbase_excerpt_length', array('description' => __('Excerpt length. Default is 40 words', 'catch-base'), 'input_attrs' => array('min' => 10, 'max' => 200, 'step' => 5, 'style' => 'width: 60px;'), 'label' => __('Excerpt Length (words)', 'catch-base'), 'section' => 'catchbase_excerpt_options', 'settings' => 'catchbase_theme_options[excerpt_length]', 'type' => 'number'));
$wp_customize->add_setting('catchbase_theme_options[excerpt_more_text]', array('capability' => 'edit_theme_options', 'default' => $defaults['excerpt_more_text'], 'sanitize_callback' => 'sanitize_text_field'));
$wp_customize->add_control('catchbase_excerpt_more_text', array('label' => __('Read More Text', 'catch-base'), 'section' => 'catchbase_excerpt_options', 'settings' => 'catchbase_theme_options[excerpt_more_text]', 'type' => 'text'));
// Excerpt Options End
// Feed Redirect
$wp_customize->add_section('catchbase_feed_redirect', array('panel' => 'catchbase_theme_options', 'description' => __('If your custom feed(s) are not handled by Feedblitz or Feedburner, do not use the redirect options.', 'catch-base'), 'priority' => 205, 'title' => __('Feed Redirect', 'catch-base')));
$wp_customize->add_setting('catchbase_theme_options[feed_redirect]', array('capability' => 'edit_theme_options', 'default' => $defaults['feed_redirect'], 'sanitize_callback' => 'esc_url_raw'));
$wp_customize->add_control('catchbase_feed_redirect', array('label' => __('Feed Redirect', 'catch-base'), 'section' => 'catchbase_feed_redirect', 'settings' => 'catchbase_theme_options[feed_redirect]', 'type' => 'text'));
// Feed Redirect End
// Font Family Options
$wp_customize->add_section('catchbase_font_family', array('panel' => 'catchbase_theme_options', 'priority' => 206, 'title' => __('Font Family Options', 'catch-base')));
$avaliable_fonts = catchbase_avaliable_fonts();
$choices = array();
foreach ($avaliable_fonts as $avaliable_font) {
    $choices[$avaliable_font['value']] = str_replace('"', '', $avaliable_font['label']);
}
$font_family_options = array('title_font' => __('Site Title Font Family', 'catch-base'), 'body_font' => __('Default Font Family', 'catch-base'), 'tagline_font' => __('Site Tagline Font Family', 'catch-base'), 'content_title_font' => __('Content Title Font Family', 'catch-base'), 'content_font' => __('Content Body Font Family', 'catch-base'), 'headings_font' => __('Headings Tags from h1 to h6 Font Family', 'catch-base'));
foreach ($font_family_options as $key => $font_family_option) {
    $wp_customize->add_setting('catchbase_theme_options[' . $key . ']', array('capability' => 'edit_theme_options', 'default' => $defaults[$key], 'sanitize_callback' => 'sanitize_key'));
    $wp_customize->add_control('catchbase_theme_options[' . $key . ']', array('choices' => $choices, 'label' => $font_family_option, 'section' => 'catchbase_font_family', 'settings' => 'catchbase_theme_options[' . $key . ']', 'type' => 'select'));
}
$wp_customize->add_setting('catchbase_theme_options[reset_typography]', array('capability' => 'edit_theme_options', 'default' => $defaults['reset_typography'], 'sanitize_callback' => 'catchbase_reset_typography'));
$wp_customize->add_control('catchbase_theme_options[reset_typography]', array('label' => __('Check to reset fonts', 'catch-base'), 'section' => 'catchbase_font_family', 'settings' => 'catchbase_theme_options[reset_typography]', 'type' => 'checkbox'));
// Font Family Options End
// Footer Editor Options
$wp_customize->add_section('catchbase_footer_options', array('description' => __('You can either add html or plain text', 'catch-base'), 'panel' => 'catchbase_theme_options', 'priority' => 207, 'title' => __('Footer Editor Options', 'catch-base')));
$wp_customize->add_setting('catchbase_theme_options[footer_left_content]', array('capability' => 'edit_theme_options', 'default' => $defaults['footer_left_content'], 'sanitize_callback' => 'catchbase_sanitize_footer_code'));
 /**
  * Enqueue Custon CSS
  *
  * @uses  set_transient, wp_head, wp_enqueue_style
  *
  * @action wp_enqueue_scripts
  * 
  * @since Catch Base 1.0
  */
 function catchbase_custom_css()
 {
     //catchbase_flush_transients();
     $options = catchbase_get_theme_options();
     $defaults = catchbase_get_default_theme_options();
     $defaults_temp = $defaults;
     $fonts = catchbase_avaliable_fonts();
     $responsive_select = isset($options['responsive_select']) && $options['responsive_select'] ? 1 : 0;
     if (!($catchbase_custom_css = get_transient('catchbase_custom_css'))) {
         $catchbase_custom_css = '';
         $text_color = get_header_textcolor();
         //Change values of default colors if the scheme is dark
         if ('dark' == $options['color_scheme']) {
             $defaults = catchbase_default_dark_color_options();
         }
         if ('blank' == $text_color) {
             $catchbase_custom_css .= ".site-title a, .site-description { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); }" . "\n";
         } elseif (HEADER_TEXTCOLOR != $text_color) {
             $catchbase_custom_css .= ".site-title a, .site-description { color: #" . $text_color . "; }" . "\n";
         }
         //Basic Color Options
         if ($defaults['text_color'] != $options['text_color']) {
             $catchbase_custom_css .= "body, button, input, select, textarea { color: " . $options['text_color'] . "; }" . "\n";
         }
         if ($defaults['link_color'] != $options['link_color']) {
             $catchbase_custom_css .= "a { color: " . $options['link_color'] . "; }" . "\n";
         }
         if ($defaults['link_hover_color'] != $options['link_hover_color']) {
             $catchbase_custom_css .= "a:hover, a:focus, a:active { color: " . $options['link_hover_color'] . "; }" . "\n";
         }
         //Header Color Options
         if ($defaults['header_background_color'] != $options['header_background_color']) {
             $catchbase_custom_css .= "#masthead { background-color: " . $options['header_background_color'] . "; }" . "\n";
         }
         if ($defaults['site_title_hover_color'] != $options['site_title_hover_color']) {
             $catchbase_custom_css .= ".site-title a:hover { color: " . $options['site_title_hover_color'] . "; }" . "\n";
         }
         if ($defaults['tagline_color'] != $options['tagline_color']) {
             $catchbase_custom_css .= ".site-description { color: " . $options['tagline_color'] . "; }" . "\n";
         }
         //Content Color Options
         if ($defaults['content_wrapper_background_color'] != $options['content_wrapper_background_color']) {
             $catchbase_custom_css .= "#content { background-color: " . $options['content_wrapper_background_color'] . "; }" . "\n";
         }
         if ($defaults['content_background_color'] != $options['content_background_color']) {
             $catchbase_custom_css .= "#main { background-color: " . $options['content_background_color'] . "; }" . "\n";
         }
         if ($defaults['content_title_color'] != $options['content_title_color']) {
             $catchbase_custom_css .= ".page-title, #main .entry-title, #main .entry-title a { color: " . $options['content_title_color'] . "; }" . "\n";
         }
         if ($defaults['content_title_hover_color'] != $options['content_title_hover_color']) {
             $catchbase_custom_css .= "#main .entry-title a:hover { color: " . $options['content_title_hover_color'] . "; }" . "\n";
         }
         if ($defaults['content_meta_color'] != $options['content_meta_color']) {
             $catchbase_custom_css .= "#main .entry-meta a { color: " . $options['content_meta_color'] . "; }" . "\n";
         }
         if ($defaults['content_meta_hover_color'] != $options['content_meta_hover_color']) {
             $catchbase_custom_css .= "#main .entry-meta a:hover { color: " . $options['content_meta_hover_color'] . "; }" . "\n";
         }
         //Sidebar Color Options
         if ($defaults['sidebar_background_color'] != $options['sidebar_background_color']) {
             $catchbase_custom_css .= ".sidebar-primary, .sidebar-secondary { background-color: " . $options['sidebar_background_color'] . "; }" . "\n";
         }
         if ($defaults['sidebar_widget_title_color'] != $options['sidebar_widget_title_color']) {
             $catchbase_custom_css .= ".sidebar-primary .widget-wrap .widget-title, .sidebar-primary .widget-wrap .widget-title a, .sidebar-secondary .widget-wrap .widget-title, .widget-wrap .sidebar-secondary .widget-title a { color: " . $options['sidebar_widget_title_color'] . "; }" . "\n";
         }
         if ($defaults['sidebar_widget_text_color'] != $options['sidebar_widget_text_color']) {
             $catchbase_custom_css .= ".sidebar-primary .widget-wrap, .sidebar-secondary .widget-wrap { color: " . $options['sidebar_widget_text_color'] . "; }" . "\n";
         }
         if ($defaults['sidebar_widget_link_color'] != $options['sidebar_widget_link_color']) {
             $catchbase_custom_css .= ".sidebar-primary .widget-wrap a, .sidebar-secondary .widget-wrap a { color: " . $options['sidebar_widget_text_color'] . "; }" . "\n";
         }
         //Pagination Color Options
         if ($defaults['pagination_background_color'] != $options['pagination_background_color']) {
             $catchbase_custom_css .= "#nav-below, #infinite-handle { background-color: " . $options['pagination_background_color'] . "; }" . "\n";
         }
         if ($defaults['pagination_hover_background_color'] != $options['pagination_hover_background_color']) {
             $catchbase_custom_css .= "#nav-below:hover, #infinite-handle:hover { background-color: " . $options['pagination_hover_background_color'] . "; }" . "\n";
         }
         if ($defaults['pagination_text_color'] != $options['pagination_text_color']) {
             $catchbase_custom_css .= "#nav-below .wp-pagenavi span.pages, #infinite-handle span { color: " . $options['pagination_text_color'] . "; }" . "\n";
         }
         if ($defaults['pagination_link_color'] != $options['pagination_link_color']) {
             $catchbase_custom_css .= "#nav-below a, #nav-below .wp-pagenavi a, #nav-below .wp-pagenavi span, #infinite-handle span { color: " . $options['pagination_link_color'] . "; }" . "\n";
         }
         if ($defaults['pagination_hover_active_color'] != $options['pagination_hover_active_color']) {
             $catchbase_custom_css .= "#nav-below a:hover, #nav-below .wp-pagenavi a:hover, #nav-below .wp-pagenavi span.current, #infinite-handle span:hover, #infinite-handle span:hover { color: " . $options['pagination_hover_active_color'] . "; }" . "\n";
         }
         if ($defaults['numeric_infinite_scroll_background_color'] != $options['numeric_infinite_scroll_background_color']) {
             $catchbase_custom_css .= "#nav-below .wp-pagenavi a, #infinite-handle span { background-color: " . $options['numeric_infinite_scroll_background_color'] . "; }" . "\n";
         }
         if ($defaults['numeric_infinite_scroll_hover_background_color'] != $options['numeric_infinite_scroll_hover_background_color']) {
             $catchbase_custom_css .= "#nav-below .wp-pagenavi a:hover, #nav-below .wp-pagenavi span.current,  #infinite-handle span:hover { background-color: " . $options['numeric_infinite_scroll_hover_background_color'] . "; }" . "\n";
         }
         //Footer Color Options
         if ($defaults['footer_background_color'] != $options['footer_background_color'] || $defaults['footer_text_color'] != $options['footer_text_color']) {
             $catchbase_custom_css .= "#site-generator { background-color: " . $options['footer_background_color'] . "; color: " . $options['footer_text_color'] . "; }" . "\n";
         }
         if ($defaults['footer_link_color'] != $options['footer_link_color']) {
             $catchbase_custom_css .= "#site-generator a { color: " . $options['footer_link_color'] . "; }" . "\n";
         }
         if ($defaults['footer_sidebar_area_background_color'] != $options['footer_sidebar_area_background_color']) {
             $catchbase_custom_css .= "#supplementary { background-color: " . $options['footer_sidebar_area_background_color'] . "; }" . "\n";
         }
         if ($defaults['footer_widget_background_color'] != $options['footer_widget_background_color']) {
             $catchbase_custom_css .= "#supplementary .widget { background-color: " . $options['footer_widget_background_color'] . "; }" . "\n";
         }
         if ($defaults['footer_widget_title_color'] != $options['footer_widget_title_color']) {
             $catchbase_custom_css .= "#supplementary .widget-wrap .widget-title, #supplementary .widget-wrap .widget-title a { color: " . $options['footer_widget_title_color'] . "; }" . "\n";
         }
         if ($defaults['footer_widget_text_color'] != $options['footer_widget_text_color']) {
             $catchbase_custom_css .= "#supplementary .widget-wrap { color: " . $options['footer_widget_text_color'] . "; }" . "\n";
         }
         if ($defaults['footer_widget_link_color'] != $options['footer_widget_link_color']) {
             $catchbase_custom_css .= "#supplementary .widget-wrap a { color: " . $options['footer_widget_link_color'] . "; }" . "\n";
         }
         //Promotion Headline Color Options
         if ($defaults['promotion_headline_background_color'] != $options['promotion_headline_background_color'] || $defaults['promotion_headline_text_color'] != $options['promotion_headline_text_color']) {
             $catchbase_custom_css .= "#promotion-message { background-color: " . $options['promotion_headline_background_color'] . "; color: " . $options['promotion_headline_text_color'] . ";  }" . "\n";
         }
         if ($defaults['promotion_headline_link_color'] != $options['promotion_headline_link_color']) {
             $catchbase_custom_css .= "#promotion-message a { color: " . $options['promotion_headline_link_color'] . "; }" . "\n";
         }
         if ($defaults['promotion_headline_button_background_color'] != $options['promotion_headline_button_background_color'] || $defaults['promotion_headline_button_text_color'] != $options['promotion_headline_button_text_color']) {
             $catchbase_custom_css .= "#promotion-message .right a { background-color: " . $options['promotion_headline_button_background_color'] . "; color: " . $options['promotion_headline_button_text_color'] . "; }" . "\n";
         }
         if ($defaults['promotion_headline_button_hover_background_color'] != $options['promotion_headline_button_hover_background_color'] || $defaults['promotion_headline_button_hover_text_color'] != $options['promotion_headline_button_hover_text_color']) {
             $catchbase_custom_css .= "#promotion-message .right a:hover { background-color: " . $options['promotion_headline_button_hover_background_color'] . "; color: " . $options['promotion_headline_button_hover_text_color'] . "; }" . "\n";
         }
         //Scrollup Color Options
         if ($defaults['scrollup_background_color'] != $options['scrollup_background_color'] || $defaults['scrollup_text_color'] != $options['scrollup_text_color']) {
             $catchbase_custom_css .= "#scrollup { background-color: " . $options['scrollup_background_color'] . "; color: " . $options['scrollup_text_color'] . "; }" . "\n";
         }
         if ($defaults['scrollup_hover_background_color'] != $options['scrollup_hover_background_color'] || $defaults['scrollup_hover_text_color'] != $options['scrollup_hover_text_color']) {
             $catchbase_custom_css .= "#scrollup:hover { background-color: " . $options['scrollup_hover_background_color'] . "; color: " . $options['scrollup_hover_text_color'] . "; }" . "\n";
         }
         //Slider Color Options
         if ($defaults['slider_background_color'] != $options['slider_background_color']) {
             $catchbase_custom_css .= "#feature-slider { background-color: " . $options['slider_background_color'] . "; }" . "\n";
         }
         if ($defaults['slider_text_color'] != $options['slider_text_color']) {
             $catchbase_custom_css .= "#feature-slider .entry-container { color: " . $options['slider_text_color'] . "; }" . "\n";
         }
         if ($defaults['slider_link_color'] != $options['slider_link_color']) {
             $catchbase_custom_css .= "#feature-slider .entry-container a { color: " . $options['slider_link_color'] . "; }" . "\n";
         }
         //Featured Content Color Options
         if ($defaults['featured_content_background_color'] != $options['featured_content_background_color']) {
             $catchbase_custom_css .= "#featured-content { background-color: " . $options['featured_content_background_color'] . "; }" . "\n";
         }
         if ($defaults['featured_content_title_color'] != $options['featured_content_title_color']) {
             $catchbase_custom_css .= "#featured-content .entry-title, #featured-content .entry-title a { color: " . $options['featured_content_title_color'] . "; }" . "\n";
         }
         if ($defaults['featured_content_text_color'] != $options['featured_content_text_color']) {
             $catchbase_custom_css .= "#featured-content { color: " . $options['featured_content_text_color'] . "; }" . "\n";
         }
         if ($defaults['featured_content_link_color'] != $options['featured_content_link_color']) {
             $catchbase_custom_css .= "#featured-content a { color: " . $options['featured_content_link_color'] . "; }" . "\n";
         }
         // Primary Menu Color
         if ($defaults['menu_background_color'] != $options['menu_background_color'] || $defaults['menu_color'] != $options['menu_color'] || $defaults['hover_active_color'] != $options['hover_active_color'] || $defaults['hover_active_text_color'] != $options['hover_active_text_color'] || $defaults['sub_menu_background_color'] != $options['sub_menu_background_color'] || $defaults['sub_menu_text_color'] != $options['sub_menu_text_color']) {
             $catchbase_custom_css .= ".nav-primary { background-color: " . $options['menu_background_color'] . "; }" . "\n";
             $catchbase_custom_css .= ".nav-primary ul.menu a { color: " . $options['menu_color'] . "; }" . "\n";
             $catchbase_custom_css .= ".nav-primary ul.menu li:hover > a, .nav-primary ul.menu a:focus, .nav-primary ul.menu .current-menu-item > a, .nav-primary ul.menu .current-menu-ancestor > a, .nav-primary ul.menu .current_page_item > a, .nav-primary ul.menu .current_page_ancestor > a { background-color: " . $options['hover_active_color'] . "; color: " . $options['hover_active_text_color'] . "; }" . "\n";
             $catchbase_custom_css .= ".nav-primary ul.menu .sub-menu a, .nav-primary ul.menu .children a { background-color: " . $options['sub_menu_background_color'] . "; color: " . $options['sub_menu_text_color'] . "; }" . "\n";
         }
         // Secondary Menu Color
         if ($defaults['secondary_menu_background_color'] != $options['secondary_menu_background_color'] || $defaults['secondary_menu_color'] != $options['secondary_menu_color'] || $defaults['secondary_hover_active_color'] != $options['secondary_hover_active_color'] || $defaults['secondary_hover_active_text_color'] != $options['secondary_hover_active_text_color'] || $defaults['secondary_sub_menu_background_color'] != $options['secondary_sub_menu_background_color'] || $defaults['secondary_sub_menu_text_color'] != $options['secondary_sub_menu_text_color']) {
             $catchbase_custom_css .= ".nav-secondary { background-color: " . $options['secondary_menu_background_color'] . "; }" . "\n";
             $catchbase_custom_css .= ".nav-secondary ul.menu a { color: " . $options['secondary_menu_color'] . "; }" . "\n";
             $catchbase_custom_css .= ".nav-secondary ul.menu li:hover > a, .nav-secondary ul.menu a:focus, .nav-secondary ul.menu .current-menu-item > a, .nav-secondary ul.menu .current-menu-ancestor > a, .nav-secondary ul.menu .current_page_item > a, .nav-secondary ul.menu .current_page_ancestor > a { background-color: " . $options['secondary_hover_active_color'] . "; color: " . $options['secondary_hover_active_text_color'] . "; }" . "\n";
             $catchbase_custom_css .= ".nav-secondary ul.menu .sub-menu a, .nav-secondary ul.menu .children a { background-color: " . $options['secondary_sub_menu_background_color'] . "; color: " . $options['secondary_sub_menu_text_color'] . "; }" . "\n";
         }
         // Header Right Menu Color
         if (isset($options['header_right_menu_background_color'])) {
             //Check isset because this option is added later. Remove this check for fresh themes
             if ($defaults['header_right_menu_background_color'] != $options['header_right_menu_background_color'] || $defaults['header_right_menu_color'] != $options['header_right_menu_color'] || $defaults['header_right_hover_active_color'] != $options['header_right_hover_active_color'] || $defaults['header_right_hover_active_text_color'] != $options['header_right_hover_active_text_color'] || $defaults['header_right_sub_menu_background_color'] != $options['header_right_sub_menu_background_color'] || $defaults['header_right_sub_menu_text_color'] != $options['header_right_sub_menu_text_color']) {
                 $catchbase_custom_css .= ".sidebar-header-right .wrapper, .sidebar-header-right .widget_nav_menu { background-color: " . $options['header_right_menu_background_color'] . "; }" . "\n";
                 $catchbase_custom_css .= ".sidebar-header-right ul.menu a { color: " . $options['header_right_menu_color'] . "; }" . "\n";
                 $catchbase_custom_css .= ".sidebar-header-right ul.menu li:hover > a, .sidebar-header-right ul.menu a:focus, .sidebar-header-right ul.menu .current-menu-item > a, .sidebar-header-right ul.menu .current-menu-ancestor > a { background-color: " . $options['header_right_hover_active_color'] . "; color: " . $options['header_right_hover_active_text_color'] . "; }" . "\n";
                 $catchbase_custom_css .= ".sidebar-header-right ul.menu .sub-menu a { background-color: " . $options['header_right_sub_menu_background_color'] . "; color: " . $options['header_right_sub_menu_text_color'] . "; }" . "\n";
             }
         }
         // Footer Menu Color
         if ($defaults['footer_menu_background_color'] != $options['footer_menu_background_color'] || $defaults['footer_menu_color'] != $options['footer_menu_color'] || $defaults['footer_hover_active_color'] != $options['footer_hover_active_color'] || $defaults['footer_hover_active_text_color'] != $options['footer_hover_active_text_color'] || $defaults['footer_sub_menu_background_color'] != $options['footer_sub_menu_background_color'] || $defaults['footer_sub_menu_text_color'] != $options['footer_sub_menu_text_color']) {
             $catchbase_custom_css .= ".nav-footer { background-color: " . $options['footer_menu_background_color'] . "; }" . "\n";
             $catchbase_custom_css .= ".nav-footer ul.menu a { color: " . $options['footer_menu_color'] . "; }" . "\n";
             $catchbase_custom_css .= ".nav-footer ul.menu li:hover > a, .nav-footer ul.menu a:focus, .nav-footer ul.menu .current-menu-item > a, .nav-footer ul.menu .current-menu-ancestor > a, .nav-footer ul.menu .current_page_item > a, .nav-footer ul.menu .current_page_ancestor > a { background-color: " . $options['footer_hover_active_color'] . "; color: " . $options['footer_hover_active_text_color'] . "; }" . "\n";
             $catchbase_custom_css .= ".nav-footer ul.menu .sub-menu a, .nav-footer ul.menu .children a { background-color: " . $options['footer_sub_menu_background_color'] . "; color: " . $options['footer_sub_menu_text_color'] . "; }" . "\n";
         }
         //Revert values of default to its originals if the value is changed due to dark color scheme
         $defaults = $defaults_temp;
         // Typography (Font Family) Options
         if (!$options['reset_typography']) {
             if ($defaults['body_font'] != $options['body_font']) {
                 $catchbase_custom_css .= "body, button, input, select, textarea { font-family: " . $fonts[$options['body_font']]['label'] . "; }" . "\n";
             }
             if ($defaults['title_font'] != $options['title_font']) {
                 $catchbase_custom_css .= ".site-title { font-family: " . $fonts[$options['title_font']]['label'] . "; }" . "\n";
             }
             if ($defaults['tagline_font'] != $options['tagline_font']) {
                 $catchbase_custom_css .= ".site-description { font-family: " . $fonts[$options['tagline_font']]['label'] . "; }" . "\n";
             }
             if ($defaults['content_title_font'] != $options['content_title_font']) {
                 $catchbase_custom_css .= ".page-title, #main .entry-container .entry-title, #featured-content .entry-title { font-family: " . $fonts[$options['content_title_font']]['label'] . "; }" . "\n";
             }
             if ($defaults['content_font'] != $options['content_font']) {
                 $catchbase_custom_css .= "#main .entry-container, #featured-content { font-family: " . $fonts[$options['content_font']]['label'] . "; }" . "\n";
             }
             if ($defaults['headings_font'] != $options['headings_font']) {
                 $catchbase_custom_css .= "h1, h2, h3, h4, h5, h6 { font-family: " . $fonts[$options['headings_font']]['label'] . "; }" . "\n";
             }
         }
         /*
          * Custom css for genericon social icons. needs change: @change
          */
         if ($defaults['social_icon_size'] != $options['social_icon_size']) {
             if (isset($options['social_icon_size']) && $options['social_icon_size'] != '') {
                 $size = $options['social_icon_size'];
                 $catchbase_custom_css .= '.widget_catchbase_social_icons .genericon:before { font-size:' . $size . 'px; }' . "\n";
             }
         }
         //Custom CSS Option
         if (!empty($options['custom_css'])) {
             $catchbase_custom_css .= $options['custom_css'] . "\n";
         }
         if ('' != $catchbase_custom_css) {
             echo '<!-- refreshing cache -->' . "\n";
             $catchbase_custom_css = '<!-- ' . get_bloginfo('name') . ' inline CSS Styles -->' . "\n" . '<style type="text/css" media="screen">' . "\n" . $catchbase_custom_css;
             $catchbase_custom_css .= '</style>' . "\n";
         }
         set_transient('catchbase_custom_css', htmlspecialchars_decode($catchbase_custom_css), 86940);
     }
     echo $catchbase_custom_css;
 }