azett 52bf429a01 Replaced Smarty 2.6.31-dev with v 4.0.4, keeping the FP-specific Smarty plugins.
Updated calls to current Smarty API (register_function()/register_modifier()/register_block() -> registerPlugin(); assign_by_ref() -> assignByRef()).
Fixed file includes in templates with quotes.
Removed SmartyValidate.class.php includes.

Still work in progress as some errors still appear!
2022-01-23 15:02:33 +01:00

61 lines
1.2 KiB
Smarty
Executable File

{include file="header.tpl"}
<div id="main">
{entry_block}
{entry}
{include file="entry-default.tpl"}
{comment_block}
<ol id="comments">
{comment}
<li id="{$id}" {$loggedin|notempty:"class=\"comment-admin\""}>
<strong class='comment-name'>
{*
using this tag combo, the name is displayed as a link only
if user entered a URL.
Syntax is quite intuitive:
"if $url is not empty, show $name between a tags,
else default fallback on displaying plain $name"
*}
{$url|notempty:"<a href=\"$url\" rel=\"nofollow\" title=\"Visit $url\">$name</a>"|default:$name}
</strong>
{include file="shared:commentadminctrls.tpl"} {* this shows edit/delete links*}
<p class="date">
<a href="{$entryid|link:comments_link}#{$id}" title="Permalink to {$name}'s comment">{$date|date_format:"%A, %B %e, %Y - %H:%M:%S"}</a>
</p>
{$content|tag:comment_text}
</li>
{/comment}
</ol>
{/comment_block}
{/entry}
<div class="navigation">
{nextpage}{prevpage}
</div>
{/entry_block}
{include file="shared:comment-form.tpl"}
</div>
{include file="widgets.tpl"}
<hr />
{include file="footer.tpl"}