Article view
{* Article *}
{init_article name="article" id=$id}
<h1>{$article->buttons}{if $article->show_headline}{$article->title}{/if}</h1>
{if $article->lead}<p>{$article->lead}</p>{/if}
{if $article->body}<p>{$article->body}</p>{/if}
{* Object commenting *}
{if $article->forum_allowed}
{* Article comments *}
{init_messages name="messages" parent=$id order="objekt_id asc"}
{if $messages|@sizeof}<h2>Comments</h2><hr>{/if}
<table cellpadding="2" cellspacing="2" width="100%">
{foreach from=$messages item="message"}
<tr class="{cycle values="dark, light"}">
<td>
{$message->buttons}{$message->author} <span class="Date">{$message->date}</span>
<p>{$message->body|parse_emoticons|parse_html}</p>
</td>
</tr>
{/foreach}
</table>
{* /Article comments *}
{* New comment form *}
<h2>{sysword word="new comment" type="saurus4"}</h2><hr>
<form action="add_comment.php" method="POST" name="forumPostForm" id="forumPostForm">
<table cellpadding="0" cellspacing="0">
<tr>
<td><label for="nimi" {sysword word="name" type="saurus4"}</label></td>
<td><input type="text" name="nimi" id="nimi" value="{$userdata->name}">*</td>
</tr>
<tr>
<td><label for="email" {sysword word="e-mail" type="saurus4"}</label></td>
<td><input type="text" name="email" id="email" value="{$userdata->all.email}"></td>
</tr>
<tr>
<td><label for="text" {sysword word="comment" type="saurus4"}</label></td>
<td><textarea name="text" id="text"></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="checkbox" name="on_peida_email" value="1"> <label for="on_peida_email">{sysword word="hide e-mail" type="saurus4"}</label></td>
</tr>
<tr>
<td></td>
<td><input type="checkbox" name="on_saada_email" value="1"> <label for="on_saada_email" {sysword word="send replies" type="saurus4"}</label></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="{sysword word="send" type="saurus4"}"></td>
</tr>
</table>
<input type="hidden" name="id" value="{$id}">
</form>
{* /New comment form *}
{/if}
RSS