44 lines
2.0 KiB
Smarty
44 lines
2.0 KiB
Smarty
{*
|
|
* 2007-2017 Amazzing
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
|
*
|
|
* @author Amazzing <mail@amazzing.ru>
|
|
* @copyright 2007-2017 Amazzing
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
*
|
|
*}
|
|
|
|
<section class="blog blocks {$hook_name|escape:'html':'UTF-8'}{if $is_column_hook} column-hook{/if}">
|
|
{foreach $blocks as $block}
|
|
{$settings = $block.settings}
|
|
{$resource_type = current(explode('_', $settings.type))}
|
|
<div class="ab block {$settings.display_type|escape:'html':'UTF-8'}-view{if !empty($settings.compact)} compact{/if}{if !empty($settings.class)} {$settings.class|escape:'html':'UTF-8'}{/if}" data-id="{$block.id_block|intval}"{if !empty($block.encoded_carousel_settings)} data-carousel-settings="{$block.encoded_carousel_settings|escape:'html':'UTF-8'}"{/if}>
|
|
<div class="block-title{if $is_column_hook} title_block{/if}">
|
|
<h2>{$block.title|escape:'html':'UTF-8'}</h2>
|
|
{if $resource_type == 'post' && !$settings.type|strstr:'related' && !empty($settings.all_link)}
|
|
{/if}
|
|
</div>
|
|
<div class="{if $is_column_hook && $settings.display_type != 'carousel'}block_content{/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}
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
{if $resource_type == 'post' && !$settings.type|strstr:'related' && !empty($settings.all_link)}
|
|
<div class="blog-block-viewall-link">
|
|
<a class="block-viewall" href="{$all_link|escape:'html':'UTF-8'}" title="{l s='Go to blog' mod='amazzingblog'}">{l s='Go to blog' mod='amazzingblog'}</a>
|
|
</div>
|
|
{/if}
|
|
</section>
|
|
{* since 1.3.0 *}
|