Added image options, and fixed the fact that the category variable was an object and not an array (it's been referenced as an array this whole time). Unit test FAIL!
git-svn-id: http://svn.cleancode.org/svn/pickles@99 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
parent
1e371830d2
commit
6a66ed6e56
1 changed files with 17 additions and 5 deletions
|
@ -18,7 +18,7 @@
|
|||
* <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @author Joshua John Sherman <josh@phpwithpickles.org>
|
||||
* @copyright Copyright 2007, 2008 Joshua John Sherman
|
||||
* @copyright Copyright 2007, 2008, 2009 Joshua John Sherman
|
||||
* @link http://phpwithpickles.org
|
||||
* @license http://www.gnu.org/copyleft/lesser.html
|
||||
* @package PICKLES
|
||||
|
@ -66,11 +66,23 @@ class Display_RSS extends Display_Common {
|
|||
?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title><?=$channel['title'];?></title>
|
||||
<title><?=$channel->title;?></title>
|
||||
<link>http://<?=$_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];?></link>
|
||||
<description><?=$channel['description'];?></description>
|
||||
<category><?=$channel['category'];?></category>
|
||||
<language><?=$channel['language'] ? $channel['language'] : 'en-us';?></language>
|
||||
<description><?=$channel->description;?></description>
|
||||
<?php
|
||||
if (isset($channel->image)) {
|
||||
?>
|
||||
<image>
|
||||
<url><?=$channel->image;?></url>
|
||||
<title><?=$channel->title;?></title>
|
||||
<link>http://<?=$_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];?></link>
|
||||
</image>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<category><?=$channel->category;?></category>
|
||||
<language><?=isset($channel->language) ? $channel->language : 'en-us';?></language>
|
||||
<generator version="pre-beta 0.0.0">PICKLES (http://phpwithpickles.org)</generator>
|
||||
<?php
|
||||
if (is_array($items)) {
|
||||
foreach ($items as $key => $item) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue