Comments modulis

Lietuviškas CMS Made Simple forumas

Moderator: Augustas

Post Reply
Airidas
Forum Members
Forum Members
Posts: 46
Joined: Sun Mar 21, 2010 1:32 pm

Comments modulis

Post by Airidas »

Sveiki,

Noriu, kad komentaru modulis naujausius komentarus mestu ne i apacia o i virsu.
Nagrineju template bet nelabai iseina ka padaryt, gal specai padetu pakeist...

Code: Select all

<div id="comments">
<!-- Start Comments Display Template -->

{if $items}
<ul>
{/if}
{foreach from=$items item=entry}
	<li class="{$entry->cssclass}">{if $entry->comment_title}<strong>{$entry->comment_title}</strong><br />{/if}
	{if $entry->comment_author}
            {* note, one could use the $entry->author_email field here, and the smarty mailto tag to generate a mailto link to this author, but it is not done by default. *}
            {$entry->comment_author} - <a href mailto:{$entry->author_email}>{$entry->author_email}</a>
        {/if}
	{if $entry->author_website}
            <a href="{$entry->author_website}" target="_blank">{$entry->author_website}</a> - 
	{/if}
	:<br />
	{$entry->comment_data}
	</li>
{/foreach}
{if $items}
</ul>
{/if}

{if FALSE == $errormessage}
{startExpandCollapse id="name" title="$addacomment"}
{else}
{$errormessage}
{/if}




{$startform}
{$image}
{if $spamprotect}
{$spamprotectimage}<br />
{/if}

<table>
{if $spamprotect}
	<tr>
		<td>{$entercodetxt}:</td>
		<td>{$inputentercode}</td>
	</tr>
{/if}
	
	<tr>
		<td>{$yournametxt}(*):</td>
		<td>{$inputyourname}</td>
	</tr>
	<tr>
		<td>{$emailtxt}:</td>
		<td>{$inputemail}</td>
	</tr>
	
	<tr>
		<td>{$commenttxt}(*):</td>
		<td>{$inputcomment}</td>
	</tr>
	<tr>
		<td> </td>
		<td>{$submit}<br /> {$cancel}</td>
	</tr>
</table>

{$endform}
{if FALSE == $errormessage}
{stopExpandCollapse} 
{/if}

<!-- End Comments Display Template -->
</div>
Pagarbiai,
Airidas
Post Reply

Return to “Lithuanian - Lietuviškai”