summaryrefslogtreecommitdiff
path: root/modules/mod_rss_feed.tpl
blob: 43e157b6c540505222a81493a5ec52b1094b779b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{strip}
{if $gBitSystem->isPackageActive('rss')}
	{bitmodule title="$moduleTitle" name="rss_feed"}
		<ul class="rss">
			{section name=ix loop=$modRSSItems max=$max}
				<li class="{cycle values="odd,even"}">
					<div class="title"><a href="{$modRSSItems[ix]->get_permalink()}">{$modRSSItems[ix]->get_title()}</a></div>
					<div class="date">{$modRSSItems[ix]->get_date('j M Y | g:i a T')}
					<br />
					{if $modRSSItems[ix]->get_author()}
					{assign var='author' value=$modRSSItems[ix]->get_author()}
						{if $author->get_name()}
							by {$author->get_name()}
						{elseif $author->get_email()}
							by {$author->get_email()}
						{/if}
					{/if}
					{assign var='source' value=$modRSSItems[ix]->get_feed()} at <a href="{$source->get_link()}">{$source->get_title()}</a>
					</div>
					{if !$hideDesc}{$modRSSItems[ix]->get_description()}&nbsp;{/if}
					{if $short_desc[ix]}{$short_desc[ix]}&nbsp;{/if}
					<a class="more" href="{$modRSSItems[ix]->get_link()}">{biticon iname=go-next iexplain="Read More"}</a>
				</li>
			{sectionelse}
				<li></li>
			{/section}
		</ul>
	{/bitmodule}
{/if}
{/strip}

{*
$story = $item->get_feed(); 
print_r( "<a href='" . $item->get_permalink() . "'>" . $item->get_title() . "</a>" . " | " . $item->get_date('j M Y | g:i a T') . " | Source: " . $story->get_title() );
*}