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,99 @@
{*
* Copyright: YourBestCode.Com
* Email: support@yourbestcode.com
*}
{extends file="helpers/form/form.tpl"}
{block name="input_row"}
{if $input.name=='BEGIN_FORM' || $input.name=='END_FORM'}
{if $input.name=='BEGIN_FORM'}<div class="ybc-form"><div class="ybc-form-left">{if isset($input.html)}{$input.html nofilter}{/if}</div><div class="ybc-form-right">{/if}
{if $input.name=='END_FORM'}
<input type="hidden" name="submited_tab" value="{if isset($smarty.get.submited_tab)}{$smarty.get.submited_tab|escape:'html':'UTF-8'}{else}ybc_tab_general{/if}" /></div></div>
<script type="text/javascript">
{literal}
$(document).ready(function(){
if($('.ybc_fancy').length > 0)
{
$('.ybc_fancy').fancybox();
}
});
{/literal}
</script>
{/if}
{else}
<div class="ybc-form-group{if isset($input.group) && $input.group} {$input.group|escape:'html':'UTF-8'}{/if} {if isset($input.separator) && $input.separator} ybc-tc-separator{/if} {if isset($input.is_custom_color) && $input.is_custom_color} ybc_custom_color{/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>
{/if}
{/block}
{block name="field"}
{if $input.type != 'backgroundimg' && $input.type != 'file' && $input.name!='BEGIN_FORM' && $input.name!='END_FORM' && $input.name!='IMPORT_DATA'}
{$smarty.block.parent}
{elseif $input.name=='IMPORT_DATA'}
<div class="col-lg-9">
{if isset($input.sections) && $input.sections}
{foreach from=$input.sections item='section'}
<input type="checkbox" name="IMPORT_DATA[]" value="{$section.id|escape:'html':'UTF-8'}" id="IMPORT_DATA_{$section.id|escape:'html':'UTF-8'}" /> <label style="font-weight: normal;" for="IMPORT_DATA_{$section.id|escape:'html':'UTF-8'}">{$section.name|escape:'html':'UTF-8'}</label><br />
{/foreach}
<input type="submit" name="SUBMIT_IMPORT" value="{l s='Import sample data' mod='ybc_themeconfig'}" class="button btn btn-default" id="ybc_submit_import" />
{if isset($devMode) && $devMode}
<input type="submit" name="SUBMIT_EXPORT" value="{l s='Export sample data to sql files' mod='ybc_themeconfig'}" class="button btn btn-default" id="ybc_submit_export" />
{/if}
<div style="display: none;" id="ybc_import_warning_msg">{l s='You are going to overried your old data of the selected section(s). Do you confirm?' mod='ybc_themeconfig'}</div>
<div style="display: none;" id="ybc_export_warning_msg">{l s='You are going to overried all sample data. Do you confirm?' mod='ybc_themeconfig'}</div>
<div class="ybc-tc-import-loading"><img src="{$module_path|escape:'html':'UTF-8'}img/loading-admin.gif" /></div>
{/if}
</div>
{elseif $input.type == 'backgroundimg'}
<div class="col-lg-9">
<input type="hidden" id="YBC_TC_BG_IMG" name="{$input.name|escape:'html':'UTF-8'}" value="{$fields_value.YBC_TC_BG_IMG|escape:'html':'UTF-8'}" />
<ul style="float: left; padding: 0; margin-top: 5px;">
{if $input.bgs}
{foreach from=$input.bgs item='bg'}
<li style="list-style: none; cursor: pointer; display: inline-block; margin: 0 2px;"><span class="ybc-img-span" rel={$bg|escape:'html':'UTF-8'} style="width: 50px; height: 50px; display: inline-block; background: url('{$base_url|escape:'html':'UTF-8'}modules/ybc_themeconfig/bgs/{$bg|escape:'html':'UTF-8'}.png'); border: 1px solid {if $fields_value.YBC_TC_BG_IMG==$bg}#0176B5{else}#eee{/if};"></span></li>
{/foreach}
{/if}
</ul>
</div>
{elseif $input.type == 'file' && isset($input.display_img) && $input.display_img}
{$smarty.block.parent}
<label class="control-label col-lg-3" style="font-style: italic;">{l s='Uploaded image: ' mod='ybc_themeconfig'}</label>
<div class="col-lg-9">
<a class="ybc_fancy" href="{$input.display_img|escape:'html':'UTF-8'}"><img title="{l s='Click to see full size image' mod='ybc_themeconfig'}" style="display: inline-block; max-width: 200px;" src="{$input.display_img|escape:'html':'UTF-8'}" /></a>
{if isset($input.img_del_link) && $input.img_del_link && !(isset($input.required) && $input.required)}
<a onclick="return confirm('{l s='Do you want to delete this image?' mod='ybc_themeconfig'}');" style="display: inline-block; text-decoration: none!important;" href="{$input.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'}
{$smarty.block.parent}
{/if}
<script type="text/javascript">
$(document).ready(function(){
$('.ybc-img-span').click(function(){
$('#YBC_TC_BG_IMG').val($(this).attr('rel'));
$('.ybc-img-span').css('border-color','#eee');
$(this).css('border-color','#0176B5');
});
});
</script>
{/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($reset_url) && $reset_url}
<a title="{l s='Reset to default parameters' mod='ybc_themeconfig'}" onclick="return confirm('{l s='You are going to reset all parameters to default. Do you confirm?' mod='ybc_themeconfig'}');" class="btn btn-default" href="{$reset_url|escape:'html':'UTF-8'}"><i class="process-icon-refresh"></i>{l s='Reset' mod='ybc_themeconfig'}</a>
{/if}
<div class="ybc-tc-loading"><img src="{$module_path|escape:'html':'UTF-8'}img/loading-admin.gif" /></div>
{if isset($fieldset['form']['submit']) && !empty($fieldset['form']['submit'])}
<button type="submit" value="1" id="{if isset($fieldset['form']['submit']['id'])}{$fieldset['form']['submit']['id']}{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']}{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']}{else}btn btn-default pull-right{/if}">
<i class="{if isset($fieldset['form']['submit']['icon'])}{$fieldset['form']['submit']['icon']}{else}process-icon-save{/if}"></i> {$fieldset['form']['submit']['title']}
</button>
{/if}
</div>
{/if}
{/block}

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-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-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-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-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-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-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-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-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section id="ybc_social_block" class="ybc_social_config">
<h4 style="display: none;">{l s='Social' mod='ybc_themeconfig'}</h4>
<ul>
{if isset($facebook_url) && $facebook_url != ''}
<li class="facebook">
<a class="_blank" href="{$facebook_url|escape:html:'UTF-8'}">
<span><i class="icon-facebook"></i>{l s='Facebook' mod='ybc_themeconfig'}</span>
</a>
</li>
{/if}
{if isset($twitter_url) && $twitter_url != ''}
<li class="twitter">
<a class="_blank" href="{$twitter_url|escape:html:'UTF-8'}">
<span><i class="icon-twitter"></i>{l s='Twitter' mod='ybc_themeconfig'}</span>
</a>
</li>
{/if}
{if isset($google_plus_url) && $google_plus_url != ''}
<li class="google-plus">
<a class="_blank" href="{$google_plus_url|escape:html:'UTF-8'}" rel="publisher">
<span><i class="icon-google-plus"></i>{l s='Google Plus' mod='ybc_themeconfig'}</span>
</a>
</li>
{/if}
{if isset($linkedin_url) && $linkedin_url != ''}
<li class="linkedin">
<a class="_blank" href="{$linkedin_url|escape:html:'UTF-8'}">
<span><i class="icon-linkedin" ></i>{l s='Linkedin' mod='ybc_themeconfig'}</span>
</a>
</li>
{/if}
{if isset($rss_url) && $rss_url != ''}
<li class="rss">
<a class="_blank" href="{$rss_url|escape:html:'UTF-8'}">
<span><i class="icon-rss"></i>{l s='RSS' mod='ybc_themeconfig'}</span>
</a>
</li>
{/if}
{if isset($youtube_url) && $youtube_url != ''}
<li class="youtube">
<a class="_blank" href="{$youtube_url|escape:html:'UTF-8'}">
<span><i class="icon-youtube"></i>{l s='Youtube' mod='ybc_themeconfig'}</span>
</a>
</li>
{/if}
{if isset($pinterest_url) && $pinterest_url != ''}
<li class="pinterest">
<a class="_blank" href="{$pinterest_url|escape:html:'UTF-8'}">
<span><i class="icon-pinterest-p"></i>{l s='Pinterest' mod='ybc_themeconfig'}</span>
</a>
</li>
{/if}
{if isset($vimeo_url) && $vimeo_url != ''}
<li class="vimeo">
<a class="_blank" href="{$vimeo_url|escape:html:'UTF-8'}">
<span><i class="icon-vimeo-square"></i>{l s='Vimeo' mod='ybc_themeconfig'}</span>
</a>
</li>
{/if}
{if isset($instagram_url) && $instagram_url != ''}
<li class="instagram">
<a class="_blank" href="{$instagram_url|escape:html:'UTF-8'}">
<span><i class="icon-instagram" ></i>{l s='Instagram' mod='ybc_themeconfig'}</span>
</a>
</li>
{/if}
</ul>
</section>
<div class="clearfix"></div>

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,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-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-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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,21 @@
{if $modules}
<script type="text/javascript">
$(document).ready(function(){
var ybc_tc_links = '{foreach from=$modules item='module'}{if $module.installed}<li {if $module.id==$active_module} class="active" {/if} id="ybc_tc_{$module.id|escape:'html':'UTF-8'}"><a href="{$module.link|escape:'html':'UTF-8'}">{addslashes($module.name)}</a></li>{/if}{/foreach}';
if($('#subtab-AdminYbcTC').length > 0)
{
$('#subtab-AdminYbcTC').after(ybc_tc_links);
}
else
if($('#subtab-AdminPayment').length > 0)
{
$('#subtab-AdminPayment').after(ybc_tc_links);
}
else
if($('#subtab-AdminModules').length > 0)
{
$('#subtab-AdminModules').after(ybc_tc_links);
}
});
</script>
{/if}

View File

@@ -0,0 +1,76 @@
{*
* Copyright: YourBestCode.Com
* Email: support@yourbestcode.com
*}
{if $tc_display_panel}
<div class="ybc-theme-panel closed">
<div class="ybc-theme-panel-medium">
<div class="ybc-theme-panel-btn" title="{l s='Theme Option' mod='ybc_themeconfig'}">{*l s='Setting' mod='ybc_themeconfig'*}</div>
<div class="ybc-theme-panel-loading">
<div class="ybc-theme-panel-loading-setting">
<h2>
<img alt="{l s='Loading' mod='ybc_themeconfig'}" class="ybc-theme-panel-loading-logo" src="{$tc_modules_dir|escape:'html':'UTF-8'}img/loading.gif" />
<br/>
<span>{l s='Updating...' mod='ybc_themeconfig'}</span>
</h2>
</div>
</div>
<div class="ybc-theme-panel-wrapper">
<h2>{l s='Theme options' mod='ybc_themeconfig'}</h2>
<div class="ybc-theme-panel-box tc-separator"><h3>{l s='Theme color' mod='ybc_themeconfig'}</h3></div>
<div class="ybc-theme-panel-inner">
<div class="ybc-theme-panel-box">
<ul class="ybc-skin ybc_tc_skin ybc_select_option" id="ybc_tc_skin">
{if $skins}
{foreach from=$skins item='skin'}
<li style="background: {$skin.main_color|escape:'html':'UTF-8'};" {if $configs.YBC_TC_SKIN==$skin.id_option}class="active"{/if} data-val="{$skin.id_option|escape:'html':'UTF-8'}" title="{$skin.name|escape:'html':'UTF-8'}">{$skin.name|escape:'html':'UTF-8'}</li>
{/foreach}
{/if}
</ul>
</div>
{if isset($ybcDev) && $ybcDev}
<div class="ybc-theme-panel-box tc-separator">
<h3>{l s='Layout type' mod='ybc_themeconfig'}</h3></div>
<div class="ybc-theme-panel-box">
<ul id="ybc_tc_layout" class="ybc_tc_layout ybc_select_option">
{if $layouts}
{foreach from=$layouts item='layout'}
<li {if $configs.YBC_TC_LAYOUT==$layout.id_option}class="active"{/if} data-val="{$layout.id_option|escape:'html':'UTF-8'}">{$layout.name|escape:'html':'UTF-8'}</li>
{/foreach}
{/if}
</ul>
</div>
{/if}
{if isset($float_header) && $float_header}
<div class="ybc-theme-panel-box tc-separator"><h3>{l s='Float header' mod='ybc_themeconfig'}</h3></div>
<div class="ybc-theme-panel-box">
<ul id="ybc_tc_float_header" class="ybc_tc_float_header ybc_select_option">
<li {if $configs.YBC_TC_FLOAT_HEADER}class="active"{/if} data-val="1">{l s='Yes' mod='ybc_themeconfig'}</li>
<li {if !$configs.YBC_TC_FLOAT_HEADER}class="active"{/if} data-val="0">{l s='No' mod='ybc_themeconfig'}</li>
</ul>
</div>
{/if}
{if isset($bgs) && $bgs}
<div class="ybc-theme-panel-box tc-separator"><h3>{l s='Background image' mod='ybc_themeconfig'}</h3></div>
<div class="ybc-theme-panel-box tc-ul">
{if $bgs}
<ul class="ybc-theme-panel-bg-list">
{foreach from=$bgs item='bg'}
<li><span rel='{$bg|escape:'html':'UTF-8'}' class="ybc-theme-panel-bg{if $configs.YBC_TC_BG_IMG==$bg} active{/if}" style="background: url('{$moduleDirl|escape:'html':'UTF-8'}bgs/{$bg|escape:'html':'UTF-8'}.png');"></span></li>
{/foreach}
</ul>
{/if}
</div>
{/if}
<div class="ybc-theme-panel-box tc-reset">
<span id="tc-reset">{l s='Reset to default' mod='ybc_themeconfig'}</span>
</div>
</div>
</div>
</div>
</div>
{/if}
<script type="text/javascript">
var YBC_TC_FLOAT_CSS3 = {$YBC_TC_FLOAT_CSS3|escape:'html':'UTF-8'};
var YBC_TC_AJAX_URL = '{$moduleDirl|escape:'html':'UTF-8'}ajax.php';
</script>

View File

@@ -0,0 +1,38 @@
{*
* Copyright: YourBestCode.Com
* Email: support@yourbestcode.com
*}
{*
* Copyright: YourBestCode.Com
* Email: support@yourbestcode.com
*}
{if isset($nbComments) && $nbComments > 0}
<div class="comments_note" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<div class="star_content clearfix">
{section name="i" start=0 loop=5 step=1}
{if $averageTotal le $smarty.section.i.index}
<div class="star"></div>
{else}
<div class="star star_on"></div>
{/if}
{/section}
<meta itemprop="worstRating" content = "0" />
<meta itemprop="ratingValue" content = "{if isset($ratings.avg)}{$ratings.avg|round:1|escape:'html':'UTF-8'}{else}{$averageTotal|round:1|escape:'html':'UTF-8'}{/if}" />
<meta itemprop="bestRating" content = "5" />
</div>
<span class="nb-comments"><span itemprop="reviewCount">{$nbComments|escape:'html':'UTF-8'}</span> {l s='Review(s)' mod='ybc_themeconfig'}</span>
</div>
{else}
<div class="comments_note" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<div class="star_content clearfix">
{section name="i" start=0 loop=5 step=1}
{if $averageTotal le $smarty.section.i.index}
<div class="star"></div>
{else}
<div class="star star_on"></div>
{/if}
{/section}
</div>
<span class="nb-comments"><span itemprop="reviewCount">0</span> {l s='No reviews' mod='ybc_themeconfig'}</span>
</div>
{/if}

View File

@@ -0,0 +1,36 @@
<?php
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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/osl-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-2014 PrestaShop SA
* @version Release: $Revision$
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 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;