/** * Output the default WooFramework "head" markup in the "head" section. * @since 2.0.0 * @return void */ function woothemes_wp_head() { do_action('woothemes_wp_head_before'); // Output alternative stylesheet if (function_exists('woo_output_alt_stylesheet')) { woo_output_alt_stylesheet(); } // Output custom favicon if (function_exists('woo_output_custom_favicon')) { woo_output_custom_favicon(); } // Output CSS from standarized styling options if (function_exists('woo_head_css')) { woo_head_css(); } // Output shortcodes stylesheet if (function_exists('woo_shortcode_stylesheet')) { woo_shortcode_stylesheet(); } // Output custom.css if (function_exists('woo_output_custom_css')) { woo_output_custom_css(); } do_action('woothemes_wp_head_after'); }
function woothemes_wp_head() { //Styles $style = ''; if (isset($_REQUEST['style'])) { // Sanitize requested value. $requested_style = strtolower(strip_tags(trim($_REQUEST['style']))); $style = $requested_style; } if ($style != '') { echo '<link href="' . get_bloginfo('template_directory') . '/styles/' . $style . '.css" rel="stylesheet" type="text/css" />' . "\n"; } else { $style = get_option('woo_alt_stylesheet'); if ($style != '') { // Sanitize value. $style = strtolower(strip_tags(trim($style))); echo '<link href="' . get_bloginfo('template_directory') . '/styles/' . $style . '" rel="stylesheet" type="text/css" />' . "\n"; } else { echo '<link href="' . get_bloginfo('template_directory') . '/styles/default.css" rel="stylesheet" type="text/css" />' . "\n"; } } // Favicon if (get_option('woo_custom_favicon') != '') { echo '<link rel="shortcut icon" href="' . get_option('woo_custom_favicon') . '"/>' . "\n"; } // Localization load_theme_textdomain('woothemes'); load_theme_textdomain('woothemes', get_template_directory() . '/lang'); if (function_exists('load_child_theme_textdomain')) { load_child_theme_textdomain('woothemes'); } // Output CSS from standarized options woo_head_css(); // Output shortcodes stylesheet if (function_exists("woo_shortcode_stylesheet") && get_option('framework_woo_disable_shortcodes') != "true") { woo_shortcode_stylesheet(); } // Custom.css insert echo '<link href="' . get_bloginfo('template_directory') . '/custom.css" rel="stylesheet" type="text/css" />' . "\n"; }
function woothemes_wp_head() { //Styles if (!isset($_REQUEST['style'])) { $style = ''; } else { $style = $_REQUEST['style']; } if ($style != '') { $GLOBALS['stylesheet'] = $style; echo '<link href="' . get_bloginfo('template_directory') . '/styles/' . $GLOBALS['stylesheet'] . '.css" rel="stylesheet" type="text/css" />' . "\n"; } else { $GLOBALS['stylesheet'] = get_option('woo_alt_stylesheet'); if ($GLOBALS['stylesheet'] != '') { echo '<link href="' . get_bloginfo('template_directory') . '/styles/' . $GLOBALS['stylesheet'] . '" rel="stylesheet" type="text/css" />' . "\n"; } else { echo '<link href="' . get_bloginfo('template_directory') . '/styles/default.css" rel="stylesheet" type="text/css" />' . "\n"; } } // Custom.css insert echo '<link href="' . get_bloginfo('template_directory') . '/custom.css" rel="stylesheet" type="text/css" />' . "\n"; // Favicon if (get_option('woo_custom_favicon') != '') { echo '<link rel="shortcut icon" href="' . get_option('woo_custom_favicon') . '"/>' . "\n"; } //Decode if (!isset($_REQUEST['decode'])) { $decode = 'false'; } else { $decode = $_REQUEST['decode']; } if ($decode == 'true') { echo '<meta name="generator" content="' . get_option('woo_settings_encode') . '" />'; } // Localization load_theme_textdomain('woothemes'); // Date format $GLOBALS['woodate'] = get_option('woo_date'); if ($GLOBALS['woodate'] == "") { $GLOBALS['woodate'] = "d. M, Y"; } // Output CSS from standarized options woo_head_css(); }
function woothemes_wp_head() { //Styles if (!isset($_REQUEST['style'])) { $style = ''; } else { $style = $_REQUEST['style']; } if ($style != '') { $GLOBALS['stylesheet'] = $style; echo '<link href="' . get_bloginfo('template_directory') . '/styles/' . $GLOBALS['stylesheet'] . '.css" rel="stylesheet" type="text/css" />' . "\n"; } else { $GLOBALS['stylesheet'] = get_option('woo_alt_stylesheet'); if ($GLOBALS['stylesheet'] != '') { echo '<link href="' . get_bloginfo('template_directory') . '/styles/' . $GLOBALS['stylesheet'] . '" rel="stylesheet" type="text/css" />' . "\n"; } else { echo '<link href="' . get_bloginfo('template_directory') . '/styles/default.css" rel="stylesheet" type="text/css" />' . "\n"; } } // Favicon if (get_option('woo_custom_favicon') != '') { echo '<link rel="shortcut icon" href="' . get_option('woo_custom_favicon') . '"/>' . "\n"; } // Localization load_theme_textdomain('woothemes'); // Date format (woodate not in use in new themes) $GLOBALS['woodate'] = get_option('date_format'); // Output CSS from standarized options woo_head_css(); // Output shortcodes stylesheet if (function_exists("woo_shortcode_stylesheet") && get_option('framework_woo_disable_shortcodes') != "true") { woo_shortcode_stylesheet(); } // Custom.css insert echo '<link href="' . get_bloginfo('template_directory') . '/custom.css" rel="stylesheet" type="text/css" />' . "\n"; }