{* * 2007-2017 Amazzing * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * * @author Amazzing * @copyright 2007-2017 Amazzing * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * *}
{foreach $blocks as $block} {$settings = $block.settings} {$resource_type = current(explode('_', $settings.type))}

{$block.title|escape:'html':'UTF-8'}

{if $resource_type == 'post' && !$settings.type|strstr:'related' && !empty($settings.all_link)} {l s='View all' mod='amazzingblog'} {/if}
{if $resource_type == 'post'} {if $settings.display_type == 'presentation'} {include file= $blog->getTemplatePath('post-list-presentation.tpl') posts = $block.items settings = $settings} {else} {include file= $blog->getTemplatePath('post-list.tpl') posts = $block.items settings = $settings no_pagination = true} {/if} {else} {include file= $blog->getTemplatePath('item-list.tpl') items = $block.items settings = $settings} {/if}
{/foreach}
{* since 1.3.0 *}