コード例 #1
0
 /**
  * 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');
 }
コード例 #2
0
 public function wfs_wp_head()
 {
     if (function_exists('woo_shortcode_stylesheet')) {
         woo_shortcode_stylesheet();
     }
 }
コード例 #3
0
ファイル: admin-setup.php プロジェクト: aozora/arashi
 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";
 }
コード例 #4
0
ファイル: admin-setup.php プロジェクト: juslee/e27
 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";
 }