diff options
| author | wjames5 <will@tekimaki.com> | 2007-04-05 16:19:34 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-04-05 16:19:34 +0000 |
| commit | e7714e8bb0a4226bec5471b4d8caf453c91709ad (patch) | |
| tree | acec3b434a1a65911ad4d89d2efc42a711f993de /modules | |
| parent | 3ddd19c479b51fb3c339d89113093eeb896bac26 (diff) | |
| download | rss-e7714e8bb0a4226bec5471b4d8caf453c91709ad.tar.gz rss-e7714e8bb0a4226bec5471b4d8caf453c91709ad.tar.bz2 rss-e7714e8bb0a4226bec5471b4d8caf453c91709ad.zip | |
add param to hide article desc
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_rss_feed.php | 5 | ||||
| -rw-r--r-- | modules/mod_rss_feed.tpl | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/modules/mod_rss_feed.php b/modules/mod_rss_feed.php index 79ebf80..d154c9f 100644 --- a/modules/mod_rss_feed.php +++ b/modules/mod_rss_feed.php @@ -18,8 +18,11 @@ if( @BitBase::verifyId( $module_params['id'] ) ) { $rssdata = $rsslib->get_rss_module_content( $module_params['id'] ); $items = $rsslib->parse_rss_data( $rssdata, $module_params['id'] ); - + $gBitSmarty->assign( 'modRSSItems', $items ); + if (!empty($module_params['desc']) && $module_params['desc'] == 'n'){ + $gBitSmarty->assign( 'hideDesc', TRUE ); + } }else{ //todo assign this as an error //$repl = '<b>rss can not be found, id must be a number</b>'; diff --git a/modules/mod_rss_feed.tpl b/modules/mod_rss_feed.tpl index 1a1f84d..c93591c 100644 --- a/modules/mod_rss_feed.tpl +++ b/modules/mod_rss_feed.tpl @@ -8,7 +8,7 @@ <div class="date">{$modRSSItems[ix].pubdate} <br /> {if $modRSSItems[ix].author}by {$modRSSItems[ix].author}{/if}</div> - {$modRSSItems[ix].description} + {if !$hideDesc}{$modRSSItems[ix].description} {/if} <a class="more" href="{$modRSSItems[ix].link}">Read more</a> </li> {sectionelse} |
