Пример #1
0
 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");
 }