diff --git a/inc/rss.php b/inc/rss.php index 51896bc..d69db61 100755 --- a/inc/rss.php +++ b/inc/rss.php @@ -13,8 +13,9 @@ class Feed extends PhpObject { private $asDesc; private $asItems; + private $sCssFile; - public function __construct($asDesc, $asItems=array()) + public function __construct($asDesc, $asItems=array(), $sCssFile='') { parent::__construct(__CLASS__, Settings::DEBUG); if(!array_key_exists('link', $asDesc)) @@ -23,6 +24,7 @@ class Feed extends PhpObject { } $this->asDesc = $asDesc; array_walk($asItems, array($this, 'addItem')); + $this->sCssFile = $sCssFile; } public function addItem($asItem) @@ -72,6 +74,7 @@ class Feed extends PhpObject { //Global Feed $sFeed = ''; + if($this->sCssFile!='') $sFeed .= "\n".'sCssFile.'"?>'; $sFeed .= self::getHtml(self::getHtml($sRssFeedHeader.$sItems, 'channel'), 'rss', '', '', array('version'=>'2.0', 'xmlns:atom'=>'http://www.w3.org/2005/Atom')); return $sFeed;