function woo_custom_typography() { // Get options global $woo_options; // Reset $output = ''; $default_google_font = false; // Add Text title and tagline if text title option is enabled if (isset($woo_options['woo_texttitle']) && $woo_options['woo_texttitle'] == 'true') { if ($woo_options['woo_font_site_title']) { $output .= '#header .site-title a {' . woo_generate_font_css($woo_options['woo_font_site_title']) . '}' . "\n"; } if ($woo_options['woo_tagline'] == "true" and $woo_options['woo_font_tagline']) { $output .= '#header .site-description {' . woo_generate_font_css($woo_options['woo_font_tagline']) . '}' . "\n"; } } if (isset($woo_options['woo_typography']) && $woo_options['woo_typography'] == 'true') { if (isset($woo_options['woo_font_body']) && $woo_options['woo_font_body']) { $output .= 'body { ' . woo_generate_font_css($woo_options['woo_font_body'], '1.5') . ' }' . "\n"; } if (isset($woo_options['woo_font_nav']) && $woo_options['woo_font_nav']) { $output .= '#navigation { font-size: 1em; } #navigation .nav a { ' . woo_generate_font_css($woo_options['woo_font_nav'], '1.4') . ' }' . "\n"; } if (isset($woo_options['woo_font_intro_section']) && $woo_options['woo_font_intro_section']) { $output .= '#intro h1 { ' . woo_generate_font_css($woo_options['woo_font_intro_section'], '1.3') . ' }' . "\n"; } if (isset($woo_options['woo_font_page_title']) && $woo_options['woo_font_page_title']) { $output .= '.page header h1 { ' . woo_generate_font_css($woo_options['woo_font_page_title'], '1.2') . ' }' . "\n"; } if (isset($woo_options['woo_font_post_title']) && $woo_options['woo_font_post_title']) { $output .= '.post header h1 { font-size: 1em; } .single-post .post header h1, .post header h1 a:link, .post header h1 a:visited { ' . woo_generate_font_css($woo_options['woo_font_post_title'], '1.2') . ' }' . "\n"; } if (isset($woo_options['woo_font_post_meta']) && $woo_options['woo_font_post_meta']) { $output .= '.post-meta { ' . woo_generate_font_css($woo_options['woo_font_post_meta']) . ' }' . "\n"; } if (isset($woo_options['woo_font_post_entry']) && $woo_options['woo_font_post_entry']) { $output .= '.entry, .entry p { ' . woo_generate_font_css($woo_options['woo_font_post_entry'], '1.5') . ' } h1, h2, h3, h4, h5, h6 { font-family: ' . stripslashes($woo_options['woo_font_post_entry']['face']) . ', arial, sans-serif; }' . "\n"; } if (isset($woo_options['woo_font_widget_titles']) && $woo_options['woo_font_widget_titles']) { $output .= '.widget h3 { ' . woo_generate_font_css($woo_options['woo_font_widget_titles']) . ' }' . "\n"; } if (isset($woo_options['woo_font_widget_titles']) && $woo_options['woo_font_widget_titles']) { $output .= '.widget h3 { ' . woo_generate_font_css($woo_options['woo_font_widget_titles']) . ' }' . "\n"; } // Component titles if (isset($woo_options['woo_font_component_titles']) && $woo_options['woo_font_component_titles']) { $output .= '.component h2.component-title { ' . woo_generate_font_css($woo_options['woo_font_component_titles']) . ' }' . "\n"; } // Add default typography Google Font } else { // Load default Google Fonts global $default_google_fonts; if (is_array($default_google_fonts) and count($default_google_fonts) > 0) { $count = 0; foreach ($default_google_fonts as $font) { $count++; $woo_options['woo_default_google_font_' . $count] = array('face' => $font); } $default_google_font = true; } } // Output styles if (isset($output) && $output != '') { // Load Google Fonts stylesheet in HEAD if (function_exists('woo_google_webfonts')) { woo_google_webfonts(); } $output = "\n" . "<!-- Woo Custom Typography -->\n<style type=\"text/css\">\n" . $output . "</style>\n"; echo $output; // Check if default google font is set and load Google Fonts stylesheet in HEAD } elseif ($default_google_font) { // Enable Google Fonts stylesheet in HEAD if (function_exists('woo_google_webfonts')) { woo_google_webfonts(); } } }
function woo_custom_typography() { // Get options global $woo_options; // Reset $output = ''; // Add Text title and tagline if text title option is enabled if (isset($woo_options['woo_texttitle']) && $woo_options['woo_texttitle'] == 'true') { if ($woo_options['woo_font_site_title']) { $output .= 'body #wrapper #logo .site-title a { ' . woo_generate_font_css($woo_options['woo_font_site_title']) . ' }' . "\n"; } if ($woo_options['woo_tagline'] == "true" and $woo_options['woo_font_tagline']) { $output .= '#logo .site-description { ' . woo_generate_font_css($woo_options['woo_font_tagline']) . '; }' . "\n"; } } if (isset($woo_options['woo_typography']) && $woo_options['woo_typography'] == 'true') { if (isset($woo_options['woo_font_body']) && $woo_options['woo_font_body']) { $output .= 'body { ' . woo_generate_font_css($woo_options['woo_font_body'], '1.5') . ' }' . "\n"; } if (isset($woo_options['woo_font_nav']) && $woo_options['woo_font_nav']) { $output .= '#navigation, #navigation .nav a { ' . woo_generate_font_css($woo_options['woo_font_nav'], '1.4') . ' !important; }' . "\n"; } if (isset($woo_options['woo_font_post_title']) && $woo_options['woo_font_post_title']) { $output .= '.post .title { ' . woo_generate_font_css($woo_options['woo_font_post_title']) . ' }' . "\n"; } if (isset($woo_options['woo_font_post_meta']) && $woo_options['woo_font_post_meta']) { $output .= '.post-meta { ' . woo_generate_font_css($woo_options['woo_font_post_meta']) . ' }' . "\n"; } if (isset($woo_options['woo_font_post_entry']) && $woo_options['woo_font_post_entry']) { $output .= '.entry, .entry p { ' . woo_generate_font_css($woo_options['woo_font_post_entry'], '1.5') . ' } h1, h2, h3, h4, h5, h6 { font-family: ' . stripslashes($woo_options['woo_font_post_entry']['face']) . ', arial, sans-serif; }' . "\n"; } if (isset($woo_options['woo_font_widget_titles']) && $woo_options['woo_font_widget_titles']) { $output .= '#sidebar .widget h3 { ' . woo_generate_font_css($woo_options['woo_font_widget_titles']) . ' }' . "\n"; } if (isset($woo_options['woo_font_footer_widget_titles']) && $woo_options['woo_font_footer_widget_titles']) { $output .= '#footer-widgets .widget h3 { ' . woo_generate_font_css($woo_options['woo_font_footer_widget_titles']) . ' }' . "\n"; } // Add default typography Google Font } else { // Set default font face // $woo_options['woo_default_face'] = array('face' => 'Arial, Helvetica, sans-serif'); // Output default font face if (isset($woo_options['woo_default_face']) && !empty($woo_options['woo_default_face'])) { $output .= 'h1, h2, h3, h4, h5, h6, .post .title, .archive_header { ' . woo_generate_font_css($woo_options['woo_default_face']) . ' }' . "\n"; } } // Output styles if (isset($output) && $output != '') { // Enable Google Fonts stylesheet in HEAD if (function_exists('woo_google_webfonts')) { woo_google_webfonts(); } $output = "<!-- Woo Custom Typography -->\n<style type=\"text/css\">\n" . $output . "</style>\n\n"; echo $output; } }
function woo_custom_typography() { // Get options global $woo_options; // Reset $output = ''; // Add Text title and tagline if text title option is enabled if ($woo_options['woo_texttitle'] == "true") { if ($woo_options['woo_font_site_title']) { $output .= '#logo .site-title a {' . woo_generate_font_css($woo_options['woo_font_site_title']) . '}' . "\n"; } if ($woo_options['woo_tagline'] == "true" and $woo_options['woo_font_tagline']) { $output .= '#logo .site-description {' . woo_generate_font_css($woo_options['woo_font_tagline']) . '}' . "\n"; } } if ($woo_options['woo_typography'] == "true") { if ($woo_options['woo_font_body']) { $output .= 'body { ' . woo_generate_font_css($woo_options['woo_font_body'], '1.5') . ' }' . "\n"; } if ($woo_options['woo_font_nav']) { $output .= '#navigation, #navigation .nav a { ' . woo_generate_font_css($woo_options['woo_font_nav'], '1.4') . ' }' . "\n"; } if ($woo_options['woo_font_post_title']) { $output .= '.post .title, .archive_header { ' . woo_generate_font_css($woo_options['woo_font_post_title']) . ' }' . "\n"; } if ($woo_options['woo_font_post_meta']) { $output .= '.post-meta { ' . woo_generate_font_css($woo_options['woo_font_post_meta']) . ' }' . "\n"; } if ($woo_options['woo_font_post_entry']) { $output .= '.entry, .entry p { ' . woo_generate_font_css($woo_options['woo_font_post_entry'], '1.5') . ' } h1, h2, h3, h4, h5, h6 { font-family: \'' . stripslashes($woo_options['woo_font_post_entry']['face']) . '\', sans-serif; }' . "\n"; } if ($woo_options['woo_font_widget_titles']) { $output .= '.widget h3 { ' . woo_generate_font_css($woo_options['woo_font_widget_titles']) . ' }' . "\n"; } // Add default typography Google Font } else { $woo_options['woo_just_face'] = array('face' => 'Droid Sans'); $output .= 'body, h1, h2, h3, h4, h5, h6, .widget h3, .post .title, .section .post .title, .archive_header, .entry, .entry p, .post-meta { ' . woo_generate_font_css($woo_options['woo_just_face']) . ' }' . "\n"; $woo_options['woo_just_face'] = array('face' => 'Droid Serif'); $output .= '.feedback blockquote p, #post-entries, #breadcrumbs { ' . woo_generate_font_css($woo_options['woo_just_face']) . ' }' . "\n"; } // Output styles if (isset($output) && $output != '') { // Enable Google Fonts stylesheet in HEAD if (function_exists('woo_google_webfonts')) { woo_google_webfonts(); } $output = "\n<!-- Woo Custom Typography -->\n<style type=\"text/css\">\n" . $output . "</style>\n"; echo $output; } }
function woo_custom_styling() { global $woo_options; $output = ''; // Logo if (!$woo_options['woo_logo']) { $output .= '#logo .site-title, #logo .site-description { display:block!important; }' . "\n"; } // Check if we are wanting to generate the custom styling or not. if (isset($woo_options['woo_style_disable']) && $woo_options['woo_style_disable'] != 'true') { } else { if ($output != '') { echo $output; } return; } // Layout styling $bg = $woo_options['woo_style_bg']; $bg_image = $woo_options['woo_style_bg_image']; $bg_image_repeat = $woo_options['woo_style_bg_image_repeat']; $bg_image_pos = $woo_options['woo_style_bg_image_pos']; $bg_image_attach = $woo_options['woo_style_bg_image_attach']; $border_top = $woo_options['woo_border_top']; $border_general = $woo_options['woo_style_border']; $body = ''; if ($bg) { $body .= 'background-color:' . $bg . ';'; } if ($bg_image) { $body .= 'background-image:url(' . $bg_image . ');'; } if ($bg_image_repeat) { $body .= 'background-repeat:' . $bg_image_repeat . ';'; } if ($bg_image_pos) { $body .= 'background-position:' . $bg_image_pos . ';'; } if ($bg_image_attach) { $body .= 'background-attachment:' . $bg_image_attach . ';'; } if ($border_top && $border_top['width'] >= 0) { $body .= 'border-top:' . $border_top["width"] . 'px ' . $border_top["style"] . ' ' . $border_top["color"] . ';'; } if ($body != '') { $output .= 'body {' . $body . '}' . "\n"; } if ($border_general) { $output .= 'hr, .entry img, img.thumbnail, .entry .wp-caption, #footer-widgets, #comments, #comments .comment.thread-even, #comments ul.children li, .entry h1{border-color:' . $border_general . '}' . "\n"; } // General styling $link = $woo_options['woo_link_color']; $hover = $woo_options['woo_link_hover_color']; $button = $woo_options['woo_button_color']; $button_hover = $woo_options['woo_button_hover_color']; if ($link) { $output .= 'a:link, a:visited {color:' . $link . '}' . "\n"; } if ($hover) { $output .= 'a:hover, .post-more a:hover, .post-meta a:hover, .post p.tags a:hover {color:' . $hover . '}' . "\n"; } if ($button) { $output .= 'body #wrapper #content .button, body #wrapper #content .button:visited, body #wrapper #content .reply a, body #wrapper #content #respond .form-submit input#submit {border: none; background:' . $button . '}' . "\n"; } if ($button_hover) { $output .= 'body #wrapper #content .button:hover, body #wrapper #content .reply a:hover, body #wrapper #content #respond .form-submit input#submit:hover {border: none; background:' . $button_hover . '}' . "\n"; } // Boxed styling $boxed = $woo_options['woo_layout_boxed']; $box_bg = $woo_options['woo_style_box_bg']; $box_margin_top = $woo_options['woo_box_margin_top']; $box_margin_bottom = $woo_options['woo_box_margin_bottom']; $box_border_tb = $woo_options['woo_box_border_tb']; $box_border_lr = $woo_options['woo_box_border_lr']; $box_border_radius = $woo_options['woo_box_border_radius']; $box_shadow = $woo_options['woo_box_shadow']; $wrapper = ''; if ($boxed == "true") { //$wrapper .= 'margin:0 auto;padding:0 0 20px 0;width:'.get_option('woo_layout_width').';'; if (get_option('woo_layout_width') == '940px') { $wrapper .= 'padding-left:20px; padding-right:20px;'; } else { $wrapper .= 'padding-left:30px; padding-right:30px;'; } } if ($boxed == "true" && $box_bg) { $wrapper .= 'background-color:' . $box_bg . ';'; } if ($boxed == "true" && ($box_margin_top || $box_margin_bottom)) { $wrapper .= 'margin-top:' . $box_margin_top . 'px;margin-bottom:' . $box_margin_bottom . 'px;'; } if ($boxed == "true" && $box_border_tb["width"] > 0) { $wrapper .= 'border-top:' . $box_border_tb["width"] . 'px ' . $box_border_tb["style"] . ' ' . $box_border_tb["color"] . ';border-bottom:' . $box_border_tb["width"] . 'px ' . $box_border_tb["style"] . ' ' . $box_border_tb["color"] . ';'; } if ($boxed == "true" && $box_border_lr["width"] > 0) { $wrapper .= 'border-left:' . $box_border_lr["width"] . 'px ' . $box_border_lr["style"] . ' ' . $box_border_lr["color"] . ';border-right:' . $box_border_lr["width"] . 'px ' . $box_border_lr["style"] . ' ' . $box_border_lr["color"] . ';'; } if ($boxed == "true" && $box_border_radius) { $wrapper .= 'border-radius:' . $box_border_radius . ';-moz-border-radius:' . $box_border_radius . ';-webkit-border-radius:' . $box_border_radius . ';'; } if ($boxed == "true" && $box_shadow == "true") { $wrapper .= 'box-shadow: 0px 1px 5px rgba(0,0,0,.3);-moz-box-shadow: 0px 1px 5px rgba(0,0,0,.3);-webkit-box-shadow: 0px 1px 5px rgba(0,0,0,.3);'; } if ($wrapper != '') { $output .= '#wrapper {' . $wrapper . '}' . "\n"; } // General Typography $font_text = $woo_options['woo_font_text']; $font_h1 = $woo_options['woo_font_h1']; $font_h2 = $woo_options['woo_font_h2']; $font_h3 = $woo_options['woo_font_h3']; $font_h4 = $woo_options['woo_font_h4']; $font_h5 = $woo_options['woo_font_h5']; $font_h6 = $woo_options['woo_font_h6']; if ($font_text) { $output .= 'body, p { ' . woo_generate_font_css($font_text, 1.5) . ' }' . "\n"; } if ($font_h1) { $output .= 'h1 { ' . woo_generate_font_css($font_h1, 1.5) . ' }'; } if ($font_h2) { $output .= 'h2 { ' . woo_generate_font_css($font_h2, 1.5) . ' }'; } if ($font_h3) { $output .= 'h3 { ' . woo_generate_font_css($font_h3, 1.5) . ' }'; } if ($font_h4) { $output .= 'h4 { ' . woo_generate_font_css($font_h4, 1.5) . ' }'; } if ($font_h5) { $output .= 'h5 { ' . woo_generate_font_css($font_h5, 1.5) . ' }'; } if ($font_h6) { $output .= 'h6 { ' . woo_generate_font_css($font_h6, 1.5) . ' }' . "\n"; } // Post Styling $font_post_title = $woo_options['woo_font_post_title']; $font_post_meta = $woo_options['woo_font_post_meta']; $font_post_text = $woo_options['woo_font_post_text']; $font_post_more = $woo_options['woo_font_post_more']; $post_more_border_top = $woo_options['woo_post_more_border_top']; $post_more_border_bottom = $woo_options['woo_post_more_border_bottom']; $post_comments_bg = $woo_options['woo_post_comments_bg']; $post_author_border_top = $woo_options['woo_post_author_border_top']; $post_author_border_bottom = $woo_options['woo_post_author_border_bottom']; $post_author_border_lr = $woo_options['woo_post_author_border_lr']; $post_author_border_radius = $woo_options['woo_post_author_border_radius']; $post_author_bg = $woo_options['woo_post_author_bg']; if ($font_post_title) { $output .= '.post .title, .page .title, .post .title a:link, .post .title a:visited, .page .title a:link, .page .title a:visited {' . woo_generate_font_css($font_post_title, 1.2) . '}' . "\n"; } if ($font_post_meta) { $output .= '.post-meta { ' . woo_generate_font_css($font_post_meta, 1.5) . ' }' . "\n"; } if ($font_post_text) { $output .= '.entry, .entry p{ ' . woo_generate_font_css($font_post_text, 1.5) . ' }' . "\n"; } $post_more_border = ''; if ($font_post_more) { $post_more_border .= 'font:' . $font_post_more["style"] . ' ' . $font_post_more["size"] . $font_post_more["unit"] . '/1.5em ' . stripslashes($font_post_more["face"]) . ';color:' . $font_post_more["color"] . ';'; } if ($post_more_border_top) { $post_more_border .= 'border-top:' . $post_more_border_top["width"] . 'px ' . $post_more_border_top["style"] . ' ' . $post_more_border_top["color"] . ';'; } if ($post_more_border_bottom) { $post_more_border .= 'border-bottom:' . $post_more_border_bottom["width"] . 'px ' . $post_more_border_bottom["style"] . ' ' . $post_more_border_bottom["color"] . ';'; } if ($post_more_border) { $output .= '.post-more {' . $post_more_border . '}' . "\n"; } if ($post_comments_bg) { $output .= '#comments .comment.thread-even {background-color:' . $post_comments_bg . ';}' . "\n"; } $post_author = ''; if ($post_author_border_top) { $post_author .= 'border-top:' . $post_author_border_top["width"] . 'px ' . $post_author_border_top["style"] . ' ' . $post_author_border_top["color"] . ';'; } if ($post_author_border_bottom) { $post_author .= 'border-bottom:' . $post_author_border_bottom["width"] . 'px ' . $post_author_border_bottom["style"] . ' ' . $post_author_border_bottom["color"] . ';'; } if ($post_author_border_lr) { $post_author .= 'border-left:' . $post_author_border_lr["width"] . 'px ' . $post_author_border_lr["style"] . ' ' . $post_author_border_lr["color"] . ';border-right:' . $post_author_border_lr["width"] . 'px ' . $post_author_border_lr["style"] . ' ' . $post_author_border_lr["color"] . ';'; } if ($post_author_border_radius) { $post_author .= 'border-radius:' . $post_author_border_radius . ';-moz-border-radius:' . $post_author_border_radius . ';-webkit-border-radius:' . $post_author_border_radius . ';'; } if ($post_author_bg) { $post_author .= 'background-color:' . $post_author_bg; } if ($post_author) { $output .= '#post-author, #connect {' . $post_author . '}' . "\n"; } if ($post_comments_bg) { $output .= '#comments .comment.thread-even {background-color:' . $post_comments_bg . ';}' . "\n"; } // Page Nav Styling $pagenav_font = $woo_options['woo_pagenav_font']; $pagenav_bg = $woo_options['woo_pagenav_bg']; $pagenav_border_top = $woo_options['woo_pagenav_border_top']; $pagenav_border_bottom = $woo_options['woo_pagenav_border_bottom']; $pagenav_css = ''; if ($pagenav_bg) { $pagenav_css .= 'background-color:' . $pagenav_bg . ';'; } if ($pagenav_border_top && $pagenav_border_top["width"] > 0) { $pagenav_css .= 'border-top:' . $pagenav_border_top["width"] . 'px ' . $pagenav_border_top["style"] . ' ' . $pagenav_border_top["color"] . ';'; } if ($pagenav_border_bottom && $pagenav_border_bottom["width"] > 0) { $pagenav_css .= 'border-bottom:' . $pagenav_border_bottom["width"] . 'px ' . $pagenav_border_bottom["style"] . ' ' . $pagenav_border_bottom["color"] . ';'; } if ($pagenav_css != '') { $output .= '.nav-entries, .woo-pagination {' . $pagenav_css . ' padding: 12px 0px; }' . "\n"; } if ($pagenav_font) { $output .= '.nav-entries a, .woo-pagination { ' . woo_generate_font_css($pagenav_font) . ' }' . "\n"; $output .= '.woo-pagination a, .woo-pagination a:hover {color:' . $pagenav_font["color"] . '!important}' . "\n"; } // Widget Styling $widget_font_title = $woo_options['woo_widget_font_title']; $widget_font_text = $woo_options['woo_widget_font_text']; $widget_padding_tb = $woo_options['woo_widget_padding_tb']; $widget_padding_lr = $woo_options['woo_widget_padding_lr']; $widget_bg = $woo_options['woo_widget_bg']; $widget_border = $woo_options['woo_widget_border']; $widget_title_border = $woo_options['woo_widget_title_border']; $widget_border_radius = $woo_options['woo_widget_border_radius']; $h3_css = ''; if ($widget_font_title) { $h3_css .= 'font:' . $widget_font_title["style"] . ' ' . $widget_font_title["size"] . $widget_font_title["unit"] . '/1.5em ' . stripslashes($widget_font_title["face"]) . ';color:' . $widget_font_title["color"] . ';'; } if ($widget_title_border) { $h3_css .= 'border-bottom:' . $widget_title_border["width"] . 'px ' . $widget_title_border["style"] . ' ' . $widget_title_border["color"] . ';'; } if (isset($widget_title_border["width"]) and $widget_title_border["width"] == 0) { $h3_css .= 'margin-bottom:0;'; } if ($h3_css != '') { $output .= '.widget h3 {' . $h3_css . '}' . "\n"; } if ($widget_title_border) { $output .= '.widget_recent_comments li, #twitter li { border-color: ' . $widget_title_border["color"] . ';}' . "\n"; } if ($widget_font_text) { $output .= '.widget p, .widget .textwidget { ' . woo_generate_font_css($widget_font_text, 1.5) . ' }' . "\n"; } $widget_css = ''; if ($widget_font_text) { $widget_css .= 'font:' . $widget_font_text["style"] . ' ' . $widget_font_text["size"] . $widget_font_text["unit"] . '/1.5em ' . stripslashes($widget_font_text["face"]) . ';color:' . $widget_font_text["color"] . ';'; } if ($widget_padding_tb || $widget_padding_lr) { $widget_css .= 'padding:' . $widget_padding_tb . 'px ' . $widget_padding_lr . 'px;'; } if ($widget_bg) { $widget_css .= 'background-color:' . $widget_bg . ';'; } if ($widget_border["width"] > 0) { $widget_css .= 'border:' . $widget_border["width"] . 'px ' . $widget_border["style"] . ' ' . $widget_border["color"] . ';'; } if ($widget_border_radius) { $widget_css .= 'border-radius:' . $widget_border_radius . ';-moz-border-radius:' . $widget_border_radius . ';-webkit-border-radius:' . $widget_border_radius . ';'; } if ($widget_css != '') { $output .= '.widget {' . $widget_css . '}' . "\n"; } if ($widget_border["width"] > 0) { $output .= '#tabs {border:' . $widget_border["width"] . 'px ' . $widget_border["style"] . ' ' . $widget_border["color"] . ';}' . "\n"; } // Tabs Widget $widget_tabs_bg = $woo_options['woo_widget_tabs_bg']; $widget_tabs_bg_inside = $woo_options['woo_widget_tabs_bg_inside']; $widget_tabs_font = $woo_options['woo_widget_tabs_font']; $widget_tabs_font_meta = $woo_options['woo_widget_tabs_font_meta']; if ($widget_tabs_bg) { $output .= '#tabs {background-color:' . $widget_tabs_bg . ';}' . "\n"; } if ($widget_tabs_bg_inside) { $output .= '#tabs .inside, #tabs ul.wooTabs li a.selected, #tabs ul.wooTabs li a:hover {background-color:' . $widget_tabs_bg_inside . ';}' . "\n"; } if ($widget_tabs_font) { $output .= '#tabs .inside li a { ' . woo_generate_font_css($widget_tabs_font, 1.5) . ' }' . "\n"; } if ($widget_tabs_font_meta) { $output .= '#tabs .inside li span.meta { ' . woo_generate_font_css($widget_tabs_font_meta, 1.5) . ' }' . "\n"; } $output .= '#tabs ul.wooTabs li a { ' . woo_generate_font_css($widget_tabs_font_meta, 2) . ' }' . "\n"; // Footer $footer_font = $woo_options['woo_footer_font']; $footer_bg = $woo_options['woo_footer_bg']; $footer_border_top = $woo_options['woo_footer_border_top']; $footer_border_bottom = $woo_options['woo_footer_border_bottom']; $footer_border_lr = $woo_options['woo_footer_border_lr']; $footer_border_radius = $woo_options['woo_footer_border_radius']; if ($footer_font) { $output .= '#footer, #footer p { ' . woo_generate_font_css($footer_font) . ' }' . "\n"; } $footer_css = ''; if ($footer_bg) { $footer_css .= 'background-color:' . $footer_bg . ';'; } if ($footer_border_top) { $footer_css .= 'border-top:' . $footer_border_top["width"] . 'px ' . $footer_border_top["style"] . ' ' . $footer_border_top["color"] . ';'; } if ($footer_border_bottom) { $footer_css .= 'border-bottom:' . $footer_border_bottom["width"] . 'px ' . $footer_border_bottom["style"] . ' ' . $footer_border_bottom["color"] . ';'; } if ($footer_border_lr) { $footer_css .= 'border-left:' . $footer_border_lr["width"] . 'px ' . $footer_border_lr["style"] . ' ' . $footer_border_lr["color"] . ';border-right:' . $footer_border_lr["width"] . 'px ' . $footer_border_lr["style"] . ' ' . $footer_border_lr["color"] . ';'; } if ($footer_border_radius) { $footer_css .= 'border-radius:' . $footer_border_radius . '; -moz-border-radius:' . $footer_border_radius . '; -webkit-border-radius:' . $footer_border_radius . ';'; } if ($footer_css != '') { $output .= '#footer {' . $footer_css . '}' . "\n"; } // Magazine Template $slider_magazine_font_title = $woo_options['woo_slider_magazine_font_title']; $slider_magazine_font_excerpt = $woo_options['woo_slider_magazine_font_excerpt']; if ($slider_magazine_font_title) { $output .= '.magazine #loopedSlider .content h2.title a { ' . woo_generate_font_css($slider_magazine_font_title) . ' }' . "\n"; } if ($slider_magazine_font_excerpt) { $output .= '.magazine #loopedSlider .content .excerpt p { ' . woo_generate_font_css($slider_magazine_font_excerpt, 1.5) . ' }' . "\n"; } // Business Template $slider_biz_font_title = $woo_options['woo_slider_biz_font_title']; $slider_biz_font_excerpt = $woo_options['woo_slider_biz_font_excerpt']; if ($slider_biz_font_title) { $output .= '.business #loopedSlider .content h2 { ' . woo_generate_font_css($slider_biz_font_title) . ' }' . "\n"; } $output .= '.business #loopedSlider .content h2.title a { ' . woo_generate_font_css($slider_biz_font_title) . ' }' . "\n"; if ($slider_biz_font_excerpt) { $output .= '#wrapper .business #loopedSlider .content p { ' . woo_generate_font_css($slider_biz_font_excerpt, 1.5) . ' }' . "\n"; } // Archive Header $woo_archive_header_font = $woo_options['woo_archive_header_font']; if ($woo_archive_header_font) { $output .= '.archive_header h1 { ' . woo_generate_font_css($woo_archive_header_font) . ' }' . "\n"; } $output .= '.archive_header {border-bottom:' . $woo_options['woo_archive_header_border_bottom']["width"] . 'px ' . $woo_options['woo_archive_header_border_bottom']["style"] . ' ' . $woo_options['woo_archive_header_border_bottom']["color"] . ';}' . "\n"; if ($woo_options['woo_archive_header_disable_rss'] == "true") { $output .= '.archive_header .catrss { display:none; }' . "\n"; } // Output styles if (isset($output)) { // $output = "\n<!-- Woo Custom Styling -->\n<style type=\"text/css\">\n" . $output . "</style>\n<!-- /Woo Custom Styling -->\n\n"; echo $output; } }
function woo_custom_styling() { global $woo_options; $output = ''; // Logo if (isset($woo_options['woo_logo']) && !$woo_options['woo_logo']) { $output .= '#logo .site-title, #logo .site-description { display:block!important; }' . "\n"; } // Check if we are wanting to generate the custom styling or not. if (isset($woo_options['woo_style_disable']) && $woo_options['woo_style_disable'] != 'true') { } else { if ($output != '') { echo $output; } return; } // Layout styling $bg = $woo_options['woo_style_bg']; $bg_image = $woo_options['woo_style_bg_image']; $bg_image_repeat = $woo_options['woo_style_bg_image_repeat']; $bg_image_pos = $woo_options['woo_style_bg_image_pos']; $bg_image_attach = $woo_options['woo_style_bg_image_attach']; $border_top = $woo_options['woo_border_top']; $border_general = $woo_options['woo_style_border']; $body = ''; if ($bg) { $body .= 'background-color:' . $bg . ';'; } if ($bg_image) { $body .= 'background-image:url(' . $bg_image . ');'; } if ($bg_image_repeat) { $body .= 'background-repeat:' . $bg_image_repeat . ';'; } if ($bg_image_pos) { $body .= 'background-position:' . $bg_image_pos . ';'; } if ($bg_image_attach) { $body .= 'background-attachment:' . $bg_image_attach . ';'; } if ($border_top && $border_top['width'] >= 0) { $body .= 'border-top:' . $border_top["width"] . 'px ' . $border_top["style"] . ' ' . $border_top["color"] . ';'; } if ($body != '') { $output .= 'body {' . $body . '}' . "\n"; } if ($border_general) { $output .= 'hr, .entry img, img.thumbnail, .entry .wp-caption, #footer-widgets, #comments, #comments .comment.thread-even, #comments ul.children li, .entry h1{border-color:' . $border_general . '}' . "\n"; } // General styling $link = $woo_options['woo_link_color']; $hover = $woo_options['woo_link_hover_color']; $button = $woo_options['woo_button_color']; $button_hover = $woo_options['woo_button_hover_color']; if ($link) { $output .= 'a:link, a:visited {color:' . $link . '}' . "\n"; } if ($hover) { $output .= 'a:hover, .post-more a:hover, .post-meta a:hover, .post p.tags a:hover {color:' . $hover . '}' . "\n"; } if ($button) { $output .= 'body #wrapper #content .button, body #wrapper #content .button:visited, body #wrapper #content .reply a, body #wrapper #content #respond .form-submit input#submit {border: none; background:' . $button . '}' . "\n"; } if ($button_hover) { $output .= 'body #wrapper #content .button:hover, body #wrapper #content .reply a:hover, body #wrapper #content #respond .form-submit input#submit:hover {border: none; background:' . $button_hover . '}' . "\n"; } // Header styling $header_bg = $woo_options['woo_header_bg']; $header_bg_image = $woo_options['woo_header_bg_image']; $header_bg_image_repeat = $woo_options['woo_header_bg_image_repeat']; $header_border = $woo_options['woo_header_border']; $header_margin_top = $woo_options['woo_header_margin_top']; $header_margin_bottom = $woo_options['woo_header_margin_bottom']; $header_padding_top = $woo_options['woo_header_padding_top']; $header_padding_bottom = $woo_options['woo_header_padding_bottom']; $header_padding_left = $woo_options['woo_header_padding_left']; $header_padding_right = $woo_options['woo_header_padding_right']; $font_logo = $woo_options['woo_font_logo']; $font_desc = $woo_options['woo_font_desc']; $header_css = ''; if ($header_bg) { $header_css .= 'background-color:' . $header_bg . ';'; } if ($header_bg_image) { $header_css .= 'background-image:url(' . $header_bg_image . ');'; } if ($header_bg_image_repeat) { $header_css .= 'background-repeat:' . $header_bg_image_repeat . ';background-position:top center;'; } if ($header_margin_top != '' || $header_margin_bottom != '') { $header_css .= 'margin-top:' . $header_margin_top . 'px;margin-bottom:' . $header_margin_bottom . 'px;'; } if ($header_padding_top != '' || $header_padding_bottom != '') { $header_css .= 'padding-top:' . $header_padding_top . 'px;padding-bottom:' . $header_padding_bottom . 'px;'; } if ($header_border && $header_border['width'] >= 0) { $header_css .= 'border:' . $header_border["width"] . 'px ' . $header_border["style"] . ' ' . $header_border["color"] . ';'; } /*if ( $header_border && $header_border['width'] > 0) { $width = get_option('woo_layout_width') - $header_border['width']*2; if ( $width > 0 ) $header_css .= 'width:'.$width.'px;'; }*/ if ($header_css != '') { $output .= '#header {' . $header_css . '}' . "\n"; } if ($header_padding_left != '') { $output .= '#logo {padding-left:' . $header_padding_left . 'px;}'; } if ($header_padding_right != '') { $output .= '#topad {padding-right:' . $header_padding_right . 'px;}' . "\n"; } if ($font_logo) { $output .= '#logo .site-title a {' . woo_generate_font_css($font_logo) . '}' . "\n"; } if ($font_desc) { $output .= '#logo .site-description {' . woo_generate_font_css($font_desc) . '}' . "\n"; } // Boxed styling $boxed = $woo_options['woo_layout_boxed']; $box_bg = $woo_options['woo_style_box_bg']; $box_margin_top = $woo_options['woo_box_margin_top']; $box_margin_bottom = $woo_options['woo_box_margin_bottom']; $box_border_tb = $woo_options['woo_box_border_tb']; $box_border_lr = $woo_options['woo_box_border_lr']; $box_border_radius = $woo_options['woo_box_border_radius']; $box_shadow = $woo_options['woo_box_shadow']; $wrapper = ''; if ($boxed == "true") { //$wrapper .= 'margin:0 auto;padding:0 0 20px 0;width:'.get_option('woo_layout_width').';'; if (get_option('woo_layout_width') == '940px') { $wrapper .= 'padding-left:20px; padding-right:20px;'; } else { $wrapper .= 'padding-left:30px; padding-right:30px;'; } } if ($boxed == "true" && $box_bg) { $wrapper .= 'background-color:' . $box_bg . ';'; } if ($boxed == "true" && ($box_margin_top || $box_margin_bottom)) { $wrapper .= 'margin-top:' . $box_margin_top . 'px;margin-bottom:' . $box_margin_bottom . 'px;'; } if ($boxed == "true" && $box_border_tb["width"] > 0) { $wrapper .= 'border-top:' . $box_border_tb["width"] . 'px ' . $box_border_tb["style"] . ' ' . $box_border_tb["color"] . ';border-bottom:' . $box_border_tb["width"] . 'px ' . $box_border_tb["style"] . ' ' . $box_border_tb["color"] . ';'; } if ($boxed == "true" && $box_border_lr["width"] > 0) { $wrapper .= 'border-left:' . $box_border_lr["width"] . 'px ' . $box_border_lr["style"] . ' ' . $box_border_lr["color"] . ';border-right:' . $box_border_lr["width"] . 'px ' . $box_border_lr["style"] . ' ' . $box_border_lr["color"] . ';'; } if ($boxed == "true" && $box_border_radius) { $wrapper .= 'border-radius:' . $box_border_radius . ';-moz-border-radius:' . $box_border_radius . ';-webkit-border-radius:' . $box_border_radius . ';'; } if ($boxed == "true" && $box_shadow == "true") { $wrapper .= 'box-shadow: 0px 1px 5px rgba(0,0,0,.1);'; } if ($wrapper != '') { $output .= '#wrapper {' . $wrapper . '} @media only screen and (max-width:767px) { #wrapper { padding-left: 0; padding-right: 0;} } ' . "\n"; } // Full width layout if ($boxed != "true" && (isset($woo_options['woo_header_full_width']) && $woo_options['woo_header_full_width'] == 'true' || isset($woo_options['woo_footer_full_width']) && $woo_options['woo_footer_full_width'] == 'true')) { if (isset($woo_options['woo_header_full_width']) && $woo_options['woo_header_full_width'] == 'true') { $full_head_bg = $woo_options['woo_full_header_full_width_bg']; $full_header_bg_image = $woo_options['woo_full_header_bg_image']; $full_header_bg_image_repeat = $woo_options['woo_full_header_bg_image_repeat']; $full_nav_bg = $woo_options['woo_nav_bg']; $full_nav_border = $woo_options['woo_nav_divider_border']; $full_nav_border_top = $woo_options['woo_nav_border_top']; $full_nav_border_bot = $woo_options['woo_nav_border_bot']; if ($full_head_bg) { $output .= '#header-container{background-color:' . $full_head_bg . ';}'; } if ($full_header_bg_image) { $output .= '#header-container{background-image:url(' . $full_header_bg_image . ');background-repeat:' . $full_header_bg_image_repeat . ';background-position:top center;}'; } if ($full_nav_bg) { $output .= '#nav-container{background:' . $full_nav_bg . ';}'; } if ($full_nav_border_top && $full_nav_border_top["width"] >= 0) { $output .= '#nav-container{border-top:' . $full_nav_border_top["width"] . 'px ' . $full_nav_border_top["style"] . ' ' . $full_nav_border_top["color"] . ';border-bottom:' . $full_nav_border_bot["width"] . 'px ' . $full_nav_border_bot["style"] . ' ' . $full_nav_border_bot["color"] . ';border-left:none;border-right:none;}'; } if ($full_nav_border && $full_nav_border["width"] >= 0) { $output .= '#nav-container #navigation ul#main-nav > li:first-child{border-left: ' . $full_nav_border["width"] . 'px ' . $full_nav_border["style"] . ' ' . $full_nav_border["color"] . ';}'; } } if (isset($woo_options['woo_footer_full_width']) && 'true' == $woo_options['woo_footer_full_width']) { $full_foot_widget_bg = $woo_options['woo_foot_full_width_widget_bg']; $full_foot_bg = $woo_options['woo_footer_full_width_bg']; $footer_bg = $woo_options['woo_footer_bg']; $full_footer_border_top = $woo_options['woo_footer_border_top']; if ($full_foot_widget_bg) { $output .= '#footer-widgets-container{background-color:' . $full_foot_widget_bg . '}#footer-widgets{border:none;}'; } if ($full_foot_bg) { $output .= '#footer-container{background-color:' . $full_foot_bg . '}'; } if ($full_footer_border_top && $full_footer_border_top["width"] >= 0) { $output .= '#footer-container{border-top:' . $full_footer_border_top["width"] . 'px ' . $full_footer_border_top["style"] . ' ' . $full_footer_border_top["color"] . ';}#footer {border-width: 0 !important;}'; } } $output .= "\n"; } // General Typography $font_text = $woo_options['woo_font_text']; $font_h1 = $woo_options['woo_font_h1']; $font_h2 = $woo_options['woo_font_h2']; $font_h3 = $woo_options['woo_font_h3']; $font_h4 = $woo_options['woo_font_h4']; $font_h5 = $woo_options['woo_font_h5']; $font_h6 = $woo_options['woo_font_h6']; if ($font_text) { $output .= 'body, p { ' . woo_generate_font_css($font_text, 1.5) . ' }' . "\n"; } if ($font_h1) { $output .= 'h1 { ' . woo_generate_font_css($font_h1, 1.2) . ' }'; } if ($font_h2) { $output .= 'h2 { ' . woo_generate_font_css($font_h2, 1.2) . ' }'; } if ($font_h3) { $output .= 'h3 { ' . woo_generate_font_css($font_h3, 1.2) . ' }'; } if ($font_h4) { $output .= 'h4 { ' . woo_generate_font_css($font_h4, 1.2) . ' }'; } if ($font_h5) { $output .= 'h5 { ' . woo_generate_font_css($font_h5, 1.2) . ' }'; } if ($font_h6) { $output .= 'h6 { ' . woo_generate_font_css($font_h6, 1.2) . ' }' . "\n"; } // Post Styling $font_post_title = $woo_options['woo_font_post_title']; $font_post_meta = $woo_options['woo_font_post_meta']; $font_post_text = $woo_options['woo_font_post_text']; $font_post_more = $woo_options['woo_font_post_more']; $post_more_border_top = $woo_options['woo_post_more_border_top']; $post_more_border_bottom = $woo_options['woo_post_more_border_bottom']; $post_comments_bg = $woo_options['woo_post_comments_bg']; $post_author_border_top = $woo_options['woo_post_author_border_top']; $post_author_border_bottom = $woo_options['woo_post_author_border_bottom']; $post_author_border_lr = $woo_options['woo_post_author_border_lr']; $post_author_border_radius = $woo_options['woo_post_author_border_radius']; $post_author_bg = $woo_options['woo_post_author_bg']; if ($font_post_title) { $output .= '.post .title, .page .title, .post .title a:link, .post .title a:visited, .page .title a:link, .page .title a:visited {' . woo_generate_font_css($font_post_title, 1.1) . '}' . "\n"; } if ($font_post_meta) { $output .= '.post-meta { ' . woo_generate_font_css($font_post_meta, 1.5) . ' }' . "\n"; } if ($font_post_text) { $output .= '.entry, .entry p{ ' . woo_generate_font_css($font_post_text, 1.5) . ' }' . "\n"; } $post_more_border = ''; if ($font_post_more) { $post_more_border .= 'font:' . $font_post_more["style"] . ' ' . $font_post_more["size"] . $font_post_more["unit"] . '/1.5em ' . stripslashes($font_post_more["face"]) . ';color:' . $font_post_more["color"] . ';'; } if ($post_more_border_top) { $post_more_border .= 'border-top:' . $post_more_border_top["width"] . 'px ' . $post_more_border_top["style"] . ' ' . $post_more_border_top["color"] . ';'; } if ($post_more_border_bottom) { $post_more_border .= 'border-bottom:' . $post_more_border_bottom["width"] . 'px ' . $post_more_border_bottom["style"] . ' ' . $post_more_border_bottom["color"] . ';'; } if ($post_more_border) { $output .= '.post-more {' . $post_more_border . '}' . "\n"; } if ($post_comments_bg) { $output .= '#comments .comment.thread-even {background-color:' . $post_comments_bg . ';}' . "\n"; } $post_author = ''; if ($post_author_border_top) { $post_author .= 'border-top:' . $post_author_border_top["width"] . 'px ' . $post_author_border_top["style"] . ' ' . $post_author_border_top["color"] . ';'; } if ($post_author_border_bottom) { $post_author .= 'border-bottom:' . $post_author_border_bottom["width"] . 'px ' . $post_author_border_bottom["style"] . ' ' . $post_author_border_bottom["color"] . ';'; } if ($post_author_border_lr) { $post_author .= 'border-left:' . $post_author_border_lr["width"] . 'px ' . $post_author_border_lr["style"] . ' ' . $post_author_border_lr["color"] . ';border-right:' . $post_author_border_lr["width"] . 'px ' . $post_author_border_lr["style"] . ' ' . $post_author_border_lr["color"] . ';'; } if ($post_author_border_radius) { $post_author .= 'border-radius:' . $post_author_border_radius . ';-moz-border-radius:' . $post_author_border_radius . ';-webkit-border-radius:' . $post_author_border_radius . ';'; } if ($post_author_bg) { $post_author .= 'background-color:' . $post_author_bg; } if ($post_author) { $output .= '#post-author, #connect {' . $post_author . '}' . "\n"; } if ($post_comments_bg) { $output .= '#comments .comment.thread-even {background-color:' . $post_comments_bg . ';}' . "\n"; } // Page Nav Styling $pagenav_font = $woo_options['woo_pagenav_font']; $pagenav_bg = $woo_options['woo_pagenav_bg']; $pagenav_border_top = $woo_options['woo_pagenav_border_top']; $pagenav_border_bottom = $woo_options['woo_pagenav_border_bottom']; $pagenav_css = ''; if ($pagenav_bg) { $pagenav_css .= 'background-color:' . $pagenav_bg . ';'; } if ($pagenav_border_top && $pagenav_border_top["width"] > 0) { $pagenav_css .= 'border-top:' . $pagenav_border_top["width"] . 'px ' . $pagenav_border_top["style"] . ' ' . $pagenav_border_top["color"] . ';'; } if ($pagenav_border_bottom && $pagenav_border_bottom["width"] > 0) { $pagenav_css .= 'border-bottom:' . $pagenav_border_bottom["width"] . 'px ' . $pagenav_border_bottom["style"] . ' ' . $pagenav_border_bottom["color"] . ';'; } if ($pagenav_css != '') { $output .= '.nav-entries, .woo-pagination {' . $pagenav_css . ' padding: 12px 0px; }' . "\n"; } if ($pagenav_font) { $output .= '.nav-entries a, .woo-pagination { ' . woo_generate_font_css($pagenav_font) . ' }' . "\n"; $output .= '.woo-pagination a, .woo-pagination a:hover {color:' . $pagenav_font["color"] . '!important}' . "\n"; } // Widget Styling $widget_font_title = $woo_options['woo_widget_font_title']; $widget_font_text = $woo_options['woo_widget_font_text']; $widget_padding_tb = $woo_options['woo_widget_padding_tb']; $widget_padding_lr = $woo_options['woo_widget_padding_lr']; $widget_bg = $woo_options['woo_widget_bg']; $widget_border = $woo_options['woo_widget_border']; $widget_title_border = $woo_options['woo_widget_title_border']; $widget_border_radius = $woo_options['woo_widget_border_radius']; $h3_css = ''; if ($widget_font_title) { $h3_css .= 'font:' . $widget_font_title["style"] . ' ' . $widget_font_title["size"] . $widget_font_title["unit"] . '/1.2em ' . stripslashes($widget_font_title["face"]) . ';color:' . $widget_font_title["color"] . ';'; } if ($widget_title_border) { $h3_css .= 'border-bottom:' . $widget_title_border["width"] . 'px ' . $widget_title_border["style"] . ' ' . $widget_title_border["color"] . ';'; } if (isset($widget_title_border["width"]) and $widget_title_border["width"] == 0) { $h3_css .= 'margin-bottom:0;'; } if ($h3_css != '') { $output .= '.widget h3 {' . $h3_css . '}' . "\n"; } if ($widget_title_border) { $output .= '.widget_recent_comments li, #twitter li { border-color: ' . $widget_title_border["color"] . ';}' . "\n"; } if ($widget_font_text) { $output .= '.widget p, .widget .textwidget { ' . woo_generate_font_css($widget_font_text, 1.5) . ' }' . "\n"; } $widget_css = ''; if ($widget_font_text) { $widget_css .= 'font:' . $widget_font_text["style"] . ' ' . $widget_font_text["size"] . $widget_font_text["unit"] . '/1.5em ' . stripslashes($widget_font_text["face"]) . ';color:' . $widget_font_text["color"] . ';'; } if ($widget_padding_tb || $widget_padding_lr) { $widget_css .= 'padding:' . $widget_padding_tb . 'px ' . $widget_padding_lr . 'px;'; } if ($widget_bg) { $widget_css .= 'background-color:' . $widget_bg . ';'; } if ($widget_border["width"] > 0) { $widget_css .= 'border:' . $widget_border["width"] . 'px ' . $widget_border["style"] . ' ' . $widget_border["color"] . ';'; } if ($widget_border_radius) { $widget_css .= 'border-radius:' . $widget_border_radius . ';-moz-border-radius:' . $widget_border_radius . ';-webkit-border-radius:' . $widget_border_radius . ';'; } if ($widget_css != '') { $output .= '.widget {' . $widget_css . '}' . "\n"; } if ($widget_border["width"] > 0) { $output .= '#tabs {border:' . $widget_border["width"] . 'px ' . $widget_border["style"] . ' ' . $widget_border["color"] . ';}' . "\n"; } // Tabs Widget $widget_tabs_bg = $woo_options['woo_widget_tabs_bg']; $widget_tabs_bg_inside = $woo_options['woo_widget_tabs_bg_inside']; $widget_tabs_font = $woo_options['woo_widget_tabs_font']; $widget_tabs_font_meta = $woo_options['woo_widget_tabs_font_meta']; if ($widget_tabs_bg) { $output .= '#tabs, .widget_woodojo_tabs .tabbable {background-color:' . $widget_tabs_bg . ';}' . "\n"; } if ($widget_tabs_bg_inside) { $output .= '#tabs .inside, #tabs ul.wooTabs li a.selected, #tabs ul.wooTabs li a:hover {background-color:' . $widget_tabs_bg_inside . ';}' . "\n"; } if ($widget_tabs_font) { $output .= '#tabs .inside li a, .widget_woodojo_tabs .tabbable .tab-pane li a { ' . woo_generate_font_css($widget_tabs_font, 1.5) . ' }' . "\n"; } if ($widget_tabs_font_meta) { $output .= '#tabs .inside li span.meta, .widget_woodojo_tabs .tabbable .tab-pane li span.meta { ' . woo_generate_font_css($widget_tabs_font_meta, 1.5) . ' }' . "\n"; } $output .= '#tabs ul.wooTabs li a, .widget_woodojo_tabs .tabbable .nav-tabs li a { ' . woo_generate_font_css($widget_tabs_font_meta, 2) . ' }' . "\n"; //Navigation $nav_bg = $woo_options['woo_nav_bg']; $nav_font = $woo_options['woo_nav_font']; $nav_hover = $woo_options['woo_nav_hover']; $nav_hover_bg = $woo_options['woo_nav_hover_bg']; $nav_currentitem = $woo_options['woo_nav_currentitem']; $nav_currentitem_bg = $woo_options['woo_nav_currentitem_bg']; $nav_divider_border = $woo_options['woo_nav_divider_border']; $nav_dropdown_border = $woo_options['woo_nav_dropdown_border']; $nav_border_lr = $woo_options['woo_nav_border_lr']; $nav_border_radius = $woo_options['woo_nav_border_radius']; $nav_border_top = $woo_options['woo_nav_border_top']; $nav_border_bot = $woo_options['woo_nav_border_bot']; $top_nav_bg = $woo_options['woo_top_nav_bg']; $top_nav_hover = $woo_options['woo_top_nav_hover']; $top_nav_hover_bg = $woo_options['woo_top_nav_hover_bg']; $top_nav_font = $woo_options['woo_top_nav_font']; $output .= '@media only screen and (min-width:768px) {' . "\n"; if ($nav_font) { $output .= 'ul.nav li a, #navigation ul.rss a, #navigation .cart-contents, #navigation ul.rss { ' . woo_generate_font_css($nav_font) . ' }' . "\n"; } if ($nav_hover) { $output .= '#navigation ul.nav > li a:hover, #navigation ul.nav > li:hover a, #navigation ul.nav li ul li a { color:' . $nav_hover . '!important; }' . "\n"; } if ($nav_hover_bg) { $output .= '#navigation ul.nav > li a:hover, #navigation ul.nav > li:hover, #navigation ul.nav li ul {background-color:' . $nav_hover_bg . '!important}' . "\n"; } if ($nav_dropdown_border && $nav_dropdown_border["width"] >= 0) { $output .= '#navigation ul.nav li ul { border: ' . $nav_dropdown_border["width"] . 'px ' . $nav_dropdown_border["style"] . ' ' . $nav_dropdown_border["color"] . '; }' . "\n"; if ($nav_dropdown_border["width"] == 0) { $output .= '#navigation ul.nav > li > ul { left: 0; }' . "\n"; } } if ($nav_divider_border && $nav_divider_border["width"] >= 0) { $output .= '#navigation ul.nav > li { border-right: ' . $nav_divider_border["width"] . 'px ' . $nav_divider_border["style"] . ' ' . $nav_divider_border["color"] . '; }'; if ($nav_divider_border["width"] == 0) { $output .= '#navigation ul.nav > li > ul { left: 0; }' . "\n"; } } // If we have a hover colour and don't have a current item colour, we use the hover colour as current item colour. if ($nav_currentitem_bg == '' && $nav_hover != '') { $nav_currentitem_bg = $nav_hover; } if ($nav_currentitem_bg) { $output .= '#navigation ul.nav li.current_page_item a, #navigation ul.nav li.current_page_parent a, #navigation ul.nav li.current-menu-ancestor a, #navigation ul.nav li.current-cat a, #navigation ul.nav li.current-menu-item a { background-color:' . $nav_currentitem_bg . '; }' . "\n"; } if ($nav_currentitem) { $output .= '#navigation ul.nav li.current_page_item a, #navigation ul.nav li.current_page_parent a, #navigation ul.nav li.current-menu-ancestor a, #navigation ul.nav li.current-cat a, #navigation ul.nav li.current-menu-item a { color:' . $nav_currentitem . '; }' . "\n"; } $navigation_css = ''; if ($nav_bg) { $navigation_css .= 'background:' . $nav_bg . ';'; } if ($nav_border_top && $nav_border_top["width"] >= 0) { $navigation_css .= 'border-top:' . $nav_border_top["width"] . 'px ' . $nav_border_top["style"] . ' ' . $nav_border_top["color"] . ';border-bottom:' . $nav_border_bot["width"] . 'px ' . $nav_border_bot["style"] . ' ' . $nav_border_bot["color"] . ';border-left:' . $nav_border_lr["width"] . 'px ' . $nav_border_lr["style"] . ' ' . $nav_border_lr["color"] . ';border-right:' . $nav_border_lr["width"] . 'px ' . $nav_border_lr["style"] . ' ' . $nav_border_lr["color"] . ';'; } if ($nav_border_bot && $nav_border_bot["width"] == 0) { $output .= '#navigation { box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; }'; } if ($nav_border_radius) { $navigation_css .= 'border-radius:' . $nav_border_radius . '; -moz-border-radius:' . $nav_border_radius . '; -webkit-border-radius:' . $nav_border_radius . ';'; } if ($nav_border_radius) { $output .= '#navigation ul li:first-child, #navigation ul li:first-child a { border-radius:' . $nav_border_radius . ' 0 0 ' . $nav_border_radius . '; -moz-border-radius:' . $nav_border_radius . ' 0 0 ' . $nav_border_radius . '; -webkit-border-radius:' . $nav_border_radius . ' 0 0 ' . $nav_border_radius . '; }' . "\n"; } if ($navigation_css != '') { $output .= '@media only screen and (min-width: 768px) { #navigation {' . $navigation_css . '} }' . "\n"; } if ($top_nav_bg) { $output .= '#top, #top ul.nav li ul li a:hover { background:' . $top_nav_bg . ';}' . "\n"; } if ($top_nav_hover) { $output .= '#top ul.nav li a:hover, #top ul.nav li.current_page_item a, #top ul.nav li.current_page_parent a,#top ul.nav li.current-menu-ancestor a,#top ul.nav li.current-cat a,#top ul.nav li.current-menu-item a,#top ul.nav li.sfHover, #top ul.nav li ul, #top ul.nav > li:hover a, #top ul.nav li ul li a { color:' . $top_nav_hover . '!important;}' . "\n"; } if ($top_nav_hover_bg) { $output .= '#top ul.nav li a:hover, #top ul.nav li.current_page_item a, #top ul.nav li.current_page_parent a,#top ul.nav li.current-menu-ancestor a,#top ul.nav li.current-cat a,#top ul.nav li.current-menu-item a,#top ul.nav li.sfHover, #top ul.nav li ul, #top ul.nav > li:hover { background:' . $top_nav_hover_bg . ';}' . "\n"; } if ($top_nav_font) { $output .= '#top ul.nav li a { ' . woo_generate_font_css($top_nav_font, 1.6) . ' }' . "\n"; if (isset($top_nav_font['color']) && strlen($top_nav_font['color']) == 7) { $output .= '#top ul.nav li.parent > a:after { border-top-color:' . esc_attr($top_nav_font['color']) . ';}' . "\n"; } } $output .= '}' . "\n"; // Footer $footer_font = $woo_options['woo_footer_font']; $footer_bg = $woo_options['woo_footer_bg']; $footer_border_top = $woo_options['woo_footer_border_top']; $footer_border_bottom = $woo_options['woo_footer_border_bottom']; $footer_border_lr = $woo_options['woo_footer_border_lr']; $footer_border_radius = $woo_options['woo_footer_border_radius']; if ($footer_font) { $output .= '#footer, #footer p { ' . woo_generate_font_css($footer_font, 1.4) . ' }' . "\n"; } $footer_css = ''; if ($footer_bg) { $footer_css .= 'background-color:' . $footer_bg . ';'; } if ($footer_border_top) { $footer_css .= 'border-top:' . $footer_border_top["width"] . 'px ' . $footer_border_top["style"] . ' ' . $footer_border_top["color"] . ';'; } if ($footer_border_bottom) { $footer_css .= 'border-bottom:' . $footer_border_bottom["width"] . 'px ' . $footer_border_bottom["style"] . ' ' . $footer_border_bottom["color"] . ';'; } if ($footer_border_lr) { $footer_css .= 'border-left:' . $footer_border_lr["width"] . 'px ' . $footer_border_lr["style"] . ' ' . $footer_border_lr["color"] . ';border-right:' . $footer_border_lr["width"] . 'px ' . $footer_border_lr["style"] . ' ' . $footer_border_lr["color"] . ';'; } if ($footer_border_radius) { $footer_css .= 'border-radius:' . $footer_border_radius . '; -moz-border-radius:' . $footer_border_radius . '; -webkit-border-radius:' . $footer_border_radius . ';'; } if ($footer_css != '') { $output .= '#footer {' . $footer_css . '}' . "\n"; } // Magazine Template $slider_magazine_font_title = $woo_options['woo_slider_magazine_font_title']; $slider_magazine_font_excerpt = $woo_options['woo_slider_magazine_font_excerpt']; if ($slider_magazine_font_title) { $output .= '.magazine #loopedSlider .content h2.title a { ' . woo_generate_font_css($slider_magazine_font_title) . ' }' . "\n"; } if ($slider_magazine_font_excerpt) { $output .= '.magazine #loopedSlider .content .excerpt p { ' . woo_generate_font_css($slider_magazine_font_excerpt, 1.5) . ' }' . "\n"; } // Business Template $slider_biz_font_title = $woo_options['woo_slider_biz_font_title']; $slider_biz_font_excerpt = $woo_options['woo_slider_biz_font_excerpt']; if ($slider_biz_font_title) { $output .= '.business #loopedSlider .content h2 { ' . woo_generate_font_css($slider_biz_font_title) . ' }' . "\n"; } $output .= '.business #loopedSlider .content h2.title a { ' . woo_generate_font_css($slider_biz_font_title) . ' }' . "\n"; if ($slider_biz_font_excerpt) { $output .= '#wrapper .business #loopedSlider .content p { ' . woo_generate_font_css($slider_biz_font_excerpt, 1.5) . ' }' . "\n"; } // Archive Header $woo_archive_header_font = $woo_options['woo_archive_header_font']; if ($woo_archive_header_font) { $output .= '.archive_header { ' . woo_generate_font_css($woo_archive_header_font) . ' }' . "\n"; } $output .= '.archive_header {border-bottom:' . $woo_options['woo_archive_header_border_bottom']["width"] . 'px ' . $woo_options['woo_archive_header_border_bottom']["style"] . ' ' . $woo_options['woo_archive_header_border_bottom']["color"] . ';}' . "\n"; if ($woo_options['woo_archive_header_disable_rss'] == "true") { $output .= '.archive_header .catrss { display:none; }' . "\n"; } // Output styles if (isset($output)) { // $output = "\n<!-- Woo Custom Styling -->\n<style type=\"text/css\">\n" . $output . "</style>\n<!-- /Woo Custom Styling -->\n\n"; echo $output; } }
function woo_display_header_styles() { $settings = array('header_typography' => '', 'header_shadow' => 'true', 'header_shadow_color' => '#333333', 'header_bg_color' => '', 'header_bg_img' => '', 'header_bg_repeat' => '', 'header_bg_pos' => '', 'header_bg_attachment' => ''); $settings = woo_get_dynamic_values($settings); global $woo_options; ?> <style type="text/css"> #header { <?php if ($settings['header_bg_color'] != '') { ?> background-color: <?php echo $settings['header_bg_color']; ?> !important; <?php } ?> <?php if ($settings['header_bg_img'] != '') { ?> background-image: url(<?php echo esc_url($settings['header_bg_img']); ?> ); <?php } ?> <?php if ($settings['header_bg_repeat'] != '') { ?> background-repeat: <?php echo $settings['header_bg_repeat']; ?> ; <?php } ?> <?php if ($settings['header_bg_pos'] != '') { ?> background-position: <?php echo $settings['header_bg_pos']; ?> ; <?php } ?> <?php if ($settings['header_bg_attachment'] != '') { ?> background-attachment: <?php echo $settings['header_bg_attachment']; ?> ; <?php } ?> } <?php if (isset($woo_options['woo_header_typography'])) { echo '#header p { ' . woo_generate_font_css($woo_options['woo_header_typography']) . ' }' . "\n"; } ?> <?php if ($settings['header_shadow'] == 'true') { ?> #header p { <?php if ($settings['header_shadow_color'] != '') { ?> text-shadow: 1px 1px 0 <?php echo $settings['header_shadow_color']; ?> ; <?php } ?> } <?php } ?> </style> <?php }
function woo_custom_typography() { // Get options global $woo_options; // Reset $output = ''; // Add Text title and tagline if text title option is enabled if ($woo_options['woo_texttitle'] == "true") { if ($woo_options['woo_font_site_title']) { $output .= '#logo .site-title a {' . woo_generate_font_css($woo_options['woo_font_site_title']) . '}' . "\n"; } if ($woo_options['woo_font_tagline']) { $output .= '#logo .site-description {' . woo_generate_font_css($woo_options['woo_font_tagline']) . '}' . "\n"; } } if ($woo_options['woo_typography'] == "true") { if ($woo_options['woo_font_body']) { $output .= 'body { ' . woo_generate_font_css($woo_options['woo_font_body'], '1.5') . ' }' . "\n"; } if ($woo_options['woo_font_about']) { $output .= '#about .bio p { ' . woo_generate_font_css($woo_options['woo_font_about'], '1.5') . ' }' . "\n"; } if ($woo_options['woo_font_nav']) { $output .= '.nav a:link, .nav a:visited { ' . woo_generate_font_css($woo_options['woo_font_nav'], '1.4') . ' }' . "\n"; } if ($woo_options['woo_font_post_title']) { $output .= '.post .title { ' . woo_generate_font_css($woo_options['woo_font_post_title']) . ' }' . "\n"; } if ($woo_options['woo_font_post_meta']) { $output .= '.post .post-meta { ' . woo_generate_font_css($woo_options['woo_font_post_meta']) . ' }' . "\n"; } if ($woo_options['woo_font_post_entry']) { $output .= '.entry, .entry p { ' . woo_generate_font_css($woo_options['woo_font_post_entry'], '1.5') . ' } h1, h2, h3, h4, h5, h6 { font-family:' . stripslashes($woo_options['woo_font_post_entry']['face']) . '}' . "\n"; } if ($woo_options['woo_font_widget_titles']) { $output .= '.widget h3 { ' . woo_generate_font_css($woo_options['woo_font_widget_titles'], '2') . ' }' . "\n"; } } // Output styles if (isset($output) && $output != "") { // Enable Google Fonts stylesheet in HEAD if (function_exists('woo_google_webfonts')) { woo_google_webfonts(); } $output = "\n<!-- Woo Custom Typography -->\n<style type=\"text/css\">\n" . $output . "</style>\n"; echo $output; } }
function woo_custom_typography() { // Get options global $woo_options; // Reset $output = ''; // Add Text title and tagline if text title option is enabled if ($woo_options['woo_texttitle'] == "true") { if ($woo_options['woo_font_site_title']) { $output .= '#logo .site-title a {' . woo_generate_font_css($woo_options['woo_font_site_title']) . '}' . "\n"; } if ($woo_options['woo_font_tagline']) { $output .= '#tagline .site-description {' . woo_generate_font_css($woo_options['woo_font_tagline']) . '; line-height:28px; }' . "\n"; } } if ($woo_options['woo_typography'] == "true") { if ($woo_options['woo_font_body']) { $output .= 'body { ' . woo_generate_font_css($woo_options['woo_font_body'], '1.5') . ' }' . "\n"; } if ($woo_options['woo_font_nav']) { $output .= '#navigation .nav a { ' . woo_generate_font_css($woo_options['woo_font_nav']) . ' }' . "\n"; } if ($woo_options['woo_font_post_title']) { $output .= '.post .title { ' . woo_generate_font_css($woo_options['woo_font_post_title']) . ' }' . "\n"; } $output .= '#feat-title .title { font-family:' . stripslashes($woo_options['woo_font_post_title']['face']) . '; }' . "\n"; if ($woo_options['woo_font_post_meta']) { $output .= '.post-meta { ' . woo_generate_font_css($woo_options['woo_font_post_meta']) . ' }' . "\n"; } if ($woo_options['woo_font_post_entry']) { $output .= '.entry, .entry p { ' . woo_generate_font_css($woo_options['woo_font_post_entry'], '1.5') . ' } h1, h2, h3, h4, h5, h6 { font-family:' . stripslashes($woo_options['woo_font_post_entry']['face']) . '}' . "\n"; } if ($woo_options['woo_font_widget_titles']) { $output .= '.widget h3 { ' . woo_generate_font_css($woo_options['woo_font_widget_titles']) . ' }' . "\n"; } // Add default typography Google Font } else { $woo_options['woo_just_face'] = array('face' => 'PT Sans'); $output .= 'h1, h2, h3, h4, h5, h6, .widget h3, .post .title, .nav a, .section .post .title, .archive_header, .site-description, #tabs-home ul.wooTabs li a { ' . woo_generate_font_css($woo_options['woo_just_face']) . ' }' . "\n"; } // Output styles if (isset($output) && $output != '') { // Enable Google Fonts stylesheet in HEAD if (function_exists('woo_google_webfonts')) { woo_google_webfonts(); } $output = "<!-- Woo Custom Typography -->\n<style type=\"text/css\">\n" . $output . "</style>\n\n"; echo $output; } }
function woo_custom_styling() { global $woo_options; $output = ''; // Logo if (isset($woo_options['woo_logo']) && $woo_options['woo_logo']) { $output .= '#logo .site-title, #logo .site-description { display:none; }' . "\n"; } // Check if we want to generate the custom styling or not. if (!isset($woo_options['woo_style_disable'])) { $woo_options['woo_style_disable'] = 'false'; } if ('true' == $woo_options['woo_style_disable']) { // We still output the CSS related to the custom logo, if one exists. if ('' != $output) { echo $output; } return; } // Init options $options_init = array('woo_style_bg', 'woo_style_bg_image', 'woo_style_bg_image_repeat', 'woo_style_bg_image_pos', 'woo_style_bg_image_attach', 'woo_border_top', 'woo_style_border', 'woo_link_color', 'woo_link_hover_color', 'woo_button_color', 'woo_button_hover_color', 'woo_header_bg', 'woo_header_bg_image', 'woo_header_bg_image_repeat', 'woo_header_border', 'woo_header_margin_top', 'woo_header_margin_bottom', 'woo_header_padding_top', 'woo_header_padding_bottom', 'woo_header_padding_left', 'woo_header_padding_right', 'woo_font_logo', 'woo_font_desc', 'woo_layout_boxed', 'woo_style_box_bg', 'woo_box_margin_top', 'woo_box_margin_bottom', 'woo_box_border_tb', 'woo_box_border_lr', 'woo_box_border_radius', 'woo_box_shadow', 'woo_full_header_full_width_bg', 'woo_full_header_bg_image', 'woo_full_header_bg_image_repeat', 'woo_nav_bg', 'woo_nav_divider_border', 'woo_nav_border_top', 'woo_nav_border_bot', 'woo_foot_full_width_widget_bg', 'woo_footer_full_width_bg', 'woo_footer_border_top', 'woo_font_text', 'woo_font_h1', 'woo_font_h2', 'woo_font_h3', 'woo_font_h4', 'woo_font_h5', 'woo_font_h6', 'woo_font_post_title', 'woo_font_post_meta', 'woo_font_post_text', 'woo_font_post_more', 'woo_post_more_border_top', 'woo_post_more_border_bottom', 'woo_post_comments_bg', 'woo_post_author_border_top', 'woo_post_author_border_bottom', 'woo_post_author_border_lr', 'woo_post_author_border_radius', 'woo_post_author_bg', 'woo_pagenav_font', 'woo_pagenav_bg', 'woo_pagenav_border_top', 'woo_pagenav_border_bottom', 'woo_widget_font_title', 'woo_widget_font_text', 'woo_widget_padding_tb', 'woo_widget_padding_lr', 'woo_widget_bg', 'woo_widget_border', 'woo_widget_title_border', 'woo_widget_border_radius', 'woo_widget_tabs_bg', 'woo_widget_tabs_bg_inside', 'woo_widget_tabs_font', 'woo_widget_tabs_font_meta', 'woo_nav_bg', 'woo_nav_font', 'woo_nav_hover', 'woo_nav_hover_bg', 'woo_nav_divider_border', 'woo_nav_dropdown_border', 'woo_nav_border_lr', 'woo_nav_border_radius', 'woo_nav_border_top', 'woo_nav_border_bot', 'woo_nav_margin_top', 'woo_nav_margin_bottom', 'woo_top_nav_bg', 'woo_top_nav_hover', 'woo_top_nav_hover_bg', 'woo_top_nav_font', 'woo_footer_font', 'woo_footer_bg', 'woo_footer_border_top', 'woo_footer_border_bottom', 'woo_footer_border_lr', 'woo_footer_border_radius', 'woo_slider_magazine_font_title', 'woo_slider_magazine_font_excerpt', 'woo_magazine_grid_font_post_title', 'woo_slider_biz_font_title', 'woo_slider_biz_font_excerpt', 'woo_slider_biz_overlay', 'woo_archive_header_font', 'woo_archive_header_border_bottom'); foreach ($options_init as $option) { if (isset($woo_options[$option])) { ${$option} = $woo_options[$option]; } else { ${$option} = false; } } // Layout styling $body = ''; if ($woo_style_bg) { $body .= 'background-color:' . $woo_style_bg . ';'; } if ($woo_style_bg_image) { $body .= 'background-image:url(' . $woo_style_bg_image . ');'; } if ($woo_style_bg_image_repeat) { $body .= 'background-repeat:' . $woo_style_bg_image_repeat . ';'; } if ($woo_style_bg_image_pos) { $body .= 'background-position:' . $woo_style_bg_image_pos . ';'; } if ($woo_style_bg_image_attach) { $body .= 'background-attachment:' . $woo_style_bg_image_attach . ';'; } if ($woo_border_top && $woo_border_top['width'] >= 0) { $body .= 'border-top:' . $woo_border_top["width"] . 'px ' . $woo_border_top["style"] . ' ' . $woo_border_top["color"] . ';'; } if ($body != '') { $output .= 'body {' . $body . '}' . "\n"; } if ($woo_style_border) { $output .= 'hr, .entry img, img.thumbnail, .entry .wp-caption, #footer-widgets, #comments, #comments .comment.thread-even, #comments ul.children li, .entry h1{border-color:' . $woo_style_border . '}' . "\n"; } // General styling if ($woo_link_color) { $output .= 'a:link, a:visited, #loopedSlider a.flex-prev:hover, #loopedSlider a.flex-next:hover {color:' . $woo_link_color . '} .quantity .plus, .quantity .minus {background-color: ' . $woo_link_color . ';}' . "\n"; } if ($woo_link_hover_color) { $output .= 'a:hover, .post-more a:hover, .post-meta a:hover, .post p.tags a:hover {color:' . $woo_link_hover_color . '}' . "\n"; } if ($woo_button_color) { $output .= 'body #wrapper .button, body #wrapper #content .button, body #wrapper #content .button:visited, body #wrapper #content .reply a, body #wrapper #content #respond .form-submit input#submit, input[type=submit], body #wrapper #searchsubmit, #navigation ul.cart .button, body #wrapper .woo-sc-button {border: none; background:' . $woo_button_color . '}' . "\n"; } if ($woo_button_hover_color) { $output .= 'body #wrapper .button:hover, body #wrapper #content .button:hover, body #wrapper #content .reply a:hover, body #wrapper #content #respond .form-submit input#submit:hover, input[type=submit]:hover, body #wrapper #searchsubmit:hover, #navigation ul.cart .button:hover, body #wrapper .woo-sc-button:hover {border: none; background:' . $woo_button_hover_color . '}' . "\n"; } // Header styling $header_css = ''; if ($woo_header_bg) { $header_css .= 'background-color:' . $woo_header_bg . ';'; } if ($woo_header_bg_image) { $header_css .= 'background-image:url(' . $woo_header_bg_image . ');'; } if ($woo_header_bg_image_repeat) { $header_css .= 'background-repeat:' . $woo_header_bg_image_repeat . ';background-position:left top;'; } if ($woo_header_margin_top != '' || $woo_header_margin_bottom != '') { $header_css .= 'margin-top:' . $woo_header_margin_top . 'px;margin-bottom:' . $woo_header_margin_bottom . 'px;'; } if ($woo_header_padding_top != '' || $woo_header_padding_bottom != '') { $header_css .= 'padding-top:' . $woo_header_padding_top . 'px;padding-bottom:' . $woo_header_padding_bottom . 'px;'; } if ($woo_header_border && $woo_header_border['width'] >= 0) { $header_css .= 'border:' . $woo_header_border["width"] . 'px ' . $woo_header_border["style"] . ' ' . $woo_header_border["color"] . ';'; } if ($header_css != '') { $output .= '#header {' . $header_css . '}' . "\n"; } if ($woo_header_padding_left != '') { $output .= '#logo {padding-left:' . $woo_header_padding_left . 'px;}'; } if ($woo_header_padding_right != '') { $output .= '.header-widget {padding-right:' . $woo_header_padding_right . 'px;}' . "\n"; } if ($woo_font_logo) { $output .= '#logo .site-title a {' . woo_generate_font_css($woo_font_logo) . '}' . "\n"; } if ($woo_font_desc) { $output .= '#logo .site-description {' . woo_generate_font_css($woo_font_desc) . '}' . "\n"; } // Boxed styling $wrapper = ''; if ($woo_layout_boxed == "true") { //$wrapper .= 'margin:0 auto;padding:0 0 20px 0;width:'.get_option('woo_layout_width').';'; if (get_option('woo_layout_width') == '940px') { $wrapper .= 'padding-left:20px; padding-right:20px;'; } else { $wrapper .= 'padding-left:30px; padding-right:30px;'; } } if ($woo_layout_boxed == "true" && $woo_style_box_bg) { $wrapper .= 'background-color:' . $woo_style_box_bg . ';'; } if ($woo_layout_boxed == "true" && ($woo_box_margin_top || $woo_box_margin_bottom)) { $wrapper .= 'margin-top:' . $woo_box_margin_top . 'px;margin-bottom:' . $woo_box_margin_bottom . 'px;'; } if ($woo_layout_boxed == "true" && $woo_box_border_tb["width"] > 0) { $wrapper .= 'border-top:' . $woo_box_border_tb["width"] . 'px ' . $woo_box_border_tb["style"] . ' ' . $woo_box_border_tb["color"] . ';border-bottom:' . $woo_box_border_tb["width"] . 'px ' . $woo_box_border_tb["style"] . ' ' . $woo_box_border_tb["color"] . ';'; } if ($woo_layout_boxed == "true" && $woo_box_border_lr["width"] > 0) { $wrapper .= 'border-left:' . $woo_box_border_lr["width"] . 'px ' . $woo_box_border_lr["style"] . ' ' . $woo_box_border_lr["color"] . ';border-right:' . $woo_box_border_lr["width"] . 'px ' . $woo_box_border_lr["style"] . ' ' . $woo_box_border_lr["color"] . ';'; } if ($woo_layout_boxed == "true" && $woo_box_border_radius) { $wrapper .= 'border-radius:' . $woo_box_border_radius . ';'; } if ($woo_layout_boxed == "true" && $woo_box_shadow == "true") { $wrapper .= 'box-shadow: 0px 1px 5px rgba(0,0,0,.1);'; } if ($wrapper != '') { $output .= '#inner-wrapper {' . $wrapper . '} .col-full { width: auto; } @media only screen and (max-width:767px) { #inner-wrapper { margin:0; border-radius:none; padding-left:1em; padding-right: 1em; border: none; } } ' . "\n"; } // Full width layout if ($woo_layout_boxed != "true" && (isset($woo_options['woo_header_full_width']) && $woo_options['woo_header_full_width'] == 'true' || isset($woo_options['woo_footer_full_width']) && $woo_options['woo_footer_full_width'] == 'true')) { if (isset($woo_options['woo_header_full_width']) && $woo_options['woo_header_full_width'] == 'true') { if ($woo_full_header_full_width_bg) { $output .= '#header-container{background-color:' . $woo_full_header_full_width_bg . ';}'; } if ($woo_full_header_bg_image) { $output .= '#header-container{background-image:url(' . $woo_full_header_bg_image . ');background-repeat:' . $woo_full_header_bg_image_repeat . ';background-position:top center;}'; } if ($woo_nav_bg) { $output .= '#nav-container{background:' . $woo_nav_bg . ';}'; } if ($woo_nav_border_top && $woo_nav_border_top["width"] >= 0) { $output .= '#nav-container{border-top:' . $woo_nav_border_top["width"] . 'px ' . $woo_nav_border_top["style"] . ' ' . $woo_nav_border_top["color"] . ';border-bottom:' . $woo_nav_border_bot["width"] . 'px ' . $woo_nav_border_bot["style"] . ' ' . $woo_nav_border_bot["color"] . ';border-left:none;border-right:none;}'; } if ($woo_nav_divider_border && $woo_nav_divider_border["width"] >= 0) { $output .= '#nav-container #navigation ul#main-nav > li:first-child{border-left: ' . $woo_nav_divider_border["width"] . 'px ' . $woo_nav_divider_border["style"] . ' ' . $woo_nav_divider_border["color"] . ';}'; } } if (isset($woo_options['woo_footer_full_width']) && 'true' == $woo_options['woo_footer_full_width']) { if ($woo_foot_full_width_widget_bg) { $output .= '#footer-widgets-container{background-color:' . $woo_foot_full_width_widget_bg . '}#footer-widgets{border:none;}'; } if ($woo_footer_full_width_bg) { $output .= '#footer-container{background-color:' . $woo_footer_full_width_bg . '}'; } if ($woo_footer_border_top && $woo_footer_border_top["width"] >= 0) { $output .= '#footer-container{border-top:' . $woo_footer_border_top["width"] . 'px ' . $woo_footer_border_top["style"] . ' ' . $woo_footer_border_top["color"] . ';}#footer {border-width: 0 !important;}'; } } $output .= "\n"; } // General Typography if ($woo_font_text) { $output .= 'body, p { ' . woo_generate_font_css($woo_font_text, 1.5) . ' }' . "\n"; } if ($woo_font_h1) { $output .= 'h1 { ' . woo_generate_font_css($woo_font_h1, 1.2) . ' }'; } if ($woo_font_h2) { $output .= 'h2 { ' . woo_generate_font_css($woo_font_h2, 1.2) . ' }'; } if ($woo_font_h3) { $output .= 'h3 { ' . woo_generate_font_css($woo_font_h3, 1.2) . ' }'; } if ($woo_font_h4) { $output .= 'h4 { ' . woo_generate_font_css($woo_font_h4, 1.2) . ' }'; } if ($woo_font_h5) { $output .= 'h5 { ' . woo_generate_font_css($woo_font_h5, 1.2) . ' }'; } if ($woo_font_h6) { $output .= 'h6 { ' . woo_generate_font_css($woo_font_h6, 1.2) . ' }' . "\n"; } // Post Styling if ($woo_font_post_title) { $output .= '.page-title, .post .title, .page .title {' . woo_generate_font_css($woo_font_post_title, 1.1) . '}' . "\n"; } $output .= '.post .title a:link, .post .title a:visited, .page .title a:link, .page .title a:visited {color:' . $woo_font_post_title["color"] . '}' . "\n"; if ($woo_font_post_meta) { $output .= '.post-meta { ' . woo_generate_font_css($woo_font_post_meta, 1.5) . ' }' . "\n"; } if ($woo_font_post_text) { $output .= '.entry, .entry p{ ' . woo_generate_font_css($woo_font_post_text, 1.5) . ' }' . "\n"; } $post_more_border = ''; if ($woo_font_post_more) { $post_more_border .= 'font:' . $woo_font_post_more["style"] . ' ' . $woo_font_post_more["size"] . $woo_font_post_more["unit"] . '/1.5em ' . stripslashes($woo_font_post_more["face"]) . ';color:' . $woo_font_post_more["color"] . ';'; } if ($woo_post_more_border_top) { $post_more_border .= 'border-top:' . $woo_post_more_border_top["width"] . 'px ' . $woo_post_more_border_top["style"] . ' ' . $woo_post_more_border_top["color"] . ';'; } if ($woo_post_more_border_bottom) { $post_more_border .= 'border-bottom:' . $woo_post_more_border_bottom["width"] . 'px ' . $woo_post_more_border_bottom["style"] . ' ' . $woo_post_more_border_bottom["color"] . ';'; } if ($post_more_border) { $output .= '.post-more {' . $post_more_border . '}' . "\n"; } $post_author = ''; if ($woo_post_author_border_top) { $post_author .= 'border-top:' . $woo_post_author_border_top["width"] . 'px ' . $woo_post_author_border_top["style"] . ' ' . $woo_post_author_border_top["color"] . ';'; } if ($woo_post_author_border_bottom) { $post_author .= 'border-bottom:' . $woo_post_author_border_bottom["width"] . 'px ' . $woo_post_author_border_bottom["style"] . ' ' . $woo_post_author_border_bottom["color"] . ';'; } if ($woo_post_author_border_lr) { $post_author .= 'border-left:' . $woo_post_author_border_lr["width"] . 'px ' . $woo_post_author_border_lr["style"] . ' ' . $woo_post_author_border_lr["color"] . ';border-right:' . $woo_post_author_border_lr["width"] . 'px ' . $woo_post_author_border_lr["style"] . ' ' . $woo_post_author_border_lr["color"] . ';'; } if ($woo_post_author_border_radius) { $post_author .= 'border-radius:' . $woo_post_author_border_radius . ';-moz-border-radius:' . $woo_post_author_border_radius . ';-webkit-border-radius:' . $woo_post_author_border_radius . ';'; } if ($woo_post_author_bg) { $post_author .= 'background-color:' . $woo_post_author_bg; } if ($post_author) { $output .= '#post-author, #connect {' . $post_author . '}' . "\n"; } if ($woo_post_comments_bg) { $output .= '#comments .comment.thread-even {background-color:' . $woo_post_comments_bg . ';}' . "\n"; } // Page Nav Styling $pagenav_css = ''; if ($woo_pagenav_bg) { $pagenav_css .= 'background-color:' . $woo_pagenav_bg . ';'; } if ($woo_pagenav_border_top && $woo_pagenav_border_top["width"] > 0) { $pagenav_css .= 'border-top:' . $woo_pagenav_border_top["width"] . 'px ' . $woo_pagenav_border_top["style"] . ' ' . $woo_pagenav_border_top["color"] . ';'; } if ($woo_pagenav_border_bottom && $woo_pagenav_border_bottom["width"] > 0) { $pagenav_css .= 'border-bottom:' . $woo_pagenav_border_bottom["width"] . 'px ' . $woo_pagenav_border_bottom["style"] . ' ' . $woo_pagenav_border_bottom["color"] . ';'; } if ($pagenav_css != '') { $output .= '.nav-entries, .woo-pagination {' . $pagenav_css . ' padding: 12px 0px; }' . "\n"; } if ($woo_pagenav_font) { $output .= '.nav-entries a, .woo-pagination { ' . woo_generate_font_css($woo_pagenav_font) . ' }' . "\n"; $output .= '.woo-pagination a, .woo-pagination a:hover {color:' . $woo_pagenav_font["color"] . '!important}' . "\n"; } // Widget Styling $h3_css = ''; if ($woo_widget_font_title) { $h3_css .= 'font:' . $woo_widget_font_title["style"] . ' ' . $woo_widget_font_title["size"] . $woo_widget_font_title["unit"] . '/1.2em ' . stripslashes($woo_widget_font_title["face"]) . ';color:' . $woo_widget_font_title["color"] . ';'; } if ($woo_widget_title_border) { $h3_css .= 'border-bottom:' . $woo_widget_title_border["width"] . 'px ' . $woo_widget_title_border["style"] . ' ' . $woo_widget_title_border["color"] . ';'; } if (isset($woo_widget_title_border["width"]) and $woo_widget_title_border["width"] == 0) { $h3_css .= 'margin-bottom:0;'; } if ($h3_css != '') { $output .= '.widget h3 {' . $h3_css . '}' . "\n"; } if ($woo_widget_title_border) { $output .= '.widget_recent_comments li, #twitter li { border-color: ' . $woo_widget_title_border["color"] . ';}' . "\n"; } if ($woo_widget_font_text) { $output .= '.widget p, .widget .textwidget { ' . woo_generate_font_css($woo_widget_font_text, 1.5) . ' }' . "\n"; } $widget_css = ''; if ($woo_widget_font_text) { $widget_css .= 'font:' . $woo_widget_font_text["style"] . ' ' . $woo_widget_font_text["size"] . $woo_widget_font_text["unit"] . '/1.5em ' . stripslashes($woo_widget_font_text["face"]) . ';color:' . $woo_widget_font_text["color"] . ';'; } if ($woo_widget_padding_tb || $woo_widget_padding_lr) { $widget_css .= 'padding:' . $woo_widget_padding_tb . 'px ' . $woo_widget_padding_lr . 'px;'; } if ($woo_widget_bg) { $widget_css .= 'background-color:' . $woo_widget_bg . ';'; } if ($woo_widget_border["width"] > 0) { $widget_css .= 'border:' . $woo_widget_border["width"] . 'px ' . $woo_widget_border["style"] . ' ' . $woo_widget_border["color"] . ';'; } if ($woo_widget_border_radius) { $widget_css .= 'border-radius:' . $woo_widget_border_radius . ';-moz-border-radius:' . $woo_widget_border_radius . ';-webkit-border-radius:' . $woo_widget_border_radius . ';'; } if ($widget_css != '') { $output .= '.widget {' . $widget_css . '}' . "\n"; } if ($woo_widget_border["width"] > 0) { $output .= '#tabs {border:' . $woo_widget_border["width"] . 'px ' . $woo_widget_border["style"] . ' ' . $woo_widget_border["color"] . ';}' . "\n"; } // Tabs Widget if ($woo_widget_tabs_bg) { $output .= '#tabs, .widget_woodojo_tabs .tabbable {background-color:' . $woo_widget_tabs_bg . ';}' . "\n"; } if ($woo_widget_tabs_bg_inside) { $output .= '#tabs .inside, #tabs ul.wooTabs li a.selected, #tabs ul.wooTabs li a:hover {background-color:' . $woo_widget_tabs_bg_inside . ';}' . "\n"; } if ($woo_widget_tabs_font) { $output .= '#tabs .inside li a, .widget_woodojo_tabs .tabbable .tab-pane li a { ' . woo_generate_font_css($woo_widget_tabs_font, 1.5) . ' }' . "\n"; } if ($woo_widget_tabs_font_meta) { $output .= '#tabs .inside li span.meta, .widget_woodojo_tabs .tabbable .tab-pane li span.meta { ' . woo_generate_font_css($woo_widget_tabs_font_meta, 1.5) . ' }' . "\n"; } $output .= '#tabs ul.wooTabs li a, .widget_woodojo_tabs .tabbable .nav-tabs li a { ' . woo_generate_font_css($woo_widget_tabs_font_meta, 2) . ' }' . "\n"; //Navigation global $is_IE; if (!$is_IE) { $output .= '@media only screen and (min-width:768px) {' . "\n"; } if ($woo_nav_font) { $output .= 'ul.nav li a, #navigation ul.rss a, #navigation ul.cart a.cart-contents, #navigation .cart-contents #navigation ul.rss, #navigation ul.nav-search, #navigation ul.nav-search a { ' . woo_generate_font_css($woo_nav_font, 1.2) . ' } #navigation ul.rss li a:before, #navigation ul.nav-search a.search-contents:before { color:' . $woo_nav_font['color'] . ';}' . "\n"; } if ($woo_nav_hover) { $output .= '#navigation ul.nav > li a:hover, #navigation ul.nav > li:hover a, #navigation ul.nav li ul li a, #navigation ul.cart > li:hover > a, #navigation ul.cart > li > ul > div, #navigation ul.cart > li > ul > div p, #navigation ul.cart > li > ul span, #navigation ul.cart .cart_list a, #navigation ul.nav li.current_page_item a, #navigation ul.nav li.current_page_parent a, #navigation ul.nav li.current-menu-ancestor a, #navigation ul.nav li.current-cat a, #navigation ul.nav li.current-menu-item a { color:' . $woo_nav_hover . '!important; }' . "\n"; } if ($woo_nav_hover_bg) { $output .= '#navigation ul.nav > li a:hover, #navigation ul.nav > li:hover, #navigation ul.nav li ul, #navigation ul.cart li:hover a.cart-contents, #navigation ul.nav-search li:hover a.search-contents, #navigation ul.nav-search a.search-contents + ul, #navigation ul.cart a.cart-contents + ul, #navigation ul.nav li.current_page_item a, #navigation ul.nav li.current_page_parent a, #navigation ul.nav li.current-menu-ancestor a, #navigation ul.nav li.current-cat a, #navigation ul.nav li.current-menu-item a{background-color:' . $woo_nav_hover_bg . '!important}' . "\n"; } if ($woo_nav_dropdown_border && $woo_nav_dropdown_border["width"] >= 0) { $output .= '#navigation ul.nav li ul, #navigation ul.cart > li > ul > div { border: ' . $woo_nav_dropdown_border["width"] . 'px ' . $woo_nav_dropdown_border["style"] . ' ' . $woo_nav_dropdown_border["color"] . '; }' . "\n"; if ($woo_nav_dropdown_border["width"] == 0) { $output .= '#navigation ul.nav > li:hover > ul { left: 0; }' . "\n"; } } if ($woo_nav_divider_border && $woo_nav_divider_border["width"] >= 0) { $output .= '#navigation ul.nav > li { border-right: ' . $woo_nav_divider_border["width"] . 'px ' . $woo_nav_divider_border["style"] . ' ' . $woo_nav_divider_border["color"] . '; }'; if ($woo_nav_divider_border["width"] == 0) { $output .= '#navigation ul.nav > li:hover > ul { left: 0; }' . "\n"; } } $navigation_css = ''; if ($woo_nav_bg) { $navigation_css .= 'background:' . $woo_nav_bg . ';'; } if ($woo_nav_border_top && $woo_nav_border_top["width"] >= 0) { $navigation_css .= 'border-top:' . $woo_nav_border_top["width"] . 'px ' . $woo_nav_border_top["style"] . ' ' . $woo_nav_border_top["color"] . ';border-bottom:' . $woo_nav_border_bot["width"] . 'px ' . $woo_nav_border_bot["style"] . ' ' . $woo_nav_border_bot["color"] . ';border-left:' . $woo_nav_border_lr["width"] . 'px ' . $woo_nav_border_lr["style"] . ' ' . $woo_nav_border_lr["color"] . ';border-right:' . $woo_nav_border_lr["width"] . 'px ' . $woo_nav_border_lr["style"] . ' ' . $woo_nav_border_lr["color"] . ';'; } if ($woo_nav_border_bot && $woo_nav_border_bot["width"] == 0) { $output .= '#navigation { box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; }'; } if ($woo_nav_border_radius) { $navigation_css .= 'border-radius:' . $woo_nav_border_radius . '; -moz-border-radius:' . $woo_nav_border_radius . '; -webkit-border-radius:' . $woo_nav_border_radius . ';'; } if ($woo_nav_border_radius) { $output .= '#navigation ul li:first-child, #navigation ul li:first-child a { border-radius:' . $woo_nav_border_radius . ' 0 0 ' . $woo_nav_border_radius . '; -moz-border-radius:' . $woo_nav_border_radius . ' 0 0 ' . $woo_nav_border_radius . '; -webkit-border-radius:' . $woo_nav_border_radius . ' 0 0 ' . $woo_nav_border_radius . '; }' . "\n"; } if ('' != $woo_nav_margin_top || '' != $woo_nav_margin_bottom) { if (isset($woo_options['woo_header_full_width']) && 'true' == $woo_options['woo_header_full_width']) { $navigation_css .= 'margin-top:0;margin-bottom:0;'; $output .= '#nav-container { margin-top:' . $woo_nav_margin_top . 'px;margin-bottom:' . $woo_nav_margin_bottom . 'px; }'; } else { $navigation_css .= 'margin-top:' . $woo_nav_margin_top . 'px;margin-bottom:' . $woo_nav_margin_bottom . 'px;'; } } if ($navigation_css != '') { $output .= '#navigation {' . $navigation_css . '}' . "\n"; } if ($woo_top_nav_bg) { $output .= '#top, #top ul.nav li ul li a:hover { background:' . $woo_top_nav_bg . ';}' . "\n"; } if ($woo_top_nav_hover) { $output .= '#top ul.nav li a:hover, #top ul.nav li.current_page_item a, #top ul.nav li.current_page_parent a,#top ul.nav li.current-menu-ancestor a,#top ul.nav li.current-cat a,#top ul.nav li.current-menu-item a,#top ul.nav li.sfHover, #top ul.nav li ul, #top ul.nav > li:hover a, #top ul.nav li ul li a { color:' . $woo_top_nav_hover . '!important;}' . "\n"; } if ($woo_top_nav_hover_bg) { $output .= '#top ul.nav li a:hover, #top ul.nav li.current_page_item a, #top ul.nav li.current_page_parent a,#top ul.nav li.current-menu-ancestor a,#top ul.nav li.current-cat a,#top ul.nav li.current-menu-item a,#top ul.nav li.sfHover, #top ul.nav li ul, #top ul.nav > li:hover { background:' . $woo_top_nav_hover_bg . ';}' . "\n"; } if ($woo_top_nav_font) { $output .= '#top ul.nav li a { ' . woo_generate_font_css($woo_top_nav_font, 1.6) . ' }' . "\n"; if (isset($woo_top_nav_font['color']) && strlen($woo_top_nav_font['color']) == 7) { $output .= '#top ul.nav li.parent > a:after { border-top-color:' . esc_attr($woo_top_nav_font['color']) . ';}' . "\n"; } } if (!$is_IE) { $output .= '}' . "\n"; } // Footer if ($woo_footer_font) { $output .= '#footer, #footer p { ' . woo_generate_font_css($woo_footer_font, 1.4) . ' }' . "\n"; } $footer_css = ''; if ($woo_footer_bg) { $footer_css .= 'background-color:' . $woo_footer_bg . ';'; } if ($woo_footer_border_top) { $footer_css .= 'border-top:' . $woo_footer_border_top["width"] . 'px ' . $woo_footer_border_top["style"] . ' ' . $woo_footer_border_top["color"] . ';'; } if ($woo_footer_border_bottom) { $footer_css .= 'border-bottom:' . $woo_footer_border_bottom["width"] . 'px ' . $woo_footer_border_bottom["style"] . ' ' . $woo_footer_border_bottom["color"] . ';'; } if ($woo_footer_border_lr) { $footer_css .= 'border-left:' . $woo_footer_border_lr["width"] . 'px ' . $woo_footer_border_lr["style"] . ' ' . $woo_footer_border_lr["color"] . ';border-right:' . $woo_footer_border_lr["width"] . 'px ' . $woo_footer_border_lr["style"] . ' ' . $woo_footer_border_lr["color"] . ';'; } if ($woo_footer_border_radius) { $footer_css .= 'border-radius:' . $woo_footer_border_radius . '; -moz-border-radius:' . $woo_footer_border_radius . '; -webkit-border-radius:' . $woo_footer_border_radius . ';'; } if ($footer_css != '') { $output .= '#footer {' . $footer_css . '}' . "\n"; } // Magazine Template if ($woo_slider_magazine_font_title) { $output .= '.magazine #loopedSlider .content h2.title a { ' . woo_generate_font_css($woo_slider_magazine_font_title) . ' }' . "\n"; // WooSlider Integration $output .= '.wooslider-theme-magazine .slide-title a { ' . woo_generate_font_css($woo_slider_magazine_font_title) . ' }' . "\n"; } if ($woo_slider_magazine_font_excerpt) { $output .= '.magazine #loopedSlider .content .excerpt p { ' . woo_generate_font_css($woo_slider_magazine_font_excerpt, 1.5) . ' }' . "\n"; // WooSlider Integration $output .= '.wooslider-theme-magazine .slide-content p, .wooslider-theme-magazine .slide-excerpt p { ' . woo_generate_font_css($woo_slider_magazine_font_excerpt, 1.5) . ' }' . "\n"; } if ($woo_magazine_grid_font_post_title) { $output .= '.magazine .block .post .title a {' . woo_generate_font_css($woo_magazine_grid_font_post_title, 1.2) . ' }' . "\n"; } // Business Template if ($woo_slider_biz_font_title) { $output .= '#loopedSlider.business-slider .content h2 { ' . woo_generate_font_css($woo_slider_biz_font_title) . ' }' . "\n"; $output .= '#loopedSlider.business-slider .content h2.title a { ' . woo_generate_font_css($woo_slider_biz_font_title) . ' }' . "\n"; // WooSlider Integration $output .= '.wooslider-theme-business .has-featured-image .slide-title { ' . woo_generate_font_css($woo_slider_biz_font_title) . ' }' . "\n"; $output .= '.wooslider-theme-business .has-featured-image .slide-title a { ' . woo_generate_font_css($woo_slider_biz_font_title) . ' }' . "\n"; } if ($woo_slider_biz_font_excerpt) { $output .= '#wrapper #loopedSlider.business-slider .content p { ' . woo_generate_font_css($woo_slider_biz_font_excerpt, 1.5) . ' }' . "\n"; // WooSlider Integration $output .= '.wooslider-theme-business .has-featured-image .slide-content p { ' . woo_generate_font_css($woo_slider_biz_font_excerpt, 1.5) . ' }' . "\n"; $output .= '.wooslider-theme-business .has-featured-image .slide-excerpt p { ' . woo_generate_font_css($woo_slider_biz_font_excerpt, 1.5) . ' }' . "\n"; } // Slider overlay if ($woo_slider_biz_overlay == 'left' || $woo_slider_biz_overlay == 'right' || $woo_slider_biz_overlay == 'center' || $woo_slider_biz_overlay == 'full' || $woo_slider_biz_overlay == 'none') { $output .= '@media only screen and (min-width:768px) {' . "\n"; if ($woo_slider_biz_overlay && $woo_slider_biz_overlay == 'left') { $output .= '#wrapper #loopedSlider.business-slider .content { width: 40%; top: 2.5em; bottom: inherit; left:0; right: inherit; text-align: left; }' . "\n"; } if ($woo_slider_biz_overlay && $woo_slider_biz_overlay == 'right') { $output .= '#wrapper #loopedSlider.business-slider .content { width: 40%; top: 2.5em; bottom: inherit; right:0; left: inherit; text-align: right; }' . "\n"; } if ($woo_slider_biz_overlay && $woo_slider_biz_overlay == 'center') { $output .= '#wrapper #loopedSlider.business-slider .content { width: 50%; top: 20%; bottom: inherit; }' . "\n"; } if ($woo_slider_biz_overlay && $woo_slider_biz_overlay == 'full') { $output .= '#wrapper #loopedSlider.business-slider .content { top: 0; padding-top: 7%; }' . "\n"; } if ($woo_slider_biz_overlay && $woo_slider_biz_overlay == 'none') { $output .= '#wrapper #loopedSlider.business-slider .content { background: none; width: 50%; top: 20%; bottom: inherit; }' . "\n"; } $output .= '}' . "\n"; } // Archive Header if ($woo_archive_header_font) { $output .= '.archive_header { ' . woo_generate_font_css($woo_archive_header_font) . ' }' . "\n"; } if ($woo_archive_header_border_bottom) { $output .= '.archive_header {border-bottom:' . $woo_archive_header_border_bottom["width"] . 'px ' . $woo_archive_header_border_bottom["style"] . ' ' . $woo_archive_header_border_bottom["color"] . ';}' . "\n"; } if (isset($woo_options['woo_archive_header_disable_rss']) && $woo_options['woo_archive_header_disable_rss'] == "true") { $output .= '.archive_header .catrss { display:none; }' . "\n"; } // Output styles if (isset($output)) { // $output = "\n<!-- Woo Custom Styling -->\n<style type=\"text/css\">\n" . $output . "</style>\n<!-- /Woo Custom Styling -->\n\n"; echo $output; } }
function woo_custom_typography() { // Get options global $woo_options; // Reset $output = ''; // Add Text title and tagline if text title option is enabled if (isset($woo_options['woo_texttitle']) && $woo_options['woo_texttitle'] == 'true') { if ($woo_options['woo_font_site_title']) { $output .= '#header .site-title a {' . woo_generate_font_css($woo_options['woo_font_site_title']) . '}' . "\n"; } if ($woo_options['woo_tagline'] == "true" and $woo_options['woo_font_tagline']) { $output .= '#header .site-description {' . woo_generate_font_css($woo_options['woo_font_tagline']) . '}' . "\n"; } } if (isset($woo_options['woo_typography']) && $woo_options['woo_typography'] == 'true') { if (isset($woo_options['woo_font_body']) && $woo_options['woo_font_body']) { $output .= 'body { ' . woo_generate_font_css($woo_options['woo_font_body'], '1.5') . ' }' . "\n"; } if (isset($woo_options['woo_font_nav']) && $woo_options['woo_font_nav']) { $output .= '#navigation, #navigation .nav a { ' . woo_generate_font_css($woo_options['woo_font_nav'], '1.4') . ' }' . "\n"; } if (isset($woo_options['woo_font_page_title']) && $woo_options['woo_font_page_title']) { $output .= '.page header h1 { ' . woo_generate_font_css($woo_options['woo_font_page_title']) . ' }' . "\n"; } if (isset($woo_options['woo_font_post_title']) && $woo_options['woo_font_post_title']) { $output .= '.post header h1, .post header h1 a:link, .post header h1 a:visited { ' . woo_generate_font_css($woo_options['woo_font_post_title']) . ' }' . "\n"; } if (isset($woo_options['woo_font_post_meta']) && $woo_options['woo_font_post_meta']) { $output .= '.post-meta { ' . woo_generate_font_css($woo_options['woo_font_post_meta']) . ' }' . "\n"; } if (isset($woo_options['woo_font_post_entry']) && $woo_options['woo_font_post_entry']) { $output .= '.entry, .entry p { ' . woo_generate_font_css($woo_options['woo_font_post_entry'], '1.5') . ' } h1, h2, h3, h4, h5, h6 { font-family: ' . stripslashes($woo_options['woo_font_post_entry']['face']) . ', arial, sans-serif; }' . "\n"; } if (isset($woo_options['woo_font_widget_titles']) && $woo_options['woo_font_widget_titles']) { $output .= '.widget h3 { ' . woo_generate_font_css($woo_options['woo_font_widget_titles']) . ' }' . "\n"; } if (isset($woo_options['woo_font_widget_titles']) && $woo_options['woo_font_widget_titles']) { $output .= '.widget h3 { ' . woo_generate_font_css($woo_options['woo_font_widget_titles']) . ' }' . "\n"; } // Component titles if (isset($woo_options['woo_font_component_titles']) && $woo_options['woo_font_component_titles']) { $output .= '.component h2.component-title { ' . woo_generate_font_css($woo_options['woo_font_component_titles']) . ' }' . "\n"; } // Add default typography Google Font } else { // Set default font face //$woo_options['woo_default_face'] = array('face' => 'Droid Serif'); // Output default font face //if ( isset( $woo_options['woo_default_face'] ) && !empty( $woo_options['woo_default_face'] ) ) // $output .= 'h1, h2, h3, h4, h5, h6, .post .title, .page .title, .archive_header { '.woo_generate_font_css($woo_options['woo_default_face']).' }' . "\n"; $woo_options['woo_just_face2'] = array('face' => 'Schoolbell'); $output .= '.shortcode-sticky { ' . woo_generate_font_css($woo_options['woo_just_face2']) . ' }' . "\n"; } // Output styles if (isset($output) && $output != '') { // Enable Google Fonts stylesheet in HEAD if (function_exists('woo_google_webfonts')) { woo_google_webfonts(); } $output = "<!-- Woo Custom Typography -->\n<style type=\"text/css\">\n" . $output . "</style>\n\n"; echo $output; } }