summaryrefslogtreecommitdiff
path: root/templates/list_topics.tpl
blob: f440347decb1f77a34a7b87a73878fe6ebe3955c (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
{* $Header: /cvsroot/bitweaver/_bit_articles/templates/list_topics.tpl,v 1.2 2005/09/03 08:26:45 squareing Exp $ *}
{strip}
<div class="floaticon">{bithelp}</div>

<div class="listing articles">
	<div class="header">
		<h1>{tr}Article Topics{/tr}</h1>
	</div>

	<div class="body">
		<ul class="data">
			{foreach from=$topics item=topic}
				<li class="item {cycle values='odd,even'}">
					<h2><a href="{$smarty.const.ARTICLES_PKG_URL}index.php?topic_id={$topic.topic_id}">{$topic.topic_name}</a></h2>

					{if $topic.has_topic_image == 'y'}
						<a href="{$smarty.const.ARTICLES_PKG_URL}index.php?topic_id={$topic.topic_id}">
							<img class="thumb" alt="{tr}topic image{/tr}" src="{$topic.topic_image_url}" />
						</a>
					{/if}

					<p>{tr}This Topic contains {$topic.num_articles} article(s){/tr}</p>

					<div class="clear"></div>
				</li>
			{foreachelse}
				<li class="norecords">
					{tr}No records found{/tr}
				</li>
			{/foreach}
		</ul>
	</div><!-- end .body -->
</div><!-- end .admin -->
{/strip}