本文整理匯總了PHP中Requirements::customHeadTags方法的典型用法代碼示例。如果您正苦於以下問題:PHP Requirements::customHeadTags方法的具體用法?PHP Requirements::customHeadTags怎麽用?PHP Requirements::customHeadTags使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Requirements
的用法示例。
在下文中一共展示了Requirements::customHeadTags方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: frontend_requirements
public function frontend_requirements()
{
// Add RSS feed if enabled
if (Kohana::config("settings.allow_feed")) {
Requirements::customHeadTags("<link rel=\"alternate\" type=\"application/rss+xml\" href=\"" . url::site('feed') . "\" title=\"RSS2\" />", 'rss-feed');
}
// Theme CSS
foreach (self::$theme_css as $css) {
Requirements::css($css);
}
Requirements::combine_files("theme_" . Kohana::config("settings.site_style") . ".css", self::$theme_css);
// Theme JS
foreach (self::$theme_js as $js) {
Requirements::js($js);
}
Requirements::combine_files("theme_" . Kohana::config("settings.site_style") . ".js", self::$theme_js);
Requirements::ieThemedCSS("lte IE 7", "iehacks.css");
Requirements::ieThemedCSS("IE 7", "ie7hacks.css");
Requirements::ieThemedCSS("IE 6", "ie6hacks.css");
}