Horde_Themes::getFeedXsl PHP Method

getFeedXsl() public static method

As of now, this file MUST live in horde/themes/default/feed-rss.xsl.
public static getFeedXsl ( ) : string
return string Path to the feed file.
    public static function getFeedXsl()
    {
        return $GLOBALS['registry']->get('themesuri', 'horde') . '/default/feed-rss.xsl';
    }

Usage Example

Exemplo n.º 1
0
 if (!isset($imgs)) {
     $imgs = array();
     $cnt = count($images);
     for ($i = 0; $i < $cnt; ++$i) {
         $imgs[$i]['link'] = Ansel::getUrlFor('view', array('view' => 'Image', 'gallery' => $images[$i]->gallery, 'image' => $images[$i]->id), true);
         $imgs[$i]['filename'] = $images[$i]->filename;
         $imgs[$i]['caption'] = $images[$i]->caption;
         $imgs[$i]['url'] = htmlspecialchars(Ansel::getImageUrl($images[$i]->id, 'screen', true));
         $imgs[$i]['type'] = $images[$i]->getType('screen');
         $imgs[$i]['author'] = $author;
         $imgs[$i]['thumb'] = htmlspecialchars(Ansel::getImageUrl($images[$i]->id, 'thumb', true));
         $imgs[$i]['latitude'] = $images[$i]->lat;
         $imgs[$i]['longitude'] = $images[$i]->lng;
     }
 }
 $xsl = Horde_Themes::getFeedXsl();
 $stream_name = htmlspecialchars($params['name']);
 $stream_desc = htmlspecialchars($params['desc']);
 $stream_updated = htmlspecialchars(date('r', $params['last_modified']));
 $stream_official = htmlspecialchars($params['link']);
 $image_url = htmlspecialchars($params['image_url']);
 $image_link = htmlspecialchars($params['image_link']);
 $image_alt = htmlspecialchars($params['image_alt']);
 $ansel = 'Ansel ' . $registry->getVersion('ansel') . ' (http://www.horde.org/)';
 if ($stream_type != 'all' && $type != 'rss2') {
     $getparams = array('stream_type' => $stream_type, 'type' => $type);
     if (isset($id)) {
         $getparams['id'] = $id;
     }
 } else {
     $getparams = array();
All Usage Examples Of Horde_Themes::getFeedXsl