{* * 2007-2015 PrestaShop * * 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 PrestaShop SA * @copyright 2007-2017 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {block name='head'} {include file='_partials/head.tpl'} {/block} {hook h='displayAfterBodyOpeningTag'}
{block name='product_activation'} {include file='catalog/_partials/product-activation.tpl'} {/block} {block name='notifications'} {include file='_partials/notifications.tpl'} {/block}
{block name='breadcrumb'} {include file='_partials/breadcrumb.tpl'} {/block} {if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='left'} {block name="left_column"}
{hook h="blogSidebar"}
{/block} {/if} {block name="content_wrapper"}
{block name="content"} {if isset($blog_post.enabled) && $blog_post.enabled}
{if Configuration::get('PS_LOGO')}
{/if}
{if $blog_post.image}
{if $enable_slideshow}{/if} {if $enable_slideshow}{/if}
{/if}
{if $blog_post}

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

{if $show_views} {$blog_post.click_number|intval} {if $blog_post.click_number != 1} {l s='Views' mod='ybc_blog_free'} {else} {l s='View' mod='ybc_blog_free'} {/if} {/if} {if $allow_like} {$blog_post.likes|intval} {l s='Liked' mod='ybc_blog_free'} {/if} {if $allow_rating && $everage_rating}
{if $total_review} {$total_review|intval} {if $total_review != 1} {l s='Reviews' mod='ybc_blog_free'} {else} {l s='Review' mod='ybc_blog_free'} {/if} {/if}
{l s='Rating: ' mod='ybc_blog_free'} {for $i = 1 to $everage_rating}
{/for} {if $everage_rating<5} {for $i = $everage_rating + 1 to 5}
{/for} {/if} {number_format((float)$everage_rating, 1, '.', '')|escape:'html':'UTF-8'}
{/if} {if $show_date} {if !$date_format}{assign var='date_format' value='F jS Y'}{/if} {/if} {if $show_author && ($blog_post.firstname || $blog_post.lastname)} {/if}
{if $use_google_share || $use_facebook_share || $use_twitter_share}
{if $use_facebook_share}
{literal} {/literal}
{/if} {if $use_google_share}
{/if} {if $use_twitter_share}
{literal} {/literal}
{/if}
{/if}
{if $blog_post.description} {$blog_post.description nofilter} {else} {$blog_post.short_description nofilter} {/if}
{if ($show_tags && $blog_post.tags) || ($show_categories && $blog_post.categories)}
{if $show_tags && $blog_post.tags}
{assign var='ik' value=0} {assign var='totalTag' value=count($blog_post.tags)} {if $totalTag > 1}{l s='Tags' mod='ybc_blog_free'} {else}{l s='Tag' mod='ybc_blog_free'}{/if}: {foreach from=$blog_post.tags item='tag'} {assign var='ik' value=$ik+1} {ucfirst($tag.tag)|escape:'html':'UTF-8'}{if $ik < $totalTag}, {/if} {/foreach}
{/if} {if $show_categories && $blog_post.categories}
{assign var='ik' value=0} {assign var='totalCat' value=count($blog_post.categories)}
{l s='Posted in' mod='ybc_blog_free'}: {foreach from=$blog_post.categories item='cat'} {assign var='ik' value=$ik+1} {ucfirst($cat.title)|escape:'html':'UTF-8'}{if $ik < $totalCat}, {/if} {/foreach}
{/if}
{/if} {if $display_related_products && $blog_post.products} {/if}
{if $allowComments}

{l s='Leave a comment' mod='ybc_blog_free'}

{if $hasLoggedIn || $allowGuestsComments}
{if !$hasLoggedIn}
{/if}
{if $allow_rating || $use_capcha}
{if $allow_rating}
{if $default_rating > 0 && $default_rating <5} {for $i = 1 to $default_rating}
{/for} {for $i = $default_rating + 1 to 5}
{/for} {else} {for $i = 1 to 5}
{/for} {/if}
{/if} {if $use_capcha}
{*l s='Refresh code'*}
{/if}
{/if}
{if $blog_errors && is_array($blog_errors)}
    {foreach from=$blog_errors item='error'}
  • {$error|escape:'html':'UTF-8'}
  • {/foreach}
{/if} {if $blog_success}

{$blog_success|escape:'html':'UTF-8'}

{/if}
{else}

{l s='Log in to post comments' mod='ybc_blog_free'}

{/if}
{if count($comments)}

{l s='Comments ' mod='ybc_blog_free'}

    {foreach from=$comments item='comment'}
  • {$comment.subject|escape:'html':'UTF-8'}
    {if $comment.name}{l s='By : ' mod='ybc_blog_free'}{ucfirst($comment.name)|escape:'html':'UTF-8'}{/if} {l s='On' mod='ybc_blog_free'} {date($date_format,strtotime($comment.datetime_added))|escape:'html':'UTF-8'} {if $allow_rating && $comment.rating > 0}
    {l s='Rating: ' mod='ybc_blog_free'}
    {for $i = 1 to $comment.rating}
    {/for} {if $comment.rating<5} {for $i = $comment.rating + 1 to 5}
    {/for} {/if} {number_format((float)$comment.rating, 1, '.', '')|escape:'html':'UTF-8'}
    {/if} {if $allow_report_comment} {if !($reportedComments && is_array($reportedComments) && in_array($comment.id_comment, $reportedComments))} {/if} {/if} {if $comment.comment}

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

    {/if} {if $comment.reply}

    {if $comment.elastname || $comment.efirstname} {l s='Replied by : ' mod='ybc_blog_free'} {ucfirst($comment.efirstname)|escape:'html':'UTF-8'} {ucfirst($comment.elastname)|escape:'html':'UTF-8'} {/if} {$comment.reply|escape:'html':'UTF-8'}

    {/if}
  • {/foreach}
{/if} {/if}
{else}

{l s='No posts found' mod='ybc_blog_free'}

{/if} {if $blog_post.related_posts} {/if}
{else}

{l s='This blog post is not available' mod='ybc_blog_free'}

{/if} {/block}
{/block} {if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='right'} {block name="right_column"}
{hook h="blogSidebar"}
{/block} {/if}
{block name='javascript_bottom'} {include file="_partials/javascript.tpl" javascript=$javascript.bottom} {/block} {hook h='displayBeforeBodyClosingTag'}