{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.image}
{html_image_fs name = $row.image method = $item->config.image.resizeMethod width = $item->config.image.width height = $item->config.image.height alt = $row.title title = $row.excerpt|default:$row.title href = $viewLink itemprop = "image" }
{/if}
{if $row.excerpt && $row.excerpt|trim|strlen} {$row.excerpt|trim|htmlspecialchars|nl2br} {else} {$row.content|strip_tags|trim|truncate:300} {/if}
{foreachelse}
No Posts
{/foreach}
{if $item->paginator}{include file="ViewController/list-paginator.tpl"|SMGetTemplate paginator = $item->paginator}{/if}