Post List

{{if count($data)>0}} {{if $total_count>0}}
{{assign var="last_item" value=$showing_from+$items_per_page}} {{if $last_item>$total_count}} {{assign var="last_item" value=$total_count}} {{/if}} Showing {{$showing_from+1}} - {{$last_item}} of {{$total_count}} posts
{{/if}}
{{foreach name=data item=item from=$data}}

{{$item.title|truncate:23:"...":true}}

{{assign var="added_date" value=$item.post_date}}
Added: {{$added_date|date_format:"%text"}}
{{strip}} {{if $item.rating>0}}{{if $item.rating<=0.5}}1{{else}}1{{/if}}{{else}}1{{/if}} {{if $item.rating>1}}{{if $item.rating<=1.5}}2{{else}}2{{/if}}{{else}}2{{/if}} {{if $item.rating>2}}{{if $item.rating<=2.5}}3{{else}}3{{/if}}{{else}}3{{/if}} {{if $item.rating>3}}{{if $item.rating<=3.5}}4{{else}}4{{/if}}{{else}}4{{/if}} {{if $item.rating>4}}{{if $item.rating<=4.5}}5{{else}}5{{/if}}{{else}}5{{/if}} {{/strip}}
{{/foreach}}
{{else}}
There are no posts in the list.
{{/if}}