static function head($theme)
 {
     if ($theme->item()) {
         $url = media_rss::item_feed($theme->item());
     } else {
         if ($theme->tag()) {
             $url = media_rss::tag_feed($theme->tag());
         }
     }
     if (!empty($url)) {
         return "<link rel=\"alternate\" type=\"" . rest::RSS . "\" href=\"{$url}\" />";
     }
 }
 static function head($theme)
 {
     if (module::is_installed("media_rss")) {
         if ($theme->item()) {
             $url = media_rss::item_feed($theme->item());
         } else {
             if ($theme->tag()) {
                 $url = media_rss::tag_feed($theme->tag());
             }
         }
         // Polar Rose doesn't understand relative URLs.  Hack around that until they fix it.
         $url = url::abs_site(substr($url, strpos($url, "index.php") + 10));
         return "<script type=\"text/javascript\">" . "var polarroseconfig = {" . "partner: 'gallery3'," . "rss: '{$url}'," . "insert: 'gPolarRose'," . "optin: ''," . "theme: 'dark'" . "}</script>" . "<script type=\"text/javascript\" " . "src=\"http://cdn.widget.polarrose.com/widgetanddashboard/" . "polarrosewidgetanddashboard.js\">" . "</script>";
     }
 }