summaryrefslogtreecommitdiff
path: root/templates/print_article.tpl
blob: 68e7fb01287adfd6bbaac3dbb4bb187c77e59871 (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
36
37
38
39
40
41
42
43
44
{* $Header$ *}
{* Index we display a wiki page here *}

{include file="bitpackage:kernel/header.tpl"}
<div id="main">
	<div class="articletitle">
		<span class="titlea">{$title}</span><br />
		<span class="titleb">{tr}By:{/tr}{$author_name} {tr}on:{/tr}{$publish_date|bit_short_datetime} ({$reads} {tr}reads{/tr})</span>
	</div> {* end articletitle *}
	<br />

	<div class="articleheading">
		<table cellpadding="0" cellspacing="0">
			<tr><td valign="top">
				{if $use_image eq 'y'}
					{if $hasImage eq 'y'}
						<img alt="{tr}Article image{/tr}" border="0" src="article_image.php?id={$article_id}" />
					{else}
						<img alt="{tr}Topic image{/tr}" border="0" src="topic_image.php?id={$topic_id}" />
					{/if}
				{else}
					<img alt="{tr}Topic image{/tr}" border="0" src="topic_image.php?id={$topic_id}" />
				{/if}
			</td><td valign="top">
				<span class="articleheading">{$parsed_heading}</span>
			</td></tr>
		</table>
	</div> {* end articleheading *}
	<div class="articletrailer">
		({$size} bytes
			{if $gContent->hasUpdatePermission()}
				[<a href="{$smarty.const.ARTICLES_PKG_URL}edit.php?article_id={$article_id}">{tr}Edit{/tr}</a>] 
			{/if}
			{if $gContent->hasUserPermission( 'p_articles_remove' )}
				[<a href="{$smarty.const.ARTICLES_PKG_URL}list.php?remove={$article_id}">{tr}Remove{/tr}</a>]
			{/if}
		)
	</div> {* end articletrailer *}
	<div class="articlebody">
		{$parsed_body}
	</div> {* end articlebody *}
</div> {* end main *}

{include file="bitpackage:kernel/footer.tpl"}