{* * 2018 Anvanto * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author Anvanto (anvantoco@gmail.com) * @copyright 2018 anvanto.com * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file="page.tpl"} {if isset($smarty.get.view)} {if $smarty.get.view != 'nocolumn'} {block name="left_column"} {if $config->get('show_in_blog')}
{Module::getInstanceByName('anblog')->hookDisplayLeftColumn(array()) nofilter}
{/if} {/block} {/if} {else} {block name="left_column"} {if $config->get('show_in_blog')}
{Module::getInstanceByName('anblog')->hookDisplayLeftColumn(array()) nofilter}
{/if} {/block} {/if} {block name="content_wrapper"} {if !$config->get('show_in_blog')}
{/if}
{if $config->get('show_in_blog')}
{/if} {if !$config->get('show_in_blog')}

{l s='Blog' d='Shop.Theme.Global'}

{/if} {if isset($no_follow) AND $no_follow} {assign var='no_follow_text' value='rel="nofollow"'} {else} {assign var='no_follow_text' value=''} {/if} {************************************************} {if isset($filter.type)} {if $filter.type=='tag'}

{l s='Filter Blogs By Tag' d='Shop.Theme.Global'} : {$filter.tag|escape:'html':'UTF-8'}

{elseif $filter.type=='author'} {if isset($filter.id_employee)}

{l s='Filter Blogs By Blogger' d='Shop.Theme.Global'} : {$filter.employee->firstname|escape:'html':'UTF-8'} {$filter.employee->lastname|escape:'html':'UTF-8'}

{else}

{l s='Filter Blogs By Blogger' d='Shop.Theme.Global'} : {$filter.author_name|escape:'html':'UTF-8'}

{/if} {/if} {/if} {************************************************} {if isset($category) && $category->id_anblogcat && $category->active} {if $config->get('listing_show_categoryinfo',1)}

{$category->title|escape:'html':'UTF-8'}

{if $category->image}
{$category->content_text nofilter}{* HTML form , no escape necessary *}
{else}
{$category->content_text nofilter}{* HTML form , no escape necessary *}
{/if}
{/if} {/if} {************************************************} {if $config->get('show_in_blog')} {if isset($smarty.get.view) and $smarty.get.view == 'nocolumn'}
{/if}

{l s='Blog' d='Shop.Theme.Global'}

{/if} {if count($leading_blogs)>0}
{foreach from=$leading_blogs item=blog name=leading_blog} {if isset($smarty.get.view) and $smarty.get.view != 'nocolumn'} {if $smarty.get.view == 'type1'}
{include file="module:anblog/views/templates/front/miniature-post-type1.tpl"}
{elseif $smarty.get.view == 'type2'}
{include file="module:anblog/views/templates/front/miniature-post-type2.tpl"}
{elseif $smarty.get.view == 'type3'}
{include file="module:anblog/views/templates/front/miniature-post-type3.tpl"}
{/if} {else} {if $config->get('item_posts_type') == 'Type 1'}
{include file="module:anblog/views/templates/front/miniature-post-type1.tpl"}
{elseif $config->get('item_posts_type') == 'Type 2'}
{include file="module:anblog/views/templates/front/miniature-post-type2.tpl"}
{else}
{include file="module:anblog/views/templates/front/miniature-post-type3.tpl"}
{/if} {/if} {/foreach}
{include file="module:anblog/views/templates/front/_pagination.tpl"}
{else}
{l s='Sorry, no posts has been posted in the blog yet, but it will be done soon.' d='Shop.Theme.Global'}
{/if}
{/block}