{foreach from=$item->list item='row' name='posts'}
{php}
$row = $this->_tpl_vars['row'];
$viewLink = $this->_tpl_vars['item']->viewAlias . '/';
$viewLink .= (empty($row['alias'])) ? $row['id'] : htmlspecialchars($row['alias']);
$this->assign('viewLink', $viewLink);
{/php}
{if $row.excerpt && $row.excerpt|trim|strlen}
{$row.excerpt|trim|htmlspecialchars|nl2br}
{*
Read more*}
{else}
{if $row.password}
This post is protected with password |
View post
{else}
{$row.content}
{/if}
{/if}
{foreachelse}
No Posts
{/foreach}
{if $item->paginator}{include file="ViewController/list-paginator.tpl"|SMGetTemplate paginator = $item->paginator}{/if}