From: <var...@us...> - 2010-03-25 14:50:16
|
Revision: 7308 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7308&view=rev Author: vargenau Date: 2010-03-25 14:50:10 +0000 (Thu, 25 Mar 2010) Log Message: ----------- New argument for RssFeedPlugin: titleonly Modified Paths: -------------- trunk/lib/plugin/RssFeed.php trunk/pgsrc/Help%2FRssFeedPlugin Modified: trunk/lib/plugin/RssFeed.php =================================================================== --- trunk/lib/plugin/RssFeed.php 2010-03-04 15:15:46 UTC (rev 7307) +++ trunk/lib/plugin/RssFeed.php 2010-03-25 14:50:10 UTC (rev 7308) @@ -44,11 +44,12 @@ // Establish default values for each of this plugin's arguments. function getDefaultArguments() { - return array('feed' => "", - 'description' => "", - 'url' => "", //"http://phpwiki.org/RecentChanges?format=rss", - 'maxitem' => 0, - 'debug' => false, + return array('feed' => "", + 'description' => "", + 'url' => "", //"http://phpwiki.org/RecentChanges?format=rss", + 'maxitem' => 0, + 'titleonly' => false, + 'debug' => false, ); } @@ -103,7 +104,7 @@ $cell_authordate = HTML::div(array('class'=> 'authordate'), $cell_author, HTML::raw(" - "), $cell_pubDate); $cell->pushContent($cell_authordate); - if (!empty($item['description'])) + if ((!$titleonly) && (!empty($item['description']))) $cell->pushContent(HTML::div(array('class'=> 'itemdesc'), HTML::raw($item['description']))); $html->pushContent($cell); Modified: trunk/pgsrc/Help%2FRssFeedPlugin =================================================================== --- trunk/pgsrc/Help%2FRssFeedPlugin 2010-03-04 15:15:46 UTC (rev 7307) +++ trunk/pgsrc/Help%2FRssFeedPlugin 2010-03-25 14:50:10 UTC (rev 7308) @@ -1,4 +1,4 @@ -Date: Mon, 1 Jun 2009 15:05:05 +0000 +Date: Thu, 25 Mar 2010 15:45:58 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124) X-Rcs-Id: $Id$ Content-Type: application/x-phpwiki; @@ -38,7 +38,11 @@ |- | **maxitem** | Max. number of entries (0 = unlimited) -| ~0 +| 0 +|- +| **titleonly** +| If //true//, do not display item body (boolean) +| false |} == Examples This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |