first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,153 @@
{*
* 2007-2017 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 <contact@prestashop.com>
* @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
*}
{extends file="helpers/form/form.tpl"}
{block name="field"}
{if $input.type != 'blog_categories' && $input.type != 'products_search' && $input.name !='url_alias'}
{$smarty.block.parent}
{if $input.type == 'file' && (!isset($input.imageType) || isset($input.imageType) && $input.imageType!='thumb')&& isset($display_img) && $display_img}
<label class="control-label col-lg-3 uploaded_image_label" style="font-style: italic;">{l s='Uploaded image: ' mod='ybc_blog_free'}</label>
<div class="col-lg-9 uploaded_img_wrapper">
<a class="ybc_fancy" href="{$display_img|escape:'html':'UTF-8'}"><img title="{l s='Click to see full size image' mod='ybc_blog_free'}" style="display: inline-block; max-width: 200px;" src="{$display_img|escape:'html':'UTF-8'}" /></a>
{if isset($img_del_link) && $img_del_link && !(isset($input.required) && $input.required)}
<a class="delete_url" style="display: inline-block; text-decoration: none!important;" href="{$img_del_link|escape:'html':'UTF-8'}"><span style="color: #666"><i style="font-size: 20px;" class="process-icon-delete"></i></span></a>
{/if}
</div>
{elseif $input.type == 'file' && isset($input.imageType) && $input.imageType=='thumb' && isset($display_thumb) && $display_thumb}
<label class="control-label col-lg-3 uploaded_image_label" style="font-style: italic;">{l s='Uploaded image: ' mod='ybc_blog_free'}</label>
<div class="col-lg-9 uploaded_img_wrapper">
<a class="ybc_fancy" href="{$display_thumb|escape:'html':'UTF-8'}"><img title="{l s='Click to see full size image' mod='ybc_blog_free'}" style="display: inline-block; max-width: 200px;" src="{$display_thumb|escape:'html':'UTF-8'}" /></a>
{if isset($thumb_del_link) && $thumb_del_link && !(isset($input.required) && $input.required)}
<a class="delete_url" style="display: inline-block; text-decoration: none!important;" href="{$thumb_del_link|escape:'html':'UTF-8'}"><span style="color: #666"><i style="font-size: 20px;" class="process-icon-delete"></i></span></a>
{/if}
</div>
{/if}
{else}
{if $input.type == 'blog_categories'}
<div class="col-lg-9">
<ul style="float: left; padding: 0; margin-top: 5px;">
{if $input.categories}
{foreach from=$input.categories item='cat'}
{if $cat.title}
<li style="list-style: none;"><input {if in_array($cat.id_category, $input.selected_categories)} checked="checked" {/if} style="margin: 2px 7px 0 5px; float: left;" type="checkbox" value="{$cat.id_category|escape:'html':'UTF-8'}" name="categories[]" id="ybc_input_blog_category_{$cat.id_category|escape:'html':'UTF-8'}" /><label for="ybc_input_blog_category_{$cat.id_category|intval}">{$cat.title|escape:'html':'UTF-8'}</label></li>
{/if}
{/foreach}
{/if}
</ul>
</div>
{/if}
{if $input.name == "url_alias"}
<script type="text/javascript">
{if isset($PS_ALLOW_ACCENTED_CHARS_URL) && $PS_ALLOW_ACCENTED_CHARS_URL}
var PS_ALLOW_ACCENTED_CHARS_URL = 1;
{else}
var PS_ALLOW_ACCENTED_CHARS_URL = 0;
{/if}
</script>
{$smarty.block.parent}
{/if}
{if $input.type == 'products_search'}
<div class="col-lg-9">
<div id="ajax_choose_product">
<input type="hidden" name="inputAccessories" id="inputAccessories" value="{if $input.selected_products}{foreach from=$input.selected_products item=accessory}{$accessory.id_product|intval}-{/foreach}{/if}" />
<input type="hidden" name="nameAccessories" id="nameAccessories" value="{if $input.selected_products}{foreach from=$input.selected_products item=accessory}{$accessory.name|escape:'html':'UTF-8'}¤{/foreach}{/if}" />
<div class="input-group">
<input type="text" id="product_autocomplete_input" name="product_autocomplete_input" />
<span class="input-group-addon"><i class="icon-search"></i></span>
</div>
<div id="divAccessories">
{if $input.selected_products}
{foreach from=$input.selected_products item=accessory}
<div class="form-control-static">
<button type="button" class="btn btn-default" onclick="ybcDelAccessory({$accessory.id_product|intval});" name="{$accessory.id_product|intval}">
<i class="icon-remove text-danger"></i>
</button>
{$accessory.name|escape:'html':'UTF-8'}{if !empty($accessory.reference)}{$accessory.reference|escape:'html':'UTF-8'}{/if}
</div>
{/foreach}
{/if}
</div>
</div>
</div>
{/if}
{/if}
{/block}
{block name="footer"}
{capture name='form_submit_btn'}{counter name='form_submit_btn'}{/capture}
{if isset($fieldset['form']['submit']) || isset($fieldset['form']['buttons'])}
<div class="panel-footer">
{if isset($cancel_url) && $cancel_url}
<a class="btn btn-default" href="{$cancel_url|escape:'html':'UTF-8'}"><i class="process-icon-cancel"></i>{l s='Back' mod='ybc_blog_free'}</a>
{/if}
{if isset($fieldset['form']['submit']) && !empty($fieldset['form']['submit'])}
<div class="img_loading_wrapper">
<img src="{$image_baseurl|escape:'html':'UTF-8'}img/loading-admin.gif" title="{l s='Loading' mod='ybc_blog_free'}" class="ybc_blog_free_loading" />
</div>
<button type="submit" value="1" id="{if isset($fieldset['form']['submit']['id'])}{$fieldset['form']['submit']['id']|escape:'html':'UTF-8'}{else}{$table|escape:'html':'UTF-8'}_form_submit_btn{/if}{if $smarty.capture.form_submit_btn > 1}_{($smarty.capture.form_submit_btn - 1)|intval}{/if}" name="{if isset($fieldset['form']['submit']['name'])}{$fieldset['form']['submit']['name']|escape:'html':'UTF-8'}{else}{$submit_action|escape:'html':'UTF-8'}{/if}{if isset($fieldset['form']['submit']['stay']) && $fieldset['form']['submit']['stay']}AndStay{/if}" class="{if isset($fieldset['form']['submit']['class'])}{$fieldset['form']['submit']['class']|escape:'html':'UTF-8'}{else}btn btn-default pull-right{/if}">
<i class="{if isset($fieldset['form']['submit']['icon'])}{$fieldset['form']['submit']['icon']|escape:'html':'UTF-8'}{else}process-icon-save{/if}"></i> {$fieldset['form']['submit']['title']|escape:'html':'UTF-8'}
</button>
{/if}
</div>
{/if}
{/block}
{block name="legend"}
<div class="panel-heading">
{if isset($field.image) && isset($field.title)}<img src="{$field.image|escape:'html':'UTF-8'}" alt="{$field.title|escape:'html':'UTF-8'}" />{/if}
{if isset($field.icon)}<i class="{$field.icon|escape:'html':'UTF-8'}"></i>{/if}
{$field.title|escape:'html':'UTF-8'}
{if isset($addNewUrl)}
<span class="panel-heading-action">
<a class="list-toolbar-btn ybc-blog-add-new" href="{$addNewUrl|escape:'html':'UTF-8'}">
<span data-placement="top" data-html="true" data-original-title="{l s='Add new item ' mod='ybc_blog_free'}" class="label-tooltip" data-toggle="tooltip" title="">
<i class="process-icon-new"></i>
</span>
</a>
</span>
{/if}
{if isset($post_key) && $post_key}<input type="hidden" name="post_key" value="{$post_key|escape:'html':'UTF-8'}" />{/if}
</div>
{if isset($configTabs) && $configTabs}
<ul>
{foreach from=$configTabs item='tab' key='tabId'}
<li class="confi_tab config_tab_{$tabId|escape:'html':'UTF-8'}" data-tab-id="{$tabId|escape:'html':'UTF-8'}">{$tab|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
{/block}
{block name="input_row"}
{if isset($isConfigForm) && $isConfigForm}
<div class="ybc-form-group{if isset($input.tab) && $input.tab} ybc-blog-tab-{$input.tab|escape:'html':'UTF-8'}{/if}">
{$smarty.block.parent}
{if isset($input.info) && $input.info}
<div class="ybc_tc_info alert alert-warning">{$input.info|escape:'html':'UTF-8'}</div>
{/if}
</div>
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 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 <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 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 <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 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 <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 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 <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,238 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<!doctype html>
<html lang="{$language.iso_code|escape:'html':'UTF-8'}">
<head>
{block name='head'}
{include file='_partials/head.tpl'}
{/block}
</head>
<body id="{$page.page_name|escape:'html':'UTF-8'}" class="{$page.body_classes|classnames}">
{hook h='displayAfterBodyOpeningTag'}
<main>
{block name='product_activation'}
{include file='catalog/_partials/product-activation.tpl'}
{/block}
<header id="header">
{block name='header'}
{include file='_partials/header.tpl'}
{/block}
</header>
{block name='notifications'}
{include file='_partials/notifications.tpl'}
{/block}
<section id="wrapper">
<div class="container">
{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"}
<div id="left-column" class="col-xs-12 col-sm-4 col-md-3">
{hook h="blogSidebar"}
</div>
{/block}
{/if}
{block name="content_wrapper"}
<div id="content-wrapper" class="{if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='left'}left-column col-xs-12 col-sm-8 col-md-9{elseif isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='right'}right-column col-xs-12 col-sm-8 col-md-9{/if}">
{block name="content"}
<div class="ybc_blog_free_layout_{$blog_layout|escape:'html':'UTF-8'} ybc-blog-wrapper ybc-blog-wrapper-blog-list {if $blog_latest}ybc-page-latest{elseif $blog_category}ybc-page-category{elseif $blog_tag}ybc-page-tag{elseif $blog_search}ybc-page-search{elseif $author}ybc-page-author{else}ybc-page-home{/if}">
{if $is_main_page}
{hook h='blogSlidersBlock'}
{/if}
{if $blog_category}
{if isset($blog_category.enabled) && $blog_category.enabled}
<div class="blog-category {if $blog_category.image}has-blog-image{/if}">
{if $blog_category.image}
<img src="{$blog_dir|escape:'html':'UTF-8'}views/img/category/{$blog_category.image|escape:'html':'UTF-8'}" alt="{$blog_category.title|escape:'html':'UTF-8'}" title="{$blog_category.title|escape:'html':'UTF-8'}" />
{/if}
<h1 class="page-heading product-listing">{$blog_category.title|escape:'html':'UTF-8'}</h1>
{if $blog_category.description}
<div class="blog-category-desc">
{$blog_category.description|escape nofilter}
</div>
{/if}
</div>
{else}
<p class="alert alert-warning">{l s='This category is not available' mod='ybc_blog_free'}</p>
{/if}
{elseif $blog_latest}
<h1 class="page-heading product-listing">{l s='Latest posts' mod='ybc_blog_free'}</h1>
{elseif $blog_tag}
<h1 class="page-heading product-listing">{l s='Tag: ' mod='ybc_blog_free'}"{ucfirst($blog_tag)|escape:'html':'UTF-8'}"</h1>
{elseif $blog_search}
<h1 class="page-heading product-listing">{l s='Search: ' mod='ybc_blog_free'}"{ucfirst($blog_search)|escape:'html':'UTF-8'}"</h1>
{elseif $author}
<h1 class="page-heading product-listing">{l s='Author: ' mod='ybc_blog_free'}"{$author|escape:'html':'UTF-8'}"</h1>
{/if}
{if !($blog_category && (!isset($blog_category.enabled) || isset($blog_category.enabled) && !$blog_category.enabled)) && ($blog_category || $blog_tag || $blog_search || $author || $is_main_page || $blog_latest)}
{if isset($blog_posts) && $blog_posts}
<ul class="ybc-blog-list row {if $is_main_page}blog-main-page{/if}">
{assign var='first_post' value=true}
{foreach from=$blog_posts item='post'}
<li>
<div class="post-wrapper">
{if $is_main_page && $first_post && ($blog_layout == 'large_list' || $blog_layout == 'large_grid')}
{if $post.image}
<a class="ybc_item_img" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{$post.image|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" />
</a>
{elseif $post.thumb}
<a class="ybc_item_img" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{$post.thumb|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" />
</a>
{/if}
{assign var='first_post' value=false}
{elseif $post.thumb}
<a class="ybc_item_img" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{$post.thumb|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" />
</a>
{/if}
<div class="ybc-blog-wrapper-content">
<div class="ybc-blog-wrapper-content-main">
<a class="ybc_title_block" href="{$post.link|escape:'html':'UTF-8'}">{$post.title|escape:'html':'UTF-8'}</a>
{if $show_date || $show_categories && $post.categories}
<div class="ybc-blog-sidear-post-meta">
{if !$date_format}{assign var='date_format' value='F jS Y'}{/if}
{if $show_categories && $post.categories}
<div class="ybc-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($post.categories)}
<span class="be-label">{l s='Posted in' mod='ybc_blog_free'}: </span>
{foreach from=$post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
{/if}
{if $show_date}
<span class="post-date">{date($date_format,strtotime($post.datetime_added))|escape:'html':'UTF-8'}</span>
{/if}
</div>
{/if}
<div class="ybc-blog-latest-toolbar">
{if $show_views}
<span class="ybc-blog-latest-toolbar-views" title="{l s='Page views' mod='ybc_blog_free'}">
{$post.click_number|intval}
{if $post.click_number !=1}<span>
{l s='Views' mod='ybc_blog_free'}</span>
{else}
<span>{l s='View' mod='ybc_blog_free'}</span>
{/if}
</span>
{/if}
{if $allow_rating}
{if $post.total_review}
<span title="{l s='Comments' mod='ybc_blog_free'}" class="blog__rating_reviews">
{$post.total_review|intval}
</span>
{/if}
{/if}
{if $allow_like}
<span title="{if $post.liked}{l s='Liked' mod='ybc_blog_free'}{else}{l s='Like this post' mod='ybc_blog_free'}{/if}" class="item ybc-blog-like-span ybc-blog-like-span-{$post.id_post|escape:'html':'UTF-8'} {if $post.liked}active{/if}" data-id-post="{$post.id_post|escape:'html':'UTF-8'}">
<span class="blog-post-total-like ben_{$post.id_post|escape:'html':'UTF-8'}">{$post.likes|escape:'html':'UTF-8'}</span>
<span class="blog-post-like-text blog-post-like-text-{$post.id_post|escape:'html':'UTF-8'}"><span>{l s='Liked' mod='ybc_blog_free'}</span></span>
</span>
{/if}
{if $allow_rating && isset($post.everage_rating) && $post.everage_rating}
{assign var='everage_rating' value=$post.everage_rating}
<div class="blog-extra-item be-rating-block item">
<span>{l s='Rating: ' mod='ybc_blog_free'}</span>
<div class="blog_rating_wrapper">
<div class="ybc_blog_free_review" title="{l s='Everage rating' mod='ybc_blog_free'}">
{for $i = 1 to $everage_rating}
<div class="star star_on"></div>
{/for}
{if $everage_rating<5}
{for $i = $everage_rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
<span class="ybc-blog-rating-value">{number_format((float)$everage_rating, 1, '.', '')|escape:'html':'UTF-8'}</span>
</div>
</div>
</div>
{/if}
</div>
<div class="blog_description sang">
{if $post.short_description}
{$post.short_description|truncate:500:'...'|escape:'html':'UTF-8' nofilter}
{elseif $post.description}
{$post.description|truncate:500:'...'|escape:'html':'UTF-8' nofilter}
{/if}
</div>
<a class="read_more" href="{$post.link|escape:'html':'UTF-8'}">{l s='Read More' mod='ybc_blog_free'}</a>
</div>
</div>
</div>
</li>
{/foreach}
</ul>
{if $blog_paggination}
<div class="blog-paggination">
{$blog_paggination nofilter}
</div>
{/if}
{else}
<p>{l s='No posts found' mod='ybc_blog_free'}</p>
{/if}
{/if}
</div>
{/block}
</div>
{/block}
{if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='right'}
{block name="right_column"}
<div id="right-column" class="col-xs-12 col-sm-4 col-md-3">
{hook h="blogSidebar"}
</div>
{/block}
{/if}
</div>
</section>
<footer id="footer">
{block name="footer"}
{include file="_partials/footer.tpl"}
{/block}
</footer>
</main>
{block name='javascript_bottom'}
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
{/block}
{hook h='displayBeforeBodyClosingTag'}
</body>
</html>

View File

@@ -0,0 +1,168 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<div class="ybc_blog_free_layout_{$blog_layout|escape:'html':'UTF-8'} ybc-blog-wrapper ybc-blog-wrapper-blog-list {if $blog_latest}ybc-page-latest{elseif $blog_category}ybc-page-category{elseif $blog_tag}ybc-page-tag{elseif $blog_search}ybc-page-search{elseif $author}ybc-page-author{else}ybc-page-home{/if}">
{if $is_main_page}
{hook h='blogSlidersBlock'}
{/if}
{if $blog_category}
{if isset($blog_category.enabled) && $blog_category.enabled}
<div class="blog-category {if $blog_category.image}has-blog-image{/if}">
{if $blog_category.image}
<img src="{$blog_dir|escape:'html':'UTF-8'}views/img/category/{$blog_category.image|escape:'html':'UTF-8'}" alt="{$blog_category.title|escape:'html':'UTF-8'}" title="{$blog_category.title|escape:'html':'UTF-8'}" />
{/if}
<h1 class="page-heading product-listing">{$blog_category.title|escape:'html':'UTF-8'}</h1>
{if $blog_category.description}
<div class="blog-category-desc">
{$blog_category.description nofilter}
</div>
{/if}
</div>
{else}
<p class="alert alert-warning">{l s='This category is not available' mod='ybc_blog_free'}</p>
{/if}
{elseif $blog_latest}
<h1 class="page-heading product-listing">{l s='Latest posts' mod='ybc_blog_free'}</h1>
{elseif $blog_tag}
<h1 class="page-heading product-listing">{l s='Tag: ' mod='ybc_blog_free'}"{ucfirst($blog_tag)|escape:'html':'UTF-8'}"</h1>
{elseif $blog_search}
<h1 class="page-heading product-listing">{l s='Search: ' mod='ybc_blog_free'}"{ucfirst($blog_search)|escape:'html':'UTF-8'}"</h1>
{elseif $author}
<h1 class="page-heading product-listing">{l s='Author: ' mod='ybc_blog_free'}"{$author|escape:'html':'UTF-8'}"</h1>
{/if}
{if !($blog_category && (!isset($blog_category.enabled) || isset($blog_category.enabled) && !$blog_category.enabled)) && ($blog_category || $blog_tag || $blog_search || $author || $is_main_page || $blog_latest)}
{if isset($blog_posts)}
<ul class="ybc-blog-list row {if $is_main_page}blog-main-page{/if}">
{assign var='first_post' value=true}
{foreach from=$blog_posts item='post'}
<li>
<div class="post-wrapper">
{if $is_main_page && $first_post && ($blog_layout == 'large_list' || $blog_layout == 'large_grid')}
{if $post.image}
<a class="ybc_item_img" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{$post.image|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" />
</a>
{elseif $post.thumb}
<a class="ybc_item_img" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{$post.thumb|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" />
</a>
{/if}
{assign var='first_post' value=false}
{elseif $post.thumb}
<a class="ybc_item_img" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{$post.thumb|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" />
</a>
{/if}
<div class="ybc-blog-wrapper-content">
<div class="ybc-blog-wrapper-content-main">
<a class="ybc_title_block" href="{$post.link|escape:'html':'UTF-8'}">{$post.title|escape:'html':'UTF-8'}</a>
{if $show_date || $show_categories && $post.categories}
<div class="ybc-blog-sidear-post-meta">
{if !$date_format}{assign var='date_format' value='F jS Y'}{/if}
{if $show_categories && $post.categories}
<div class="ybc-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($post.categories)}
<span class="be-label">{l s='Posted in' mod='ybc_blog_free'}: </span>
{foreach from=$post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
{/if}
{if $show_date}
<span class="post-date">{date($date_format,strtotime($post.datetime_added))|escape:'html':'UTF-8'}</span>
{/if}
</div>
{/if}
<div class="ybc-blog-latest-toolbar">
{if $show_views}
<span class="ybc-blog-latest-toolbar-views" title="{l s='Page views' mod='ybc_blog_free'}">
{$post.click_number|intval}
{if $post.click_number !=1}<span>
{l s='Views' mod='ybc_blog_free'}</span>
{else}
<span>{l s='View' mod='ybc_blog_free'}</span>
{/if}
</span>
{/if}
{if $allow_rating}
{if $post.total_review}
<span title="{l s='Comments' mod='ybc_blog_free'}" class="blog__rating_reviews">
{$post.total_review|intval}
</span>
{/if}
{/if}
{if $allow_like}
<span title="{if $post.liked}{l s='Liked' mod='ybc_blog_free'}{else}{l s='Like this post' mod='ybc_blog_free'}{/if}" class="item ybc-blog-like-span ybc-blog-like-span-{$post.id_post|escape:'html':'UTF-8'} {if $post.liked}active{/if}" data-id-post="{$post.id_post|escape:'html':'UTF-8'}">
<span class="blog-post-total-like ben_{$post.id_post|escape:'html':'UTF-8'}">{$post.likes|escape:'html':'UTF-8'}</span>
<span class="blog-post-like-text blog-post-like-text-{$post.id_post|escape:'html':'UTF-8'}"><span>{l s='Liked' mod='ybc_blog_free'}</span></span>
</span>
{/if}
{if $allow_rating && isset($post.everage_rating) && $post.everage_rating}
{assign var='everage_rating' value=$post.everage_rating}
<div class="blog-extra-item be-rating-block item">
<span>{l s='Rating: ' mod='ybc_blog_free'}</span>
<div class="blog_rating_wrapper">
<div class="ybc_blog_free_review" title="{l s='Everage rating' mod='ybc_blog_free'}">
{for $i = 1 to $everage_rating}
<div class="star star_on"></div>
{/for}
{if $everage_rating<5}
{for $i = $everage_rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
<span class="ybc-blog-rating-value">{number_format((float)$everage_rating, 1, '.', '')|escape:'html':'UTF-8'}</span>
</div>
</div>
</div>
{/if}
</div>
<div class="blog_description">
{if $post.short_description}
<p>{$post.short_description|strip_tags:'UTF-8'|truncate:500:'...'|escape:'html':'UTF-8'}</p>
{elseif $post.description}
<p>{$post.description|strip_tags:'UTF-8'|truncate:500:'...'|escape:'html':'UTF-8'}</p>
{/if}
</div>
<a class="read_more" href="{$post.link|escape:'html':'UTF-8'}">{l s='Read More' mod='ybc_blog_free'}</a>
</div>
</div>
</div>
</li>
{/foreach}
</ul>
{if $blog_paggination}
<div class="blog-paggination">
{$blog_paggination nofilter}
</div>
{/if}
{else}
<p>{l s='No posts found' mod='ybc_blog_free'}</p>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,113 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<!doctype html>
<html lang="{$language.iso_code|escape:'html':'UTF-8'}">
<head>
{block name='head'}
{include file='_partials/head.tpl'}
{/block}
</head>
<body id="{$page.page_name|escape:'html':'UTF-8'}" class="{$page.body_classes|classnames}">
{hook h='displayAfterBodyOpeningTag'}
<main>
{block name='product_activation'}
{include file='catalog/_partials/product-activation.tpl'}
{/block}
<header id="header">
{block name='header'}
{include file='_partials/header.tpl'}
{/block}
</header>
{block name='notifications'}
{include file='_partials/notifications.tpl'}
{/block}
<section id="wrapper">
<div class="container">
{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"}
<div id="left-column" class="col-xs-12 col-sm-4 col-md-3">
{hook h="blogSidebar"}
</div>
{/block}
{/if}
{block name="content_wrapper"}
<div id="content-wrapper" class="{if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='left'}left-column col-xs-12 col-sm-8 col-md-9{elseif isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='right'}right-column col-xs-12 col-sm-8 col-md-9{/if}">
{block name="content"}
<div class="ybc_blog_free_layout_{$blog_layout|escape:'html':'UTF-8'} ybc-blog-wrapper ybc-blog-wrapper-gallery">
<h1 class="page-heading">{l s='Blog gallery' mod='ybc_blog_free'}</h1>
{if isset($blog_galleries)}
<ul class="ybc-gallery">
{foreach from=$blog_galleries item='gallery'}
<li>
<a class="gallery_item" {if $gallery.description} title="{strip_tags($gallery.description)|escape:'html':'UTF-8'}"{/if} rel="prettyPhotoGalleryPage[gallery]" href="{$gallery.image|escape:'html':'UTF-8'}"><img src="{$gallery.thumb|escape:'html':'UTF-8'}" title="{$gallery.title|escape:'html':'UTF-8'}" alt="{$gallery.title|escape:'html':'UTF-8'}" /></a>
</li>
{/foreach}
</ul>
{if $blog_paggination}
<div class="blog-paggination">
{$blog_paggination nofilter}
</div>
{/if}
{else}
<p class="alert alert-warning">{l s='No item found' mod='ybc_blog_free'}</p>
{/if}
</div>
{/block}
</div>
{/block}
{if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='right'}
{block name="right_column"}
<div id="right-column" class="col-xs-12 col-sm-4 col-md-3">
{hook h="blogSidebar"}
</div>
{/block}
{/if}
</div>
</section>
<footer id="footer">
{block name="footer"}
{include file="_partials/footer.tpl"}
{/block}
</footer>
</main>
{block name='javascript_bottom'}
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
{/block}
{hook h='displayBeforeBodyClosingTag'}
</body>
</html>

View File

@@ -0,0 +1,47 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<div class="ybc_blog_free_layout_{$blog_layout|escape:'html':'UTF-8'} ybc-blog-wrapper ybc-blog-wrapper-gallery">
<h1 class="page-heading">{l s='Blog gallery' mod='ybc_blog_free'}</h1>
{if isset($blog_galleries)}
<ul class="ybc-gallery">
{foreach from=$blog_galleries item='gallery'}
<li>
<a class="gallery_item" {if $gallery.description} title="{strip_tags($gallery.description)|escape:'html':'UTF-8'}"{/if} rel="prettyPhotoGalleryPage[gallery]" href="{$gallery.image|escape:'html':'UTF-8'}"><img src="{$gallery.thumb|escape:'html':'UTF-8'}" title="{$gallery.title|escape:'html':'UTF-8'}" alt="{$gallery.title|escape:'html':'UTF-8'}" /></a>
</li>
{/foreach}
</ul>
{if $blog_paggination}
<div class="blog-paggination">
{$blog_paggination nofilter}
</div>
{/if}
{else}
<p class="alert alert-warning">{l s='No item found' mod='ybc_blog_free'}</p>
{/if}
</div>
<script type="text/javascript">
prettySkinGalleryPage = '{$prettySkin|escape:'html':'UTF-8'}';
prettyAutoPlayGalleryPage = {$prettyAutoPlay|intval};
</script>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 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 <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,534 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<!doctype html>
<html lang="{$language.iso_code|escape:'html':'UTF-8'}">
<head>
<meta property="og:type" content="website" />
<meta property="og:title" content="{$blog_post.title|escape:'html':'UTF-8'}" />
<meta property="og:image" content="{$blog_post.image|escape:'html':'UTF-8'}" />
{block name='head'}
{include file='_partials/head.tpl'}
{/block}
</head>
<body id="{$page.page_name|escape:'html':'UTF-8'}" class="{$page.body_classes|classnames}">
{hook h='displayAfterBodyOpeningTag'}
<main>
{block name='product_activation'}
{include file='catalog/_partials/product-activation.tpl'}
{/block}
<header id="header">
{block name='header'}
{include file='_partials/header.tpl'}
{/block}
</header>
{block name='notifications'}
{include file='_partials/notifications.tpl'}
{/block}
<section id="wrapper">
<div class="container">
{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"}
<div id="left-column" class="col-xs-12 col-sm-4 col-md-3">
{hook h="blogSidebar"}
</div>
{/block}
{/if}
{block name="content_wrapper"}
<div id="content-wrapper" class="{if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='left'}left-column col-xs-12 col-sm-8 col-md-9{elseif isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='right'}right-column col-xs-12 col-sm-8 col-md-9{/if}">
{block name="content"}
{if isset($blog_post.enabled) && $blog_post.enabled}
<script type="text/javascript">
ybc_blog_free_report_url = '{$report_url|escape:'html':'UTF-8'}';
ybc_blog_free_report_warning = '{l s='Do you want to report this comment?' mod='ybc_blog_free'}';
ybc_blog_free_error = '{l s='There was a problem while submitting your report. Try again later' mod='ybc_blog_free'}';
</script>
<div class="ybc_blog_free_layout_{$blog_layout|escape:'html':'UTF-8'} ybc-blog-wrapper-detail" itemscope itemType="http://schema.org/BlogPosting">
<meta itemprop="author" content="{ucfirst($blog_post.firstname)|escape:'html':'UTF-8'} {ucfirst($blog_post.lastname)|escape:'html':'UTF-8'}"/>
<div itemprop="publisher" itemtype="http://schema.org/Organization" itemscope="" style="display: none;">
<meta itemprop="name" content="{Configuration::get('PS_SHOP_NAME')|escape:'html':'UTF-8'}" />
{if Configuration::get('PS_LOGO')}
<div itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<meta itemprop="url" content="{$blog_config.YBC_BLOG_FREE_SHOP_URI|escape:'html':'UTF-8'}img/{Configuration::get('PS_LOGO')|escape:'html':'UTF-8'}" />
<meta itemprop="width" content="200px" />
<meta itemprop="height" content="100px" />
</div>
{/if}
</div>
{if $blog_post.image}
<div class="ybc_blog_free_img_wrapper" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
{if $enable_slideshow}<a href="{$blog_post.image|escape:'html':'UTF-8'}" class="prettyPhoto">{/if}
<img title="{$blog_post.title|escape:'html':'UTF-8'}" src="{$blog_post.image|escape:'html':'UTF-8'}" alt="{$blog_post.title|escape:'html':'UTF-8'}" itemprop="url" />
<meta itemprop="width" content="600px" />
<meta itemprop="height" content="300px" />
{if $enable_slideshow}</a>{/if}
</div>
{/if}
<div class="ybc-blog-wrapper-content">
{if $blog_post}
<h1 class="page-heading product-listing" itemprop="mainEntityOfPage"><span class="title_cat" itemprop="headline">{$blog_post.title|escape:'html':'UTF-8'}</span></h1>
<div class="post-details">
<div class="blog-extra">
<div class="ybc-blog-latest-toolbar">
{if $show_views}
<span title="{l s='Page views' mod='ybc_blog_free'}" class="ybc-blog-latest-toolbar-views">
{$blog_post.click_number|intval}
{if $blog_post.click_number != 1}
<span>{l s='Views' mod='ybc_blog_free'}</span>
{else}
<span>{l s='View' mod='ybc_blog_free'}</span>
{/if}
</span>
{/if}
{if $allow_like}
<span title="{if $likedPost}{l s='Liked' mod='ybc_blog_free'}{else}{l s='Like this post' mod='ybc_blog_free'}{/if}" class="ybc-blog-like-span ybc-blog-like-span-{$blog_post.id_post|intval} {if $likedPost}active{/if}" data-id-post="{$blog_post.id_post|intval}">
<span class="ben_{$blog_post.id_post|intval}">{$blog_post.likes|intval}</span>
<span class="blog-post-like-text blog-post-like-text-{$blog_post.id_post|intval}"><span>{l s='Liked' mod='ybc_blog_free'}</span></span>
</span>
{/if}
{if $allow_rating && $everage_rating}
<div class="blog_rating_wrapper" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
{if $total_review}
<span title="{l s='Comments' mod='ybc_blog_free'}" class="blog_rating_reviews">
<span class="total_views" itemprop="reviewCount">{$total_review|intval}</span>
<span>
{if $total_review != 1}
{l s='Reviews' mod='ybc_blog_free'}
{else}
{l s='Review' mod='ybc_blog_free'}
{/if}
</span>
</span>
{/if}
<div title="{l s='Everage rating' mod='ybc_blog_free'}" class="ybc_blog_free_review">
<span>{l s='Rating: ' mod='ybc_blog_free'}</span>
{for $i = 1 to $everage_rating}
<div class="star star_on"></div>
{/for}
{if $everage_rating<5}
{for $i = $everage_rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
<meta itemprop="worstRating" content="0"/>
<span class="ybc-blog-rating-value" itemprop="ratingValue">{number_format((float)$everage_rating, 1, '.', '')|escape:'html':'UTF-8'}</span>
<meta itemprop="bestRating" content="5"/>
</div>
</div>
{/if}
{if $show_date}
{if !$date_format}{assign var='date_format' value='F jS Y'}{/if}
<span class="post-date">
<span class="be-label">{l s='Posted on' mod='ybc_blog_free'}: </span>
<span>{date($date_format,strtotime($blog_post.datetime_added))|escape:'html':'UTF-8'}</span>
<meta itemprop="datePublished" content="{date('Y-m-d',strtotime($blog_post.datetime_added))|escape:'html':'UTF-8'}" />
<meta itemprop="dateModified" content="{date('Y-m-d',strtotime($blog_post.datetime_modified))|escape:'html':'UTF-8'}" />
</span>
{/if}
{if $show_author && ($blog_post.firstname || $blog_post.lastname)}
<div class="author-block">
<span class="post-author-label">{l s='By: ' mod='ybc_blog_free'}</span>
<a href="{$blog_post.author_link|escape:'html':'UTF-8'}">
<span class="post-author-name">
{ucfirst($blog_post.firstname)|escape:'html':'UTF-8'} {ucfirst($blog_post.lastname)|escape:'html':'UTF-8'}
</span>
</a>
</div>
{/if}
</div>
<div class="ybc-blog-tags-social">
{if $use_google_share || $use_facebook_share || $use_twitter_share}
<div class="blog-extra-item blog-extra-facebook-share">
{if $use_facebook_share}
<div class="ybc_blog_free_button_share">
<div id="fb-root"></div>
{literal}
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.3";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
{/literal}
<div class="fb-like" data-image="" data-href="{$post_url|escape:'html':'UTF-8'}" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
</div>
{/if}
{if $use_google_share}
<div class="ybc_blog_free_button_share">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div class="g-plusone" data-size="medium" data-href="{$post_url|escape:'html':'UTF-8'}"></div>
</div>
{/if}
{if $use_twitter_share}
<div class="ybc_blog_free_button_share">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="{$post_url|escape:'html':'UTF-8'}">{l s='Tweet' mod='ybc_blog_free'}</a>
{literal}
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
{/literal}
</div>
{/if}
</div>
{/if}
</div>
</div>
<div class="blog_description">
{if $blog_post.description}
{$blog_post.description nofilter}
{else}
{$blog_post.short_description nofilter}
{/if}
</div>
{if ($show_tags && $blog_post.tags) || ($show_categories && $blog_post.categories)}
<div class="extra_tag_cat">
{if $show_tags && $blog_post.tags}
<div class="ybc-blog-tags">
{assign var='ik' value=0}
{assign var='totalTag' value=count($blog_post.tags)}
<span class="be-label">
{if $totalTag > 1}{l s='Tags' mod='ybc_blog_free'}
{else}{l s='Tag' mod='ybc_blog_free'}{/if}:
</span>
{foreach from=$blog_post.tags item='tag'}
{assign var='ik' value=$ik+1}
<a href="{$tag.link|escape:'html':'UTF-8'}">{ucfirst($tag.tag)|escape:'html':'UTF-8'}</a>{if $ik < $totalTag}, {/if}
{/foreach}
</div>
{/if}
{if $show_categories && $blog_post.categories}
<div class="ybc-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($blog_post.categories)}
<div class="be-categories">
<span class="be-label">{l s='Posted in' mod='ybc_blog_free'}: </span>
{foreach from=$blog_post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
</div>
{/if}
</div>
{/if}
{if $display_related_products && $blog_post.products}
<div id="ybc-blog-related-products" class="">
<h4 class="title_blog">
{if count($blog_post.products) > 1}{l s='Related products ' mod='ybc_blog_free'}
{else}{l s='Related product' mod='ybc_blog_free'}{/if}
</h4>
<div class="ybc-blog-related-products-wrapper ybc-blog-related-products-list">
<ul class="blog-product-list product_list grid row ybc_related_products_type_{if $blog_related_product_type}{$blog_related_product_type|escape:'html':'UTF-8'}{else}default{/if}">
{foreach from=$blog_post.products item='product'}
<li class="ajax_block_product col-xs-12 col-sm-4">
<div class="product-container">
<div class="left-block">
<a href="{$product.link|escape:'html':'UTF-8'}"><img src="{$product.img_url|escape:'html':'UTF-8'}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
</div>
<div class="right-block">
<h5><a href="{$product.link|escape:'html':'UTF-8'}">{$product.name|escape:'html':'UTF-8'}</a></h5>
{if $show_price}
<div class="blog-product-extra content_price">
{if $product.price!=$product.old_price}
<span class="bp-price-old old-price"><span class="bp-price-old-label">{l s='Old price: ' mod='ybc_blog_free'}</span><span class="bp-price-old-display">{$product.old_price|escape:'html':'UTF-8'}</span></span>
{/if}
<span class="bp-price price product-price"><span class="bp-price-label">{l s='Price: ' mod='ybc_blog_free'}</span><span class="bp-price-display">{$product.price|escape:'html':'UTF-8'}</span></span>
{if $product.price!=$product.old_price}
<span class="bp-percent price-percent-reduction"><span class="bp-percent-label">{l s='Discount: ' mod='ybc_blog_free'}</span><span class="bp-percent-display">-{$product.discount_percent|escape:'html':'UTF-8'}{l s='%' mod='ybc_blog_free'}</span></span>
<span class="bp-save"><span class="bp-save-label">{l s='Save up: ' mod='ybc_blog_free'}</span><span class="bp-save-display">-{$product.discount_amount|escape:'html':'UTF-8'}</span></span>
{/if}
</div>
{/if}
{if $product.short_description}
<div class="blog-product-desc">
{$product.short_description|strip_tags:'UTF-8'|truncate:80:'...'|escape:'html':'UTF-8'}
</div>
{/if}
</div>
</div>
</li>
{/foreach}
</ul>
</div>
</div>
{/if}
<div class="ybc-blog-wrapper-comment">
{if $allowComments}
<div class="ybc_comment_form_blog">
<h4 class="title_blog">{l s='Leave a comment' mod='ybc_blog_free'}</h4>
<div class="ybc-blog-form-comment">
{if $hasLoggedIn || $allowGuestsComments}
<form action="{$blogCommentAction|escape:'html':'UTF-8'}" method="post">
{if !$hasLoggedIn}
<div class="blog-comment-row blog-name">
<label for="bc-name">{l s='Name' mod='ybc_blog_free'}</label>
<input class="form-control" name="name_customer" id="bc-name" type="text" value="{if isset($name_customer)}{$name_customer|escape:'html':'UTF-8'}{/if}" />
</div>
<div class="blog-comment-row blog-email">
<label for="bc-email">{l s='Email' mod='ybc_blog_free'}</label>
<input class="form-control" name="email_customer" id="bc-email" type="text" value="{if isset($email_customer)}{$email_customer|escape:'html':'UTF-8'}{/if}" />
</div>
{/if}
<div class="blog-comment-row blog-title">
<label for="bc-subject">{l s='Subject ' mod='ybc_blog_free'}</label>
<input class="form-control" name="subject" id="bc-subject" type="text" value="{if isset($subject)}{$subject|escape:'html':'UTF-8'}{/if}" />
</div>
<div class="blog-comment-row blog-content-comment">
<label for="bc-comment">{l s='Comment ' mod='ybc_blog_free'}</label>
<textarea class="form-control" name="comment" id="bc-comment">{if isset($comment)}{$comment|escape:'html':'UTF-8'}{/if}</textarea>
</div>
<div class="blog-comment-row flex_space_between">
{if $allow_rating || $use_capcha}
<div class="blog-rate-capcha">
{if $allow_rating}
<div class="blog-rate-post">
<label>{l s='Rating: ' mod='ybc_blog_free'}</label>
<div class="blog_rating_box">
{if $default_rating > 0 && $default_rating <5}
<input id="blog_rating" type="hidden" name="rating" value="{$default_rating|intval}" />
{for $i = 1 to $default_rating}
<div rel="{$i|intval}" class="star star_on blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{for $i = $default_rating + 1 to 5}
<div rel="{$i|intval}" class="star blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{else}
<input id="blog_rating" type="hidden" name="rating" value="5" />
{for $i = 1 to 5}
<div rel="{$i|intval}" class="star star_on blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{/if}
</div>
</div>
{/if}
{if $use_capcha}
<div class="blog-capcha">
<label for="bc-capcha">{l s='Security code: ' mod='ybc_blog_free'}</label>
<span class="bc-capcha-wrapper">
<img rel="{$blog_random_code|escape:'html':'UTF-8'}" id="ybc-blog-capcha-img" src="{$capcha_image|escape:'html':'UTF-8'}" />
<input class="form-control" name="capcha_code" type="text" id="bc-capcha" value="" />
<span id="ybc-blog-capcha-refesh" title="{l s='Refresh code' mod='ybc_blog_free'}">{*l s='Refresh code'*}</span>
</span>
</div>
{/if}
</div>
{/if}
<div class="blog-submit">
<input class="button" type="submit" value="{l s='Submit Comment' mod='ybc_blog_free'}" name="bcsubmit" />
</div>
</div>
{if $blog_errors && is_array($blog_errors)}
<ul class="alert alert-danger ybc_alert-danger">
{foreach from=$blog_errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
{if $blog_success}
<p class="alert alert-success ybc_alert-success">{$blog_success|escape:'html':'UTF-8'}</p>
{/if}
</form>
{else}
<p class="alert alert-warning">{l s='Log in to post comments' mod='ybc_blog_free'}</p>
{/if}
</div>
</div>
{if count($comments)}
<div class="ybc_blog_free-comments-list">
<h4 class="title_blog">
{l s='Comments ' mod='ybc_blog_free'}
</h4>
<ul class="blog-comments-list">
{foreach from=$comments item='comment'}
<li class="blog-comment-line" itemprop="review" itemscope="" itemtype="http://schema.org/Review">
<meta itemprop="author" content="{ucfirst($comment.name)|escape:'html':'UTF-8'}"/>
<div class="ybc-blog-detail-comment">
<h5 class="comment-subject">{$comment.subject|escape:'html':'UTF-8'}</h5>
{if $comment.name}<span class="comment-by">{l s='By : ' mod='ybc_blog_free'}<b>{ucfirst($comment.name)|escape:'html':'UTF-8'}</b></span>{/if}
<span class="comment-time"><span>{l s='On' mod='ybc_blog_free'} </span>{date($date_format,strtotime($comment.datetime_added))|escape:'html':'UTF-8'}</span>
{if $allow_rating && $comment.rating > 0}
<div class="comment-rating" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<meta itemprop="worstRating" content="0"/>
<meta itemprop="ratingValue" content="{number_format((float)$comment.rating, 1, '.', '')|escape:'html':'UTF-8'}"/>
<meta itemprop="bestRating" content="5"/>
<span>{l s='Rating: ' mod='ybc_blog_free'}</span>
<div class="ybc_blog_free_review">
{for $i = 1 to $comment.rating}
<div class="star star_on"></div>
{/for}
{if $comment.rating<5}
{for $i = $comment.rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
<span class="ybc-blog-everage-rating"> {number_format((float)$comment.rating, 1, '.', '')|escape:'html':'UTF-8'}</span>
</div>
</div>
{/if}
{if $allow_report_comment}
{if !($reportedComments && is_array($reportedComments) && in_array($comment.id_comment, $reportedComments))}
<span class="ybc-block-comment-report comment-report-{$comment.id_comment|intval}" rel="{$comment.id_comment|intval}"><i class="fa fa-bolt" aria-hidden="true" title="{l s='Report this comment as abuse' mod='ybc_blog_free'}"></i></span>
{/if}
{/if}
{if $comment.comment}<p class="comment-content">{$comment.comment|escape:'html':'UTF-8'}</p>{/if}
{if $comment.reply}<p class="comment-reply">
{if $comment.elastname || $comment.efirstname}
<span class="ybc-blog-replied-by">
{l s='Replied by : ' mod='ybc_blog_free'}
<span class="ybc-blog-replied-by-name">
{ucfirst($comment.efirstname)|escape:'html':'UTF-8'} {ucfirst($comment.elastname)|escape:'html':'UTF-8'}
</span>
</span>
{/if}
<span class="ybc-blog-reply-content">
{$comment.reply|escape:'html':'UTF-8'}
</span></p>
{/if}
</div>
</li>
{/foreach}
</ul>
</div>
{/if}
{/if}
</div>
</div>
{else}
<p class="warning">{l s='No posts found' mod='ybc_blog_free'}</p>
{/if}
{if $blog_post.related_posts}
<div class="ybc-blog-related-posts ybc_blog_free_related_posts_type_{if $blog_related_posts_type}{$blog_related_posts_type|escape:'html':'UTF-8'}{else}default{/if}">
<h4 class="title_blog">{l s='Related posts' mod='ybc_blog_free'}</h4>
<div class="ybc-blog-related-posts-wrapper">
<ul class="ybc-blog-related-posts-list">
{foreach from=$blog_post.related_posts item='rpost'}
<li class="ybc-blog-related-posts-list-li thumbnail-container">
{if $rpost.thumb}
<a class="ybc_item_img" href="{$rpost.link|escape:'html':'UTF-8'}">
<img src="{$rpost.thumb|escape:'html':'UTF-8'}" alt="{$rpost.title|escape:'html':'UTF-8'}" />
</a>
{/if}
<a class="ybc_title_block" href="{$rpost.link|escape:'html':'UTF-8'}">{$rpost.title|escape:'html':'UTF-8'}</a>
<div class="ybc-blog-sidear-post-meta">
{if $rpost.categories}
{assign var='ik' value=0}
{assign var='totalCat' value=count($rpost.categories)}
<div class="ybc-blog-categories">
<span class="be-label">{l s='Posted in' mod='ybc_blog_free'}: </span>
{foreach from=$rpost.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
{/if}
<span class="post-date">{date($date_format,strtotime($rpost.datetime_added))|escape:'html':'UTF-8'}</span>
</div>
{if $allowComments || $show_views || $allow_like}
<div class="ybc-blog-latest-toolbar">
{if $show_views}
<span class="ybc-blog-latest-toolbar-views">
{$rpost.click_number|intval}
{if $rpost.click_number!=1}
<span>{l s='views' mod='ybc_blog_free'}</span>
{else}
<span>{l s='view' mod='ybc_blog_free'}</span>
{/if}
</span>
{/if}
{if $allow_like}
<span class="ybc-blog-like-span ybc-blog-like-span-{$rpost.id_post|intval} {if isset($rpost.liked) && $rpost.liked}active{/if}" data-id-post="{$rpost.id_post|intval}">
{$rpost.likes|intval}
<span class="blog-post-like-text blog-post-like-text-{$rpost.id_post|intval}">
{l s='Liked' mod='ybc_blog_free'}
</span>
</span>
{/if}
{if $allowComments}
<span class="ybc-blog-latest-toolbar-comments">{$rpost.comments_num|intval}
{if $rpost.comments_num!=1}
<span>{l s='comments' mod='ybc_blog_free'}</span>
{else}
<span>{l s='comment' mod='ybc_blog_free'}</span>
{/if}
</span>
{/if}
</div>
{/if}
{if $rpost.short_description}
<div class="blog_description">{$rpost.short_description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}</div>
{elseif $rpost.description}
<div class="blog_description">{$rpost.description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}</div>
{/if}
</li>
{/foreach}
</ul>
</div>
</div>
{/if}
</div>
</div>
{else}
<p class="alert alert-warning">{l s='This blog post is not available' mod='ybc_blog_free'}</p>
{/if}
{/block}
</div>
{/block}
{if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POSITION=='right'}
{block name="right_column"}
<div id="right-column" class="col-xs-12 col-sm-4 col-md-3">
{hook h="blogSidebar"}
</div>
{/block}
{/if}
</div>
</section>
<footer id="footer">
{block name="footer"}
{include file="_partials/footer.tpl"}
{/block}
</footer>
</main>
{block name='javascript_bottom'}
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
{/block}
{hook h='displayBeforeBodyClosingTag'}
</body>
</html>

View File

@@ -0,0 +1,465 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if isset($blog_post.enabled) && $blog_post.enabled}
<script type="text/javascript">
ybc_blog_free_report_url = '{$report_url|escape:'html':'UTF-8'}';
ybc_blog_free_report_warning = '{l s='Do you want to report this comment?' mod='ybc_blog_free'}';
ybc_blog_free_error = '{l s='There was a problem while submitting your report. Try again later' mod='ybc_blog_free'}';
prettySkin = '{$prettySkin|escape:'html':'UTF-8'}';
prettyAutoPlay = false;
</script>
<div class="ybc_blog_free_layout_{$blog_layout|escape:'html':'UTF-8'} ybc-blog-wrapper-detail" itemscope itemType="http://schema.org/BlogPosting">
<meta property="og:type" content="website" />
<meta property="og:title" content="{$blog_post.title|escape:'html':'UTF-8'}" />
<meta property="og:image" content="{$blog_post.image|escape:'html':'UTF-8'}" />
<meta itemprop="author" content="{ucfirst($blog_post.firstname)|escape:'html':'UTF-8'} {ucfirst($blog_post.lastname)|escape:'html':'UTF-8'}"/>
<div itemprop="publisher" itemtype="http://schema.org/Organization" itemscope="" style="display: none;">
<meta itemprop="name" content="{Configuration::get('PS_SHOP_NAME')|escape:'html':'UTF-8'}" />
{if Configuration::get('PS_LOGO')}
<div itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<meta itemprop="url" content="{$blog_config.YBC_BLOG_FREE_SHOP_URI|escape:'html':'UTF-8'}img/{Configuration::get('PS_LOGO')|escape:'html':'UTF-8'}" />
<meta itemprop="width" content="200px" />
<meta itemprop="height" content="100px" />
</div>
{/if}
</div>
{if $blog_post.image}
<div class="ybc_blog_free_img_wrapper" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
{if $enable_slideshow}<a href="{$blog_post.image|escape:'html':'UTF-8'}" class="prettyPhoto">{/if}
<img title="{$blog_post.title|escape:'html':'UTF-8'}" src="{$blog_post.image|escape:'html':'UTF-8'}" alt="{$blog_post.title|escape:'html':'UTF-8'}" itemprop="url" />
<meta itemprop="width" content="600px" />
<meta itemprop="height" content="300px" />
{if $enable_slideshow}</a>{/if}
</div>
{/if}
<div class="ybc-blog-wrapper-content">
{if $blog_post}
<h1 class="page-heading product-listing" itemprop="mainEntityOfPage"><span class="title_cat" itemprop="headline">{$blog_post.title|escape:'html':'UTF-8'}</span></h1>
<div class="post-details">
<div class="blog-extra">
<div class="ybc-blog-latest-toolbar">
{if $show_views}
<span title="{l s='Page views' mod='ybc_blog_free'}" class="ybc-blog-latest-toolbar-views">
{$blog_post.click_number|intval}
{if $blog_post.click_number != 1}
<span>{l s='Views' mod='ybc_blog_free'}</span>
{else}
<span>{l s='View' mod='ybc_blog_free'}</span>
{/if}
</span>
{/if}
{if $allow_like}
<span title="{if $likedPost}{l s='Liked' mod='ybc_blog_free'}{else}{l s='Like this post' mod='ybc_blog_free'}{/if}" class="ybc-blog-like-span ybc-blog-like-span-{$blog_post.id_post|intval} {if $likedPost}active{/if}" data-id-post="{$blog_post.id_post|intval}">
<span class="ben_{$blog_post.id_post|intval}">{$blog_post.likes|intval}</span>
<span class="blog-post-like-text blog-post-like-text-{$blog_post.id_post|intval}"><span>{l s='Liked' mod='ybc_blog_free'}</span></span>
</span>
{/if}
{if $allow_rating && $everage_rating}
<div class="blog_rating_wrapper" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
{if $total_review}
<span title="{l s='Comments' mod='ybc_blog_free'}" class="blog_rating_reviews">
<span class="total_views" itemprop="reviewCount">{$total_review|intval}</span>
<span>
{if $total_review != 1}
{l s='Reviews' mod='ybc_blog_free'}
{else}
{l s='Review' mod='ybc_blog_free'}
{/if}
</span>
</span>
{/if}
<div title="{l s='Everage rating' mod='ybc_blog_free'}" class="ybc_blog_free_review">
<span>{l s='Rating: ' mod='ybc_blog_free'}</span>
{for $i = 1 to $everage_rating}
<div class="star star_on"></div>
{/for}
{if $everage_rating<5}
{for $i = $everage_rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
<meta itemprop="worstRating" content="0"/>
<span class="ybc-blog-rating-value" itemprop="ratingValue">{number_format((float)$everage_rating, 1, '.', '')|escape:'html':'UTF-8'}</span>
<meta itemprop="bestRating" content="5"/>
</div>
</div>
{/if}
{if $show_date}
{if !$date_format}{assign var='date_format' value='F jS Y'}{/if}
<span class="post-date">
<span class="be-label">{l s='Posted on' mod='ybc_blog_free'}: </span>
<span>{date($date_format,strtotime($blog_post.datetime_added))|escape:'html':'UTF-8'}</span>
<meta itemprop="datePublished" content="{date('Y-m-d',strtotime($blog_post.datetime_added))|escape:'html':'UTF-8'}" />
<meta itemprop="dateModified" content="{date('Y-m-d',strtotime($blog_post.datetime_modified))|escape:'html':'UTF-8'}" />
</span>
{/if}
{if $show_author && ($blog_post.firstname || $blog_post.lastname)}
<div class="author-block">
<span class="post-author-label">{l s='Posted by: ' mod='ybc_blog_free'}</span>
<a href="{$blog_post.author_link|escape:'html':'UTF-8'}">
<span class="post-author-name">
{ucfirst($blog_post.firstname)|escape:'html':'UTF-8'} {ucfirst($blog_post.lastname)|escape:'html':'UTF-8'}
</span>
</a>
</div>
{/if}
</div>
<div class="ybc-blog-tags-social">
{if $use_google_share || $use_facebook_share || $use_twitter_share}
<div class="blog-extra-item blog-extra-facebook-share">
{if $use_facebook_share}
<div class="ybc_blog_free_button_share">
<div id="fb-root"></div>
{literal}
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.3";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
{/literal}
<div class="fb-like" data-href="{$post_url|escape:'html':'UTF-8'}" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
</div>
{/if}
{if $use_google_share}
<div class="ybc_blog_free_button_share">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div class="g-plusone" data-size="medium" data-href="{$post_url|escape:'html':'UTF-8'}"></div>
</div>
{/if}
{if $use_twitter_share}
<div class="ybc_blog_free_button_share">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="{$post_url|escape:'html':'UTF-8'}">{l s='Tweet' mod='ybc_blog_free'}</a>
{literal}
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
{/literal}
</div>
{/if}
</div>
{/if}
</div>
</div>
<div class="blog_description">
{if $blog_post.description}
{$blog_post.description nofilter}
{else}
{$blog_post.short_description nofilter}
{/if}
</div>
{if ($show_tags && $blog_post.tags) || ($show_categories && $blog_post.categories)}
<div class="extra_tag_cat">
{if $show_tags && $blog_post.tags}
<div class="ybc-blog-tags">
{assign var='ik' value=0}
{assign var='totalTag' value=count($blog_post.tags)}
<span class="be-label">
{if $totalTag > 1}{l s='Tags' mod='ybc_blog_free'}
{else}{l s='Tag' mod='ybc_blog_free'}{/if}:
</span>
{foreach from=$blog_post.tags item='tag'}
{assign var='ik' value=$ik+1}
<a href="{$tag.link|escape:'html':'UTF-8'}">{ucfirst($tag.tag)|escape:'html':'UTF-8'}</a>{if $ik < $totalTag}, {/if}
{/foreach}
</div>
{/if}
{if $show_categories && $blog_post.categories}
<div class="ybc-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($blog_post.categories)}
<div class="be-categories">
<span class="be-label">{l s='Posted in' mod='ybc_blog_free'}: </span>
{foreach from=$blog_post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
</div>
{/if}
</div>
{/if}
{if $display_related_products && $blog_post.products}
<div id="ybc-blog-related-products" class="">
<h4 class="title_blog">
{if count($blog_post.products) > 1}{l s='Related products ' mod='ybc_blog_free'}
{else}{l s='Related product' mod='ybc_blog_free'}{/if}
</h4>
<div class="ybc-blog-related-products-wrapper ybc-blog-related-products-list">
<ul class="blog-product-list product_list grid row ybc_related_products_type_{if $blog_related_product_type}{$blog_related_product_type|escape:'html':'UTF-8'}{else}default{/if}">
{foreach from=$blog_post.products item='product'}
<li class="ajax_block_product col-xs-12 col-sm-4">
<div class="product-container">
<div class="left-block">
<a href="{$product.link|escape:'html':'UTF-8'}"><img src="{$product.img_url|escape:'html':'UTF-8'}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
</div>
<div class="right-block">
<h5><a href="{$product.link|escape:'html':'UTF-8'}">{$product.name|escape:'html':'UTF-8'}</a></h5>
{if $show_price}
<div class="blog-product-extra content_price">
{if $product.price!=$product.old_price}
<span class="bp-price-old old-price"><span class="bp-price-old-label">{l s='Old price: ' mod='ybc_blog_free'}</span><span class="bp-price-old-display">{$product.old_price|escape:'html':'UTF-8'}</span></span>
{/if}
<span class="bp-price price product-price"><span class="bp-price-label">{l s='Price: ' mod='ybc_blog_free'}</span><span class="bp-price-display">{$product.price|escape:'html':'UTF-8'}</span></span>
{if $product.price!=$product.old_price}
<span class="bp-percent price-percent-reduction"><span class="bp-percent-label">{l s='Discount: ' mod='ybc_blog_free'}</span><span class="bp-percent-display">-{$product.discount_percent|escape:'html':'UTF-8'}{l s='%' mod='ybc_blog_free'}</span></span>
<span class="bp-save"><span class="bp-save-label">{l s='Save up: ' mod='ybc_blog_free'}</span><span class="bp-save-display">-{$product.discount_amount|escape:'html':'UTF-8'}</span></span>
{/if}
</div>
{/if}
{if $product.short_description}
<div class="blog-product-desc">
{$product.short_description|strip_tags:'UTF-8'|truncate:80:'...'|escape:'html':'UTF-8'}
</div>
{/if}
</div>
</div>
</li>
{/foreach}
</ul>
</div>
</div>
{/if}
<div class="ybc-blog-wrapper-comment">
{if $allowComments}
<div class="ybc_comment_form_blog">
<h4 class="title_blog">{l s='Leave a comment' mod='ybc_blog_free'}</h4>
<div class="ybc-blog-form-comment">
{if $hasLoggedIn || $allowGuestsComments}
<form action="{$blogCommentAction|escape:'html':'UTF-8'}" method="post">
{if !$hasLoggedIn}
<div class="blog-comment-row blog-name">
<label for="bc-name">{l s='Name' mod='ybc_blog_free'}</label>
<input class="form-control" name="name_customer" id="bc-name" type="text" value="{if isset($name_customer)}{$name_customer|escape:'html':'UTF-8'}{/if}" />
</div>
<div class="blog-comment-row blog-email">
<label for="bc-email">{l s='Email' mod='ybc_blog_free'}</label>
<input class="form-control" name="email_customer" id="bc-email" type="text" value="{if isset($email_customer)}{$email_customer|escape:'html':'UTF-8'}{/if}" />
</div>
{/if}
<div class="blog-comment-row blog-title">
<label for="bc-subject">{l s='Subject ' mod='ybc_blog_free'}</label>
<input class="form-control" name="subject" id="bc-subject" type="text" value="{if isset($subject)}{$subject|escape:'html':'UTF-8'}{/if}" />
</div>
<div class="blog-comment-row blog-content-comment">
<label for="bc-comment">{l s='Comment ' mod='ybc_blog_free'}</label>
<textarea class="form-control" name="comment" id="bc-comment">{if isset($comment)}{$comment|escape:'html':'UTF-8'}{/if}</textarea>
</div>
<div class="blog-comment-row flex_space_between">
{if $allow_rating || $use_capcha}
<div class="blog-rate-capcha">
{if $allow_rating}
<div class="blog-rate-post">
<label>{l s='Rating: ' mod='ybc_blog_free'}</label>
<div class="blog_rating_box">
{if $default_rating > 0 && $default_rating <5}
<input id="blog_rating" type="hidden" name="rating" value="{$default_rating|intval}" />
{for $i = 1 to $default_rating}
<div rel="{$i|intval}" class="star star_on blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{for $i = $default_rating + 1 to 5}
<div rel="{$i|intval}" class="star blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{else}
<input id="blog_rating" type="hidden" name="rating" value="5" />
{for $i = 1 to 5}
<div rel="{$i|intval}" class="star star_on blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{/if}
</div>
</div>
{/if}
{if $use_capcha}
<div class="blog-capcha">
<label for="bc-capcha">{l s='Security code: ' mod='ybc_blog_free'}</label>
<span class="bc-capcha-wrapper">
<img rel="{$blog_random_code|escape:'html':'UTF-8'}" id="ybc-blog-capcha-img" src="{$capcha_image|escape:'html':'UTF-8'}" />
<input class="form-control" name="capcha_code" type="text" id="bc-capcha" value="" />
<span id="ybc-blog-capcha-refesh" title="{l s='Refresh code' mod='ybc_blog_free'}">{*l s='Refresh code'*}</span>
</span>
</div>
{/if}
</div>
{/if}
<div class="blog-submit">
<input class="button" type="submit" value="{l s='Submit Comment' mod='ybc_blog_free'}" name="bcsubmit" />
</div>
</div>
{if $blog_errors && is_array($blog_errors)}
<ul class="alert alert-danger ybc_alert-danger">
{foreach from=$blog_errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
{if $blog_success}
<p class="alert alert-success ybc_alert-success">{$blog_success|escape:'html':'UTF-8'}</p>
{/if}
</form>
{else}
<p class="alert alert-warning">{l s='Log in to post comments' mod='ybc_blog_free'}</p>
{/if}
</div>
</div>
{if count($comments)}
<div class="ybc_blog_free-comments-list">
<h4 class="title_blog">
{l s='Comments ' mod='ybc_blog_free'}
</h4>
<ul class="blog-comments-list">
{foreach from=$comments item='comment'}
<li class="blog-comment-line" itemprop="review" itemscope="" itemtype="http://schema.org/Review">
<meta itemprop="author" content="{ucfirst($comment.name)|escape:'html':'UTF-8'}"/>
<div class="ybc-blog-detail-comment">
<h5 class="comment-subject">{$comment.subject|escape:'html':'UTF-8'}</h5>
{if $comment.name}<span class="comment-by">{l s='By : ' mod='ybc_blog_free'}<b>{ucfirst($comment.name)|escape:'html':'UTF-8'}</b></span>{/if}
<span class="comment-time"><span>{l s='On' mod='ybc_blog_free'} </span>{date($date_format,strtotime($comment.datetime_added))|escape:'html':'UTF-8'}</span>
{if $allow_rating && $comment.rating > 0}
<div class="comment-rating" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<meta itemprop="worstRating" content="0"/>
<meta itemprop="ratingValue" content="{number_format((float)$comment.rating, 1, '.', '')|escape:'html':'UTF-8'}"/>
<meta itemprop="bestRating" content="5"/>
<span>{l s='Rating: ' mod='ybc_blog_free'}</span>
<div class="ybc_blog_free_review">
{for $i = 1 to $comment.rating}
<div class="star star_on"></div>
{/for}
{if $comment.rating<5}
{for $i = $comment.rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
<span class="ybc-blog-everage-rating"> {number_format((float)$comment.rating, 1, '.', '')|escape:'html':'UTF-8'}</span>
</div>
</div>
{/if}
{if $comment.comment}<p class="comment-content">{$comment.comment|escape:'html':'UTF-8'}</p>{/if}
{if $allow_report_comment && $hasLoggedIn}
{if !($reportedComments && is_array($reportedComments) && in_array($comment.id_comment, $reportedComments))}
<span class="ybc-block-comment-report comment-report-{$comment.id_comment|intval}" rel="{$comment.id_comment|intval}">{l s='Report abuse' mod='ybc_blog_free'}</span>
{/if}
{/if}
{if $comment.reply}<p class="comment-reply">
{if $comment.elastname || $comment.efirstname}
<span class="ybc-blog-replied-by">
{l s='Replied by : ' mod='ybc_blog_free'}
<span class="ybc-blog-replied-by-name">
{ucfirst($comment.efirstname)|escape:'html':'UTF-8'} {ucfirst($comment.elastname)|escape:'html':'UTF-8'}
</span>
</span>
{/if}
<span class="ybc-blog-reply-content">
{$comment.reply|escape:'html':'UTF-8'}
</span></p>
{/if}
</div>
</li>
{/foreach}
</ul>
</div>
{/if}
{/if}
</div>
</div>
{else}
<p class="warning">{l s='No posts found' mod='ybc_blog_free'}</p>
{/if}
{if $blog_post.related_posts}
<div class="ybc-blog-related-posts ybc_blog_free_related_posts_type_{if $blog_related_posts_type}{$blog_related_posts_type|escape:'html':'UTF-8'}{else}default{/if}">
<h4 class="title_blog">{l s='Related posts' mod='ybc_blog_free'}</h4>
<div class="ybc-blog-related-posts-wrapper">
<ul class="ybc-blog-related-posts-list">
{foreach from=$blog_post.related_posts item='rpost'}
<li class="ybc-blog-related-posts-list-li thumbnail-container">
{if $rpost.thumb}
<a class="ybc_item_img" href="{$rpost.link|escape:'html':'UTF-8'}">
<img src="{$rpost.thumb|escape:'html':'UTF-8'}" alt="{$rpost.title|escape:'html':'UTF-8'}" />
</a>
{/if}
<a class="ybc_title_block" href="{$rpost.link|escape:'html':'UTF-8'}">{$rpost.title|escape:'html':'UTF-8'}</a>
<div class="ybc-blog-sidear-post-meta">
{if $rpost.categories}
{assign var='ik' value=0}
{assign var='totalCat' value=count($rpost.categories)}
<div class="ybc-blog-categories">
<span class="be-label">{l s='Posted in' mod='ybc_blog_free'}: </span>
{foreach from=$rpost.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
{/if}
<span class="post-date">{date($date_format,strtotime($rpost.datetime_added))|escape:'html':'UTF-8'}</span>
</div>
{if $allowComments || $show_views || $allow_like}
<div class="ybc-blog-latest-toolbar">
{if $show_views}
<span class="ybc-blog-latest-toolbar-views">
{$rpost.click_number|intval}
{if $rpost.click_number!=1}
<span>{l s='views' mod='ybc_blog_free'}</span>
{else}
<span>{l s='view' mod='ybc_blog_free'}</span>
{/if}
</span>
{/if}
{if $allow_like}
<span class="ybc-blog-like-span ybc-blog-like-span-{$rpost.id_post|intval} {if isset($rpost.liked) && $rpost.liked}active{/if}" data-id-post="{$rpost.id_post|intval}">
{$rpost.likes|intval}
<span class="blog-post-like-text blog-post-like-text-{$rpost.id_post|intval}">
{l s='Liked' mod='ybc_blog_free'}
</span>
</span>
{/if}
{if $allowComments}
<span class="ybc-blog-latest-toolbar-comments">{$rpost.comments_num|intval}
{if $rpost.comments_num!=1}
<span>{l s='comments' mod='ybc_blog_free'}</span>
{else}
<span>{l s='comment' mod='ybc_blog_free'}</span>
{/if}
</span>
{/if}
</div>
{/if}
{if $rpost.short_description}
<div class="blog_description">{$rpost.short_description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}</div>
{elseif $rpost.description}
<div class="blog_description">{$rpost.description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}</div>
{/if}
</li>
{/foreach}
</ul>
</div>
</div>
{/if}
</div>
</div>
{else}
<p class="alert alert-warning">{l s='This blog post is not available' mod='ybc_blog_free'}</p>
{/if}

View File

@@ -0,0 +1,47 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if $ybc_blog_free_error_message}
{$ybc_blog_free_error_message nofilter}
{/if}
<script type="text/javascript">
var ybc_blog_free_ajax_url = '{$ybc_blog_free_ajax_url nofilter}';
var ybc_blog_free_default_lang = {$ybc_blog_free_default_lang|intval};
var ybc_blog_free_is_updating = {$ybc_blog_free_is_updating|intval};
var ybc_blog_free_is_config_page = {$ybc_blog_free_is_config_page|intval};
var ybc_blog_free_invalid_file = '{$ybc_blog_free_invalid_file|escape:'html':'UTF-8'}';
</script>
<script type="text/javascript" src="{$ybc_blog_free_module_dir|escape:'html':'UTF-8'}views/js/admin.js"></script>
<div class="bootstrap">
<div class="row">
<div class="col-lg-12">
<div class="row">
{$ybc_blog_free_sidebar nofilter}
<div class="blog_center_content col-lg-10">
{$ybc_blog_free_body_html nofilter}
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,45 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_CATEGORIES_BLOCK) && $blog_config.YBC_BLOG_FREE_SHOW_CATEGORIES_BLOCK}
{hook h='blogCategoriesBlock'}
{/if}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_SEARCH_BLOCK) && $blog_config.YBC_BLOG_FREE_SHOW_SEARCH_BLOCK}
{hook h='blogSearchBlock'}
{/if}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_LATEST_NEWS_BLOCK) && $blog_config.YBC_BLOG_FREE_SHOW_LATEST_NEWS_BLOCK}
{hook h='blogNewsBlock'}
{/if}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_POPULAR_POST_BLOCK) && $blog_config.YBC_BLOG_FREE_SHOW_POPULAR_POST_BLOCK}
{hook h='blogPopularPostsBlock'}
{/if}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_FEATURED_BLOCK) && $blog_config.YBC_BLOG_FREE_SHOW_FEATURED_BLOCK}
{hook h='blogFeaturedPostsBlock'}
{/if}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_TAGS_BLOCK) && $blog_config.YBC_BLOG_FREE_SHOW_TAGS_BLOCK}
{hook h='blogTagsBlock'}
{/if}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_GALLERY_BLOCK) && $blog_config.YBC_BLOG_FREE_SHOW_GALLERY_BLOCK}
{hook h='blogGalleryBlock'}
{/if}

View File

@@ -0,0 +1,38 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if $categories}
<div class="block ybc_block_categories {$blog_config.YBC_BLOG_FREE_RTL_CLASS|escape:'html':'UTF-8'}">
<h4 class="title_blog title_block">{l s='Blog categories' mod='ybc_blog_free'}</h4>
<div class="content_block block_content">
<ul>
{foreach from=$categories item='cat'}
<li {if $cat.id_category==$active}class="active"{/if}>
<a href="{$cat.link|escape:'html':'UTF-8'}">{$cat.title|escape:'html':'UTF-8'}</a>
</li>
{/foreach}
</ul>
</div>
</div>
{/if}

View File

@@ -0,0 +1,31 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if $categories && count($categories) > 1}
{foreach from=$categories item='category'}
{$category.title|escape:'html':'UTF-8'}<br />
{/foreach}
{elseif isset($categories.0.title)}
{$categories.0.title|escape:'html':'UTF-8'}
{/if}

View File

@@ -0,0 +1,25 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{l s='This comment was posted by' mod='ybc_blog_free'} <a href="{$customerLink|escape:'html':'UTF-8'}" target="_blank">{$comment.name|escape:'html':'UTF-8'}</a> {l s='on' mod='ybc_blog_free'} <a href="{$postLink|escape:'html':'UTF-8'}" target="_blank">{$comment.post_title|escape:'html':'UTF-8'}</a>

View File

@@ -0,0 +1,83 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if isset($errors) && $errors}
<div class="ybc_blog_free_alert error">
<div class="bootstrap">
<div class="module_error alert alert-danger">
<button data-dismiss="alert" class="close" type="button">×</button>
<ul>
{foreach from=$errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</div>
</div>
</div>
{/if}
{if isset($import_ok) && $import_ok}
<div class="ybc_blog_free_alert success">
<div class="bootstrap">
<div class="module_confirmation conf confirm alert alert-success">
<button data-dismiss="alert" class="close" type="button">×</button>
{l s='Import successfull' mod='ybc_blog_free'}
</div>
</div>
</div>
{/if}
<form id="module_form" class="defaultForm form-horizontal" novalidate="" enctype="multipart/form-data" method="post" action="">
<div id="fieldset_0" class="panel">
<div class="panel-heading">
<i class="material-icons"></i>
{l s='Export/Import' mod='ybc_blog_free'}
</div>
<div class="ybc_blog_free_export_form_content">
<div class="ybc_blog_free_export_option">
<div class="panel-heading">
{l s='Export blog content' mod='ybc_blog_free'}
</div>
<button type="submit" name="submitExportBlog" class="submitExportBlog"><i class="icon icon-download"></i>{l s='Export blog' mod='ybc_blog_free'}</button>
<p class="ybc_blog_free_export_option_note">{l s='Export all blog data including blog images, text, custom CSS and configuration' mod='ybc_blog_free'}</p>
</div>
<div class="ybc_blog_free_import_option">
<div class="panel-heading">
{l s='Import blog data' mod='ybc_blog_free'}
</div>
<div class="ybc_blog_free_import_option_updata">
<label for="blogdata">{l s='Data package' mod='ybc_blog_free'}</label>
<input id="blogdata" type="file" name="blogdata" />
</div>
<div class="ybc_blog_free_import_option_clean">
<input type="checkbox" name="importoverride" id="importoverride" value="1" />
<label for="importoverride">{l s='Override existing data' mod='ybc_blog_free'}</label>
</div>
<div class="ybc_blog_free_import_option_button">
<div class="ybc_blog_free_import_submit">
<button type="submit" name="submitImportBlog" class="submitImportBlog"><i class="icon icon-compress"></i>{l s='Import data' mod='ybc_blog_free'}</button>
</div>
</div>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,105 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if $posts}
<div class="block {$blog_config.YBC_BLOG_FREE_RTL_CLASS|escape:'html':'UTF-8'} ybc_block_featured {if isset($page) && $page}page_{$page|escape:'html':'UTF-8'}{else}page_blog{/if} {if isset($page) && $page=='home'}{if isset($blog_config.YBC_BLOG_FREE_HOME_POST_TYPE) && $blog_config.YBC_BLOG_FREE_HOME_POST_TYPE=='default' || count($posts)<=1}ybc_block_default{else}ybc_block_slider{/if}{else}{if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POST_TYPE) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POST_TYPE=='default' || count($posts)<=1}ybc_block_default{else}ybc_block_slider{/if}{/if}">
<h4 class="title_blog title_block">{l s='Featured posts' mod='ybc_blog_free'}</h4>
<ul class="block_content">
{foreach from=$posts item='post'}
<li>
{if $post.thumb}<a class="ybc_item_img" href="{$post.link|escape:'html':'UTF-8'}"><img src="{$post.thumb|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" title="{$post.title|escape:'html':'UTF-8'}" /></a>{/if}
<div class="ybc-blog-latest-post-content">
<a class="ybc_title_block" href="{$post.link|escape:'html':'UTF-8'}">{$post.title|escape:'html':'UTF-8'}</a>
<div class="ybc-blog-sidear-post-meta">
{if isset($post.categories) && $post.categories}
<div class="ybc-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($post.categories)}
<div class="be-categories">
<span class="be-label">{l s='Posted in' mod='ybc_blog_free'}: </span>
{foreach from=$post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}<span class="comma">, </span>{/if}
{/foreach}
</div>
</div>
{/if}
<span class="post-date">{if isset($blog_config.YBC_BLOG_FREE_DATE_FORMAT)&&$blog_config.YBC_BLOG_FREE_DATE_FORMAT}{date($blog_config.YBC_BLOG_FREE_DATE_FORMAT, strtotime($post.datetime_added))|escape:'html':'UTF-8'}{else}{date('F jS Y', strtotime($post.datetime_added))|escape:'html':'UTF-8'}{/if}</span>
</div>
{if $allowComments || $show_views || $allow_like}
<div class="ybc-blog-latest-toolbar">
{if $show_views}
<span class="ybc-blog-latest-toolbar-views">
{$post.click_number|intval} {if $post.click_number!=1}
<span>{l s='views' mod='ybc_blog_free'}</span>
{else}
<span>{l s='view' mod='ybc_blog_free'}</span>
{/if}
</span>
{/if}
{if $allowComments}
<span class="ybc-blog-latest-toolbar-comments">{$post.comments_num|intval}
{if $post.comments_num!=1}<span>
{l s='comments' mod='ybc_blog_free'}</span>{else}
<span>{l s='comment' mod='ybc_blog_free'}</span>{/if}
</span>
{/if}
{if $allow_like}
<span title="{if $post.liked}{l s='Liked' mod='ybc_blog_free'}{else}{l s='Like this post' mod='ybc_blog_free'}{/if}" class="ybc-blog-like-span ybc-blog-like-span-{$post.id_post|intval} {if $post.liked}active{/if}" data-id-post="{$post.id_post|intval}">
<span class="ben_{$post.id_post|intval}">{$post.likes|intval}</span>
<span class="blog-post-like-text blog-post-like-text-{$post.id_post|intval}">{l s='Liked' mod='ybc_blog_free'}</span>
</span>
{/if}
</div>
{/if}
{if $post.short_description}
<div class="blog_description">
{if isset($blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH) && (int)$blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH>0}
{$post.short_description|strip_tags:'UTF-8'|truncate:(int)$blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH:'...'|escape:'html':'UTF-8'}
{else}
{$post.short_description|strip_tags:'UTF-8'|escape:'html':'UTF-8'}
{/if}
</div>
{elseif $post.description}
<div class="blog_description">
{if isset($blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH) && (int)$blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH>0}
{$post.description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}
{else}
{$post.description|strip_tags:'UTF-8'|escape:'html':'UTF-8'}
{/if}
</div>
{/if}
<a class="read_more" href="{$post.link|escape:'html':'UTF-8'}">{l s='Read more ...' mod='ybc_blog_free'}</a>
</div>
</li>
{/foreach}
</ul>
<div class="clear"></div>
</div>
{/if}

View File

@@ -0,0 +1,32 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<script type="text/javascript">
ybc_blog_free_like_url = '{$like_url|escape:'html':'UTF-8'}';
ybc_like_error ='{$ybc_like_error|escape:'quotes':'UTF-8'}';
YBC_BLOG_FREE_GALLERY_SPEED = {$YBC_BLOG_FREE_GALLERY_SPEED|intval};
YBC_BLOG_FREE_SLIDER_SPEED = {$YBC_BLOG_FREE_SLIDER_SPEED|intval};
YBC_BLOG_FREE_GALLERY_SKIN = '{$YBC_BLOG_FREE_GALLERY_SKIN|escape:'html':'UTF-8'}';
YBC_BLOG_FREE_GALLERY_AUTO_PLAY = {$YBC_BLOG_FREE_GALLERY_AUTO_PLAY|intval};
</script>

View File

@@ -0,0 +1,50 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<div class="block {$blog_config.YBC_BLOG_FREE_RTL_CLASS|escape:'html':'UTF-8'} ybc_block_gallery {if isset($page) && $page}page_{$page|escape:'html':'UTF-8'}_gallery{else}page_blog_gallery{/if} {if isset($blog_config.YBC_BLOG_FREE_GALLERY_BLOCK_HOME_SLIDER_ENABLED) && $blog_config.YBC_BLOG_FREE_GALLERY_BLOCK_HOME_SLIDER_ENABLED && $page=='home' || isset($blog_config.YBC_BLOG_FREE_GALLERY_BLOCK_SIDEBAR_SLIDER_ENABLED) && $blog_config.YBC_BLOG_FREE_GALLERY_BLOCK_SIDEBAR_SLIDER_ENABLED && $page!='home'}ybc_block_slider{else}ybc_block_default{/if}">
<h4 class="title_blog title_block">
<a href="{$gallery_link|escape:'html':'UTF-8'}">
{l s='Blog gallery' mod='ybc_blog_free'}
</a>
</h4>
{if $galleries}
<ul class="block_content">
{foreach from=$galleries item='gallery'}
<li>
{if isset($blog_config.YBC_BLOG_FREE_GALLERY_SLIDESHOW_ENABLED) && $blog_config.YBC_BLOG_FREE_GALLERY_SLIDESHOW_ENABLED}
<a {if $gallery.description}title="{strip_tags($gallery.description)|escape:'html':'UTF-8'}"{/if} rel="prettyPhotoBlock[galleryblock]" class="gallery_block_slider gallery_item" href="{$gallery.image|escape:'html':'UTF-8'}">
<img src="{$gallery.thumb|escape:'html':'UTF-8'}" title="{$gallery.title|escape:'html':'UTF-8'}" alt="{$gallery.title|escape:'html':'UTF-8'}" />
</a>
{else}
<img src="{$gallery.thumb|escape:'html':'UTF-8'}" title="{$gallery.title|escape:'html':'UTF-8'}" alt="{$gallery.title|escape:'html':'UTF-8'}" />
{/if}
<h3 class="ybc_title_block">{if strlen($gallery.title) > 50}{substr($gallery.title,0,49)|escape:'html':'UTF-8'}...{else}{$gallery.title|escape:'html':'UTF-8'}{/if}</h3>
</li>
{/foreach}
</ul>
{else}
<p>{l s='No featured images' mod='ybc_blog_free'}</p>
{/if}
<a class="view_all" href="{$gallery_link|escape:'html':'UTF-8'}">{l s='View gallery' mod='ybc_blog_free'}</a>
</div>

View File

@@ -0,0 +1,27 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if isset($css) && $css}
<style>{$css nofilter}</style>
{/if}

View File

@@ -0,0 +1,36 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_LATEST_BLOCK_HOME) && $blog_config.YBC_BLOG_FREE_SHOW_LATEST_BLOCK_HOME}
{hook h='blogNewsBlock' page='home'}
{/if}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_POPULAR_BLOCK_HOME) && $blog_config.YBC_BLOG_FREE_SHOW_POPULAR_BLOCK_HOME}
{hook h='blogPopularPostsBlock' page='home'}
{/if}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_FEATURED_BLOCK_HOME) && $blog_config.YBC_BLOG_FREE_SHOW_FEATURED_BLOCK_HOME}
{hook h='blogFeaturedPostsBlock' page='home'}
{/if}
{if isset($blog_config.YBC_BLOG_FREE_SHOW_GALLERY_BLOCK_HOME) && $blog_config.YBC_BLOG_FREE_SHOW_GALLERY_BLOCK_HOME}
{hook h='blogGalleryBlock' page='home'}
{/if}

View File

@@ -0,0 +1,33 @@
{*
* 2007-2021 ETS-Soft
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 wesite only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* 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 contact us for extra customization service at an affordable price
*
* @author ETS-Soft <etssoft.jsc@gmail.com>
* @copyright 2007-2021 ETS-Soft
* @license Valid for 1 website (or project) for each purchase of license
* International Registered Trademark & Property of ETS-Soft
*}
<script type="text/javascript">
function phProductFeedResizeIframe(obj) {
$('iframe').css('height','auto');
setTimeout(function() {
$('iframe').css('opacity',1);
var pHeight = $(obj).parent().height();
$(obj).css('height','540px');
}, 300);
}
</script>
<div id="ph_preview_template_html">
<iframe src="{$url_iframe|escape:'html':'UTF-8'}" style="background: #ffffff ; border : 1px solid #ccc;width:100%;height:0;opacity:0;border-radius:5px" onload="phProductFeedResizeIframe(this)"></iframe>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 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 <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,96 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if $posts}
<div class="block ybc_block_latest {$blog_config.YBC_BLOG_FREE_RTL_CLASS|escape:'html':'UTF-8'} {if isset($page) && $page}page_{$page|escape:'html':'UTF-8'}{else}page_blog{/if} {if isset($page) && $page=='home'}{if isset($blog_config.YBC_BLOG_FREE_HOME_POST_TYPE) && $blog_config.YBC_BLOG_FREE_HOME_POST_TYPE=='default' || count($posts)<=1}ybc_block_default{else}ybc_block_slider{/if}{else}{if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POST_TYPE) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POST_TYPE=='default' || count($posts)<=1}ybc_block_default{else}ybc_block_slider{/if}{/if}">
<h4 class="title_blog title_block">{l s='Latest posts' mod='ybc_blog_free'}</h4>
<ul class="block_content">
{foreach from=$posts item='post'}
<li>
{if $post.thumb}<a class="ybc_item_img" href="{$post.link|escape:'html':'UTF-8'}"><img src="{$post.thumb|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" title="{$post.title|escape:'html':'UTF-8'}" /></a>{/if}
<div class="ybc-blog-latest-post-content">
<a class="ybc_title_block" href="{$post.link|escape:'html':'UTF-8'}">{$post.title|escape:'html':'UTF-8'}</a>
<div class="ybc-blog-sidear-post-meta">
{if isset($post.categories) && $post.categories}
<div class="ybc-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($post.categories)}
<div class="be-categories">
<span class="be-label">{l s='Posted in' mod='ybc_blog_free'}: </span>
{foreach from=$post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}<span class="comma">, </span>{/if}
{/foreach}
</div>
</div>
{/if}
<span class="post-date">{if isset($blog_config.YBC_BLOG_FREE_DATE_FORMAT)&&$blog_config.YBC_BLOG_FREE_DATE_FORMAT}{date($blog_config.YBC_BLOG_FREE_DATE_FORMAT, strtotime($post.datetime_added))|escape:'html':'UTF-8'}{else}{date('F jS Y', strtotime($post.datetime_added))|escape:'html':'UTF-8'}{/if}</span>
</div>
{if $allowComments || $show_views || $allow_like}
<div class="ybc-blog-latest-toolbar">
{if $show_views}
<span class="ybc-blog-latest-toolbar-views">{$post.click_number|intval} {if $post.click_number!=1}<span>{l s='views' mod='ybc_blog_free'}</span>{else}<span>{l s='view' mod='ybc_blog_free'}</span>{/if}</span>
{/if}
{if $allowComments}
<span class="ybc-blog-latest-toolbar-comments">{$post.comments_num|intval} {if $post.comments_num!=1}<span>
{l s='comments' mod='ybc_blog_free'}</span>{else}<span>{l s='comment' mod='ybc_blog_free'}</span>{/if}</span>
{/if}
{if $allow_like}
<span title="{if $post.liked}{l s='Liked' mod='ybc_blog_free'}{else}{l s='Like this post' mod='ybc_blog_free'}{/if}" class="ybc-blog-like-span ybc-blog-like-span-{$post.id_post|intval} {if $post.liked}active{/if}" data-id-post="{$post.id_post|intval}">
<span class="ben_{$post.id_post|intval}">{$post.likes|intval}</span>
<span class="blog-post-like-text blog-post-like-text-{$post.id_post|intval}">{l s='Liked' mod='ybc_blog_free'}</span>
</span>
{/if}
</div>
{/if}
{if $post.short_description}
<div class="blog_description"><p>
{if isset($blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH) && (int)$blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH>0}
{$post.short_description|strip_tags:'UTF-8'|truncate:(int)$blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH:'...'|escape:'html':'UTF-8'}
{else}
{$post.short_description|strip_tags:'UTF-8'|escape:'html':'UTF-8'}
{/if}</p>
</div>
{elseif $post.description}
<div class="blog_description">
{if isset($blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH) && (int)$blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH>0}
{$post.description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}
{else}
{$post.description|strip_tags:'UTF-8'|escape:'html':'UTF-8'}
{/if}
</div>
{/if}
<a class="read_more" href="{$post.link|escape:'html':'UTF-8'}">{l s='Read more ...' mod='ybc_blog_free'}</a>
</div>
</li>
{/foreach}
</ul>
<div class="clear"></div>
</div>
{/if}

View File

@@ -0,0 +1,168 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<div class="panel ybc-blog-panel">
<div class="panel-heading">{$title|escape:'html':'UTF-8'}
{if isset($totalRecords)}<span class="badge">{$totalRecords|intval}</span>{/if}
<span class="panel-heading-action">
{if !isset($show_add_new) || isset($show_add_new) && $show_add_new}
<a class="list-toolbar-btn" href="{$currentIndex|escape:'html':'UTF-8'}">
<span data-placement="top" data-html="true" data-original-title="{l s='Add new' mod='ybc_blog_free'}" class="label-tooltip" data-toggle="tooltip" title="">
<i class="process-icon-new"></i>
</span>
</a>
{/if}
{if isset($preview_link) && $preview_link}
<a target="_blank" class="list-toolbar-btn" href="{$preview_link|escape:'html':'UTF-8'}">
<span data-placement="top" data-html="true" data-original-title="{l s='Preview ' mod='ybc_blog_free'} ({$title|escape:'html':'UTF-8'})" class="label-tooltip" data-toggle="tooltip" title="">
<i style="margin-left: 5px;" class="icon-search"></i>
</span>
</a>
{/if}
</span>
</div>
{if $fields_list}
<div class="table-responsive clearfix">
<form method="post" action="{$currentIndex|escape:'html':'UTF-8'}&amp;list=true">
<table class="table configuration">
<thead>
<tr class="nodrag nodrop">
{foreach from=$fields_list item='field' key='index'}
<th>
<span class="title_box">
{$field.title|escape:'html':'UTF-8'}
{if isset($field.sort) && $field.sort}
<a href="{$currentIndex|escape:'html':'UTF-8'}&amp;sort={$index|escape:'html':'UTF-8'}&amp;sort_type=asc&amp;list=true{$filter_params nofilter}"><i class="icon-caret-down"></i></a>
<a href="{$currentIndex|escape:'html':'UTF-8'}&amp;sort={$index|escape:'html':'UTF-8'}&amp;sort_type=desc&amp;list=true{$filter_params nofilter}"><i class="icon-caret-up"></i></a>
{/if}
</span>
</th>
{/foreach}
{if $show_action}
<th style="text-align: center;">{l s='Action' mod='ybc_blog_free'}</th>
{/if}
</tr>
{if $show_toolbar}
<tr class="nodrag nodrop filter row_hover">
{foreach from=$fields_list item='field' key='index'}
<th>
{if isset($field.filter) && $field.filter}
{if $field.type=='text'}
<input class="filter" name="{$index|escape:'html':'UTF-8'}" type="text" {if isset($field.width)}style="width: {$field.width|intval}px;"{/if} {if isset($field.active)}value="{$field.active|escape:'html':'UTF-8'}"{/if}/>
{/if}
{if $field.type=='select' || $field.type=='active'}
<select {if isset($field.width)}style="width: {$field.width|intval}px;"{/if} name="{$index|escape:'html':'UTF-8'}">
<option value=""> -- </option>
{if isset($field.filter_list.list) && $field.filter_list.list}
{assign var='id_option' value=$field.filter_list.id_option}
{assign var='value' value=$field.filter_list.value}
{foreach from=$field.filter_list.list item='option'}
<option {if $field.active!=='' && $field.active==$option.$id_option} selected="selected" {/if} value="{$option.$id_option|escape:'html':'UTF-8'}">{$option.$value|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
{/if}
{else}
{l s=' -- ' mod='ybc_blog_free'}
{/if}
</th>
{/foreach}
{if $show_action}
<th class="actions">
<span class="pull-right">
<input type="hidden" name="post_filter" value="yes" />
{if $show_reset}<a class="btn btn-warning" href="{$currentIndex|escape:'html':'UTF-8'}&amp;list=true"><i class="icon-eraser"></i> {l s='Reset' mod='ybc_blog_free'}</a> &nbsp;{/if}
<button class="btn btn-default" name="ybc_submit_{$name|escape:'html':'UTF-8'}" id="ybc_submit_{$name|escape:'html':'UTF-8'}" type="submit">
<i class="icon-search"></i> {l s='Filter' mod='ybc_blog_free'}
</button>
</span>
</th>
{/if}
</tr>
{/if}
</thead>
<tbody>
{foreach from=$field_values item='row'}
<tr>
{foreach from=$fields_list item='field' key='key'}
<td class="pointer">
{if isset($field.rating_field) && $field.rating_field}
{if isset($row.$key) && $row.$key > 0}
{for $i=1 to (int)$row.$key}
<div class="star star_on"></div>
{/for}
{if (int)$row.$key < 5}
{for $i=(int)$row.$key+1 to 5}
<div class="star"></div>
{/for}
{/if}
{else}
{l s=' -- ' mod='ybc_blog_free'}
{/if}
{elseif $field.type != 'active'}
{if isset($row.$key) && !is_array($row.$key)}{if isset($field.strip_tag) && !$field.strip_tag}{$row.$key nofilter}{else}{$row.$key|strip_tags:'UTF-8'|truncate:120:'...'}{/if}{/if}
{if isset($row.$key) && is_array($row.$key) && isset($row.$key.image_field) && $row.$key.image_field}
<a class="ybc_fancy" href="{$row.$key.img_url|escape:'html':'UTF-8'}"><img style="{if isset($row.$key.height) && $row.$key.height}max-height: {$row.$key.height|intval}px;{/if}{if isset($row.$key.width) && $row.$key.width}max-width: {$row.$key.width|intval}px;{/if}" src="{$row.$key.img_url|escape:'html':'UTF-8'}" /></a>
{/if}
{else}
{if isset($row.$key) && $row.$key}
<a href="{$currentIndex|escape:'html':'UTF-8'}&amp;{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&amp;change_enabled=0&amp;field={$key|escape:'html':'UTF-8'}" class="list-action field-{$key|escape:'html':'UTF-8'} list-action-enable action-enabled list-item-{$row.$identifier|escape:'html':'UTF-8'}" data-id="{$row.$identifier|escape:'html':'UTF-8'}"><i class="icon-check"></i></a>
{else}
<a href="{$currentIndex|escape:'html':'UTF-8'}&amp;{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&amp;change_enabled=1&amp;field={$key|escape:'html':'UTF-8'}" class="list-action field-{$key|escape:'html':'UTF-8'} list-action-enable action-disabled list-item-{$row.$identifier|escape:'html':'UTF-8'}" data-id="{$row.$identifier|escape:'html':'UTF-8'}"><i class="icon-remove"></i></a>
{/if}
{/if}
</td>
{/foreach}
{if $show_action}
<td class="text-right">
<div class="btn-group-action">
<div class="btn-group pull-right">
<a class="edit btn btn-default" href="{$currentIndex|escape:'html':'UTF-8'}&amp;{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}"><i class="icon-pencil"></i> {l s='Edit' mod='ybc_blog_free'}</a>
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
<i class="icon-caret-down"></i>&nbsp;
</button>
<ul class="dropdown-menu">
{if isset($row.view_url) && $row.view_url}
<li><a target="_blank" href="{$row.view_url|escape:'html':'UTF-8'}"><i class="icon-search-plus"></i> {if isset($row.view_text) && $row.view_text} {$row.view_text|escape:'html':'UTF-8'}{else} {l s='Preview' mod='ybc_blog_free'}{/if}</a></li>
<li class="divider"></li>
{/if}
<li><a onclick="return confirm('{l s='Do you want to delete this item?' mod='ybc_blog_free'}');" href="{$currentIndex|escape:'html':'UTF-8'}&amp;{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&del=yes"><i class="icon-trash"></i> {l s='Delete' mod='ybc_blog_free'}</a></li>
</ul>
</div>
</div>
</td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
{if $paggination}
<div class="ybc_paggination" style="margin-top: 10px;">
{$paggination nofilter}
</div>
{/if}
</form>
</div>
{/if}
</div>

View File

@@ -0,0 +1,29 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if isset($nodes) && $nodes}
{foreach from=$nodes item='node'}
<a class="ybc-blog-breadcrumb-a" href="{$node.url|escape:'html':'UTF-8'}">{$node.title|escape:'html':'UTF-8'}</a>
{/foreach}
{/if}

View File

@@ -0,0 +1,103 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if $posts}
{if !isset($date_format) || isset($date_format) && !$date_format}{assign var='date_format' value='F jS Y'}{/if}
<div class="block ybc_block_popular {$blog_config.YBC_BLOG_FREE_RTL_CLASS|escape:'html':'UTF-8'} {if isset($page) && $page}page_{$page|escape:'html':'UTF-8'}{else}page_blog{/if} {if isset($page) && $page=='home'}{if isset($blog_config.YBC_BLOG_FREE_HOME_POST_TYPE) && $blog_config.YBC_BLOG_FREE_HOME_POST_TYPE=='default' || count($posts)<=1}ybc_block_default{else}ybc_block_slider{/if}{else}{if isset($blog_config.YBC_BLOG_FREE_SIDEBAR_POST_TYPE) && $blog_config.YBC_BLOG_FREE_SIDEBAR_POST_TYPE=='default' || count($posts)<=1}ybc_block_default{else}ybc_block_slider{/if}{/if}">
<h4 class="title_blog title_block">{l s='Popular posts' mod='ybc_blog_free'}</h4>
<ul class="block_content">
{foreach from=$posts item='post'}
<li>
{if $post.thumb}<a class="ybc_item_img" href="{$post.link|escape:'html':'UTF-8'}"><img src="{$post.thumb|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" title="{$post.title|escape:'html':'UTF-8'}" /></a>{/if}
<div class="ybc-blog-popular-content">
<a class="ybc_title_block" href="{$post.link|escape:'html':'UTF-8'}">{$post.title|escape:'html':'UTF-8'}</a>
{if $post.categories || isset($blog_config.YBC_BLOG_FREE_DATE_FORMAT)&&$blog_config.YBC_BLOG_FREE_DATE_FORMAT}
<div class="ybc-blog-sidear-post-meta">
{if $post.categories}
<div class="ybc-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($post.categories)}
<div class="be-categories">
<span class="be-label">{l s='Posted in' mod='ybc_blog_free'}: </span>
{foreach from=$post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
</div>
{/if}
{if isset($blog_config.YBC_BLOG_FREE_DATE_FORMAT)&&$blog_config.YBC_BLOG_FREE_DATE_FORMAT}
<span class="post-date">
{date($blog_config.YBC_BLOG_FREE_DATE_FORMAT, strtotime($post.datetime_added))|escape:'html':'UTF-8'}
</span>
{else}
<span class="post-date">
{date('F jS Y', strtotime($post.datetime_added))|escape:'html':'UTF-8'}
</span>
{/if}
</div>
{/if}
{if $allowComments || $show_views || $allow_like}
<div class="ybc-blog-latest-toolbar">
{if $show_views}
<span class="ybc-blog-latest-toolbar-views">{$post.click_number|intval} {if $post.click_number!=1}<span>{l s='views' mod='ybc_blog_free'}</span>{else}<span>{l s='view' mod='ybc_blog_free'}</span>{/if}</span>
{/if}
{if $allowComments}
<span class="ybc-blog-latest-toolbar-comments">{$post.comments_num|intval} {if $post.comments_num!=1}<span>{l s='comments' mod='ybc_blog_free'}</span>{else}<span>{l s='comment' mod='ybc_blog_free'}</span>{/if}</span>
{/if}
{if $allow_like}
<span title="{if $post.liked}{l s='Liked' mod='ybc_blog_free'}{else}{l s='Like this post' mod='ybc_blog_free'}{/if}" class="ybc-blog-like-span ybc-blog-like-span-{$post.id_post|intval} {if $post.liked}active{/if}" data-id-post="{$post.id_post|intval}">
<span class="ben_{$post.id_post|intval}">{$post.likes|intval}</span>
<span class="blog-post-like-text blog-post-like-text-{$post.id_post|intval}">{l s='Liked' mod='ybc_blog_free'}</span>
</span>
{/if}
</div>
{/if}
{if $post.short_description}
<div class="blog_description">
{if isset($blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH) && (int)$blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH>0}
{$post.short_description|strip_tags:'UTF-8'|truncate:(int)$blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH:'...'|escape:'html':'UTF-8'}
{else}
{$post.short_description|strip_tags:'UTF-8'|escape:'html':'UTF-8'}
{/if}
</div>
{elseif $post.description}
<div class="blog_description"><p>
{if isset($blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH) && (int)$blog_config.YBC_BLOG_FREE_POST_EXCERPT_LENGTH>0}
{$post.description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}
{else}
{$post.description|strip_tags:'UTF-8'|escape:'html':'UTF-8'}
{/if} </p>
</div>
{/if}
<a class="read_more" href="{$post.link|escape:'html':'UTF-8'}">{l s='Read more ...' mod='ybc_blog_free'}</a>
</div>
</li>
{/foreach}
</ul>
<div class="clear"></div>
</div>
{/if}

View File

@@ -0,0 +1,34 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<div class="block ybc_block_search {$blog_config.YBC_BLOG_FREE_RTL_CLASS|escape:'html':'UTF-8'}">
<h4 class="title_blog title_block">{l s='Blog Search' mod='ybc_blog_free'}</h4>
<div class="content_block block_content">
<form action="{$action|escape:'html':'UTF-8'}" method="post">
<input class="form-control" type="text" name="blog_search" placeholder="{l s='Type in key words...' mod='ybc_blog_free'}" value="{$search|escape:'html':'UTF-8'}" />
<input class="button" type="submit" value="{l s='Search' mod='ybc_blog_free'}" />
<span class="icon_search"></span>
</form>
</div>
</div>

View File

@@ -0,0 +1,33 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
<div class="ybc-left-panel col-lg-2">
<div class="list-group">
{if $list}
{foreach from=$list item='tab'}
<a class="{if $active == $tab.id}active{/if} list-group-item" href="{$tab.url|escape:'html':'UTF-8'}" id="{$tab.id|escape:'html':'UTF-8'}">{if isset($tab.icon)}<i class="{$tab.icon|escape:'html':'UTF-8'}"></i> {/if}{$tab.label|escape:'html':'UTF-8'}</a>
{/foreach}
{/if}
</div>
</div>

View File

@@ -0,0 +1,45 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if $slides}
<div class="bybc-blog-slider {$blog_config.YBC_BLOG_FREE_RTL_CLASS|escape:'html':'UTF-8'} {if isset($blog_config.YBC_BLOG_FREE_SLIDER_DISPLAY_CAPTION) && $blog_config.YBC_BLOG_FREE_SLIDER_DISPLAY_CAPTION}caption-enabled{else}caption-disabled{/if} {if isset($blog_config.YBC_BLOG_FREE_SLIDER_DISPLAY_NAV) && $blog_config.YBC_BLOG_FREE_SLIDER_DISPLAY_NAV}nav-enabled{else}nav-disabled{/if}">
<div class="block_content">
<div class="ybc-blog-slider loading slider-wrapper theme-{$nivoTheme|escape:'html':'UTF-8'}">
<div class="loading_img">
<img src="{$loading_img|escape:'html':'UTF-8'}" alt="{l s='loading' mod='ybc_blog_free'}" /></div>
<div id="ybc_slider">
{foreach from=$slides item='slide'}
{if $slide.url}<a href="{$slide.url|escape:'html':'UTF-8'}">{/if}
<img src="{$slide.image|escape:'html':'UTF-8'}" alt="{$slide.caption|escape:'html':'UTF-8'}" title="{$slide.caption|escape:'html':'UTF-8'}" />
{if $slide.url}</a>{/if}
{/foreach}
</div>
</div>
</div>
</div>
<script type="text/javascript">
var sliderAutoPlay = {if $nivoAutoPlay}true{else}false{/if};
</script>
{/if}

View File

@@ -0,0 +1,26 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if $msg}{$msg|escape:'html':'UTF-8'}{/if}
{if $title && $link} | <a href="{$link|escape:'html':'UTF-8'}" target="_blank"><b>{$title|escape:'html':'UTF-8'}</b></a>{/if}

View File

@@ -0,0 +1,40 @@
{*
* 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 <contact@prestashop.com>
* @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
*}
{if $tags}
<div class="block ybc_block_tag {$blog_config.YBC_BLOG_FREE_RTL_CLASS|escape:'html':'UTF-8'}">
<h4 class="title_blog title_block">{l s='Blog tags' mod='ybc_blog_free'}</h4>
{assign var='totalTags' value=count($tags)}
{assign var='ik' value=0}
<div class="content_block block_content">
<div class="blog_tag">
{foreach from=$tags item='tag'}
{assign var='ik' value=$ik+1}
<a class="{if $tag.viewed > 10000}tag_10000{elseif $tag.viewed > 1000}tag_1000{elseif $tag.viewed > 500}tag_500{elseif $tag.viewed > 100}tag_100{elseif $tag.viewed > 10}tag_10{elseif $tag.viewed > 5}tag_5{elseif $tag.viewed > 1}tag_1{elseif $tag.viewed <= 0}tag_0{/if} ybc-blog-tag-a" href="{$tag.link|escape:'html':'UTF-8'}">{$tag.tag|escape:'html':'UTF-8'}</a>
{/foreach}
</div>
<!-- Tags: 10000, 1000, 500, 100, 10, 5, 1, 0 -->
</div>
</div>
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 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 <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;