本文整理汇总了PHP中Requirements::ieThemedCSS方法的典型用法代码示例。如果您正苦于以下问题:PHP Requirements::ieThemedCSS方法的具体用法?PHP Requirements::ieThemedCSS怎么用?PHP Requirements::ieThemedCSS使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Requirements
的用法示例。
在下文中一共展示了Requirements::ieThemedCSS方法的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");
}