first commit

This commit is contained in:
2024-12-17 13:43:22 +01:00
commit 8e6cd8b410
21292 changed files with 3514826 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 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-2014 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,47 @@
<div class="simpleblog__listing__post__wrapper__footer">
<div class="row">
{if Configuration::get('PH_BLOG_DISPLAY_DATE')}
<div class="simpleblog__listing__post__wrapper__footer__block col-md-6 col-xs-12">
<i class="material-icons">label</i> <time datetime="{$post.date_add|date_format:'c'}">{$post.date_add|date_format:Configuration::get('PH_BLOG_DATEFORMAT')}</time>
</div>
{/if}
{if isset($post.author) && !empty($post.author) && Configuration::get('PH_BLOG_DISPLAY_AUTHOR')}
<div class="simpleblog__listing__post__wrapper__footer__block col-md-6 col-xs-12">
<i class="material-icons">perm_identity</i> <span itemprop="author">{$post.author}</span>
</div>
{else}
<meta itemprop="author" content="{Configuration::get('PS_SHOP_NAME')}">
{/if}
{if $post.allow_comments eq true && Configuration::get('PH_BLOG_COMMENTS_SYSTEM') == 'native'}
<div class="simpleblog__listing__post__wrapper__footer__block col-md-6 col-xs-12">
<i class="material-icons">comment</i>
<span>
<a href="{$post.url}#phsimpleblog_comments">{$post.comments} {l s='comments' mod='ph_simpleblog'}</a>
</span>
</div>
{/if}
{if Configuration::get('PH_BLOG_DISPLAY_VIEWS')}
<div class="simpleblog__listing__post__wrapper__footer__block col-md-6 col-xs-12">
<i class="material-icons">remove_red_eye</i>
<span>
{$post.views} {l s='views' mod='ph_simpleblog'}
</span>
</div>
{/if}
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="{$urls.shop_domain_url|rtrim:'/'}{$shop.logo}">
</div>
<meta itemprop="name" content="{Configuration::get('PS_SHOP_NAME')}">
<meta itemprop="email" content="{Configuration::get('PS_SHOP_EMAIL')}">
</div>
<meta itemprop="datePublished" content="{$post.date_add}">
<meta itemprop="dateModified" content="{$post.date_upd}">
<meta itemprop="mainEntityOfPage" content="{$urls.shop_domain_url}">
{if !isset($post.author) || (isset($post.author) && empty($post.author))}
<div itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person">
<meta itemprop="name" content="{Configuration::get('PS_SHOP_NAME')}">
</div>
{/if}
</div><!-- .row -->
</div><!-- .simpleblog__listing__post__wrapper__footer -->

View File

@@ -0,0 +1,43 @@
<div class="simpleblog__listing__post
{if $blogLayout eq 'grid' AND $columns eq '3'}
col-md-4 col-sm-6 col-xs-12 col-ms-12 {cycle values="first-in-line,second-in-line,last-in-line"}
{elseif $blogLayout eq 'grid' AND $columns eq '4'}
col-md-3 col-sm-6 col-xs-12 col-ms-12 {cycle values="first-in-line,second-in-line,third-in-line,last-in-line"}
{elseif $blogLayout eq 'grid' AND $columns eq '2'}
col-md-6 col-sm-6 col-xs-12 col-ms-12 {cycle values="first-in-line,last-in-line"}
{else}
col-md-12
{/if}"
>
<div class="simpleblog__listing__post__wrapper" itemscope="itemscope" itemtype="http://schema.org/BlogPosting" itemprop="blogPost">
{if $post.post_type == 'url'}
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/type-url/post-thumbnail.tpl"}
{else if $post.post_type == 'video'}
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/type-video/post-thumbnail.tpl"}
{else}
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/type-default/post-thumbnail.tpl"}
{/if}
<div class="simpleblog__listing__post__wrapper__content">
{if $post.post_type == 'url'}
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/type-url/post-headline.tpl"}
{else}
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/type-default/post-headline.tpl"}
{/if}
{if Configuration::get('PH_BLOG_DISPLAY_DESCRIPTION')}
<p itemprop="description">
{$post.short_content|strip_tags:'UTF-8'}
</p>
{/if}
{if $post.post_type == 'url'}
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/type-url/post-bottomline.tpl"}
{else}
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/type-default/post-bottomline.tpl"}
{/if}
</div>
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/post-miniature-footer.tpl"}
</div><!-- .simpleblog__listing__post__wrapper -->
</div><!-- .simpleblog__listing__post -->

View File

@@ -0,0 +1,10 @@
<div class="simpleblog__featuredProducts" id="products">
<h3 class="h2">{l s='Related products' mod='ph_simpleblog'}</h3>
<div class="products row">
{foreach from=$related_products item="product"}
{block name='product_miniature'}
{include file='catalog/_partials/miniatures/product.tpl' product=$product}
{/block}
{/foreach}
</div>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 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-2014 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,12 @@
{if Configuration::get('PH_BLOG_DISPLAY_MORE')}
<div class="simpleblog__listing__post__wrapper__content__footer">
<a href="{$post.url}" class="btn btn-primary">
{l s='Read more' mod='ph_simpleblog'}
</a>
{if $is_category eq false && Configuration::get('PH_BLOG_DISPLAY_CATEGORY')}
<div class="simpleblog__listing__post__wrapper__content__footer__category">
<i class="material-icons">label</i> <a href="{$post.category_url}" title="{$post.category}" rel="category">{$post.category}</a>
</div>
{/if}
</div>
{/if}

View File

@@ -0,0 +1,5 @@
<h3 itemprop="headline">
<a href="{$post.url}">
{$post.title}
</a>
</h3>

View File

@@ -0,0 +1,9 @@
{if Configuration::get('PH_BLOG_DISPLAY_THUMBNAIL') && (isset($post.banner_wide) || isset($post.banner_thumb))}
<a href="{$post.url}" itemprop="url">
{if $blogLayout eq 'full'}
<img src="{$post.banner_wide}" alt="{$post.title}" itemprop="image" class="img-fluid photo">
{else}
<img src="{$post.banner_thumb}" alt="{$post.title}" itemprop="image" class="img-fluid photo">
{/if}
</a>
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 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-2014 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,9 @@
{if Configuration::get('PH_BLOG_DISPLAY_MORE')}
<div class="simpleblog__listing__post__wrapper__content__footer">
{if $is_category eq false && Configuration::get('PH_BLOG_DISPLAY_CATEGORY')}
<div class="simpleblog__listing__post__wrapper__content__footer__category">
<i class="material-icons">label</i> <a href="{$post.category_url}" title="{$post.category}" rel="category">{$post.category}</a>
</div>
{/if}
</div>
{/if}

View File

@@ -0,0 +1,5 @@
<h3 itemprop="headline">
<a href="{$post.external_url}" target="_blank">
{$post.title}
</a>
</h3>

View File

@@ -0,0 +1,9 @@
{if Configuration::get('PH_BLOG_DISPLAY_THUMBNAIL') && (isset($post.banner_wide) || isset($post.banner_thumb))}
<a href="{$post.external_url}" target="_blank" itemprop="url">
{if $blogLayout eq 'full'}
<img src="{$post.banner_wide}" alt="{$post.title}" itemprop="image" class="img-fluid photo">
{else}
<img src="{$post.banner_thumb}" alt="{$post.title}" itemprop="image" class="img-fluid photo">
{/if}
</a>
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 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-2014 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,13 @@
{if Configuration::get('PH_BLOG_DISPLAY_THUMBNAIL') && (isset($post.banner_wide) || isset($post.banner_thumb))}
<a href="{$post.url}" itemprop="url">
{if $blogLayout eq 'full'}
<img src="{$post.banner_wide}" alt="{$post.title}" itemprop="image" class="img-fluid photo">
{else}
<img src="{$post.banner_thumb}" alt="{$post.title}" itemprop="image" class="img-fluid photo">
{/if}
</a>
{else}
<div itemprop="video">
{$post.video_code nofilter}
</div>
{/if}

View File

@@ -0,0 +1,38 @@
{*
* 2007-2014 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-2014 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="simpleblog__addComment">
<h2 class="h2">{l s='Comments' mod='ph_simpleblog'}</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{Configuration::get('PH_BLOG_DISQUS_SHORTNAME')}';
var disqus_identifier = '{$post->url|@md5}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
</div>

View File

@@ -0,0 +1,28 @@
{*
* 2007-2014 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-2014 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="simpleblog__addComment">
<h2 class="h2">{l s='Comments' mod='ph_simpleblog'} (<fb:comments-count href={$post->url|escape:'html':'UTF-8'}/></fb:comments-count>)</h2>
<div class="fb-comments" data-href="{$post->url|escape:'html':'UTF-8'}" data-colorscheme="{Configuration::get('PH_BLOG_FACEBOOK_COLOR_SCHEME')|escape:'html':'UTF-8'}" data-numposts="5" data-width="100%"></div>
</div>

View File

@@ -0,0 +1,64 @@
{*
* 2007-2018 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-2018 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="simpleblog__addComment">
{if $customer.is_logged || Configuration::get('PH_BLOG_COMMENT_ALLOW_GUEST')}
<h2 class="h2">{l s='New comment' mod='ph_simpleblog'}</h2>
<form class="simpleblog__addComment__form" action="{$post->url|escape:'html':'UTF-8'}" method="post">
<div class="form-group">
<label class="col-12 form-control-label">
{l s='Your name' mod='ph_simpleblog'}
</label>
<div class="col-12">
<input type="text" class="form-control" name="customer_name" id="customer_name" value="{if isset($logged) AND $logged}{$customerName|escape:'html':'UTF-8'}{else}{if isset($smarty.post.comment_content)}{$smarty.post.customer_name|escape:'htmlall':'UTF-8'}{/if}{/if}" />
</div>
</div>
<div class="form-group">
<label class="col-12 form-control-label">
{l s='Your comment' mod='ph_simpleblog'}
</label>
<div class="col-12">
<textarea class="form-control"id="comment_content" name="comment_content" rows="6">{if isset($smarty.post.comment_content)}{$smarty.post.comment_content|escape:'htmlall':'UTF-8'}{/if}</textarea>
</div>
</div>
{if Configuration::get('PH_BLOG_COMMENTS_RECAPTCHA')}
<div class="form-group">
<div class="g-recaptcha" data-sitekey="{Configuration::get('PH_BLOG_COMMENTS_RECAPTCHA_SITE_KEY')}" data-theme="{Configuration::get('PH_BLOG_COMMENTS_RECAPTCHA_THEME')}"></div>
<script src='https://www.google.com/recaptcha/api.js'></script>
</div>
{/if}
<footer class="form-footer clearfix">
<input type="hidden" name="id_simpleblog_post" value="{$post->id_simpleblog_post|intval}" />
<input type="hidden" name="id_parent" id="id_parent" value="0" />
<button class="continue btn btn-primary float-xs-right" name="submitNewComment" type="submit" value="1">
{l s='Add new comment' mod='ph_simpleblog'}
</button>
</footer>
</form>
{else}
<div class="warning alert alert-warning">
<a href="{$link->getPageLink('authentication', true, null, ['back' => $post->url])|escape:'html':'UTF-8'}">{l s='Only registered and logged customers can add comments' mod='ph_simpleblog'}</a>
</div><!-- .warning -->
{/if}
</div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2013 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-2013 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,48 @@
{*
* 2007-2014 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-2014 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="simpleblog__comments{if $post->comments == 0}-empty{/if}" id="phsimpleblog_comments">
<h2 class="h2">{l s='Comments' mod='ph_simpleblog'} ({$post->comments})</h2>
{if $post->comments}
<ul>
{foreach $comments as $comment}
<li>
<ul class="simpleblog__comments__authorInfo">
<li class="simpleblog__comments__authorInfo__author">{$comment.name}</li>
<li>{$comment.date_add}</li>
</ul>
<div class="simpleblog__comments__text">
{$comment.comment}
</div>
</li>
{/foreach}
</ul>
{else}
<div class="warning alert alert-warning">
{l s='No comments at this moment' mod='ph_simpleblog'}
</div><!-- .warning -->
{/if}
</div>
{include file="module:ph_simpleblog/views/templates/front/1.7/comments/form.tpl"}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 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-2014 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,75 @@
{*
* 2007-2018 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-2018 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='page.tpl'}
{block name='page_header_container'}
<div class="page-heading">
<h1 class="h1">
{if $is_category eq true}
{$blogCategory->name}
{else}
{$blogMainTitle}
{/if}
</h2>
</div><!--.page-heading-->
{/block}
{block name='head_seo_title'}{strip}{$meta_title}{/strip}{/block}
{block name='head_seo_description'}{strip}{$meta_description}{/strip}{/block}
{block name='page_content'}
{if $is_category eq true}
{if Configuration::get('PH_BLOG_DISPLAY_CATEGORY_IMAGE') && isset($blogCategory->image)}
<div class="simpleblog-category-image">
<img src="{$blogCategory->image}" alt="{$blogCategory->name}" class="img-responsive" />
</div>
{/if}
{if !empty($blogCategory->description) && Configuration::get('PH_BLOG_DISPLAY_CAT_DESC')}
<div class="ph_cat_description rte">
{$blogCategory->description nofilter}
</div>
{/if}
{/if}
<div class="simpleblog__listing" itemscope="itemscope" itemtype="http://schema.org/Blog">
<div class="row">
{if isset($posts) && count($posts)}
{foreach from=$posts item=post}
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/post-miniature.tpl"}
{/foreach}
{else}
<div class="warning alert alert-warning">{l s='There are no posts' mod='ph_simpleblog'}</div>
{/if}
</div><!-- .row -->
</div><!-- .simpleblog__listing -->
{if isset($posts) && count($posts)}
{if $is_category}
{include file="module:ph_simpleblog/views/templates/front/1.7/pagination.tpl" rewrite=$blogCategory->link_rewrite type='category'}
{else}
{include file="module:ph_simpleblog/views/templates/front/1.7/pagination.tpl" rewrite=false type=false}
{/if}
{/if}
{/block}

View File

@@ -0,0 +1,54 @@
<!-- Pagination -->
{if $start!=$stop}
<nav class="simpleblog__listing__pagination pagination">
<div class="col-md-12 pr-0">
<ul class="simpleblog__listing__pagination__list page-list clearfix text-sm-center">
{if $p != 1}
{assign var='p_previous' value=$p-1}
<li>
<a rel="prev" href="{SimpleBlogPost::getPageLink($p_previous, $type, $rewrite)}" class="previous disabled "><i class="material-icons">navigate_before</i>{l s='Previous' mod='ph_simpleblog'}
</li>
{else}
<li>
<a rel="prev" href="#" class="previous disabled "><i class="material-icons">navigate_before</i>{l s='Previous' mod='ph_simpleblog'}
</li>
{/if}
{if $start > 1}
<li><a href="{SimpleBlogPost::getPageLink(1, $type, $rewrite)}">1</a></li>
<li>
<span class="spacer">…</span>
</li>
{/if}
{section name=pagination start=$start loop=$stop+1 step=1}
{if $p == $smarty.section.pagination.index}
<li class="current">
<a href="#" class="disabled">{$p}</a>
</li>
{else}
<li>
<a href="{SimpleBlogPost::getPageLink($smarty.section.pagination.index, $type, $rewrite)}">{$smarty.section.pagination.index}</a>
</li>
{/if}
{/section}
{if $pages_nb>$stop}
<li>
<span class="spacer">…</span>
</li>
<li><a href="{SimpleBlogPost::getPageLink($pages_nb, $type, $rewrite)}">{$pages_nb|intval}</a></li>
{/if}
{if $pages_nb > 1 AND $p != $pages_nb}
{assign var='p_next' value=$p+1}
<li>
<a rel="next" href="{SimpleBlogPost::getPageLink($p_next, $type, $rewrite)}" class="next ">
{l s='Next' mod='ph_simpleblog'}<i class="material-icons">navigate_next</i>
</a>
</li>
{else}
<li>
<a rel="next" href="#" class="next disabled">{l s='Next' mod='ph_simpleblog'}<i class="material-icons">navigate_next</i></a>
</li>
{/if}
</ul>
</div>
</nav>
{/if}

View File

@@ -0,0 +1,235 @@
{*
* 2007-2014 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-2014 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='page.tpl'}
{block name='page_header_container'}
<header class="page-header">
<h1 class="h1">{$post->title}</h1>
</header>
{/block}
{block name='hook_after_body_opening_tag' append}{strip}
{if Configuration::get('PH_BLOG_FB_INIT')}
<div id="fb-root"></div>
<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 = 'https://connect.facebook.net/pl_PL/sdk.js#xfbml=1&version=v3.2&appId=&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
{/if}
{/strip}{/block}
{block name='head_seo' prepend}
<link rel="canonical" href="{$post->url}">
{/block}
{block name='head_seo_title'}{strip}
{if !empty($post->meta_title)}
{$post->meta_title} - {$page.meta.title}
{else}
{$post->title} - {$page.meta.title}
{/if}
{/strip}{/block}
{if !empty($post->meta_description)}
{block name='head_seo_description'}{$post->meta_description}{/block}
{/if}
{if !empty($post->meta_keywords)}
{block name='head_seo_keywords'}{$post->meta_keywords}{/block}
{/if}
{block name='page_content'}
{assign var='post_type' value=$post->post_type}
<div class="simpleblog__postInfo">
<ul>
{if Configuration::get('PH_BLOG_DISPLAY_DATE')}
<li>
<i class="material-icons">today</i>
<span>
<time>
{$post->date_add|date_format:Configuration::get('PH_BLOG_DATEFORMAT')}
</time>
</span>
</li>
{/if}
{if isset($post->author) && !empty($post->author) && Configuration::get('PH_BLOG_DISPLAY_AUTHOR')}
<li>
<i class="material-icons">perm_identity</i>
<span>
{$post->author}
</span>
</li>
{/if}
{if Configuration::get('PH_BLOG_DISPLAY_CATEGORY')}
<li>
<i class="material-icons">label</i>
<span>
<a
href="{$link->getModuleLink('ph_simpleblog', 'category', ['sb_category' => $post->category_rewrite])}"
title="{$post->category}"
>
{$post->category}
</a>
</span>
</li>
{/if}
{if Configuration::get('PH_BLOG_DISPLAY_LIKES')}
<li>
<a href="#" data-guest="{$guest}" data-post="{$post->id_simpleblog_post}" class="simpleblog-like-button">
<i class="material-icons">favorite</i>
<span class="likes-count">
{$post->likes}
</span>
<span>
{l s='likes' mod='ph_simpleblog'}
</span>
</a>
</li>
{/if}
{if Configuration::get('PH_BLOG_DISPLAY_VIEWS')}
<li>
<i class="material-icons">remove_red_eye</i>
<span>
{$post->views} {l s='views' mod='ph_simpleblog'}
</span>
</li>
{/if}
{if $allow_comments eq true && Configuration::get('PH_BLOG_COMMENTS_SYSTEM') == 'native'}
<li>
<i class="material-icons">comment</i>
<span>
<a href="{$post->url}#phsimpleblog_comments">{$post->comments} {l s='comments' mod='ph_simpleblog'}</a>
</span>
</li>
{/if}
</ul>
</div>
<div class="simpleblog__post">
{if $post->featured_image}
<a href="{$post->featured_image}" title="{$post->title}" class="fancybox simpleblog__post-featured">
<img src="{$post->featured_image}" alt="{$post->title}" class="img-fluid" />
</a>
{/if}
<div class="simpleblog__post__content">
{$post->content nofilter}
{if $post_type == 'gallery' && sizeof($post->gallery)}
<div class="post-gallery">
{foreach $post->gallery as $image}
<a rel="post-gallery-{$post->id_simpleblog_post}" class="fancybox" href="{$gallery_dir}{$image.image}.jpg" title="{l s='View full' mod='ph_simpleblog'}"><img src="{$gallery_dir}{$image.image}.jpg" class="img-fluid" /></a>
{/foreach}
</div><!-- .post-gallery -->
{elseif $post_type == 'video'}
<div class="post-video" itemprop="video">
{$post->video_code nofilter}
</div><!-- .post-video -->
{/if}
</div>
<div class="simpleblog__post__after-content" id="displayPrestaHomeBlogAfterPostContent">
{hook h='displayPrestaHomeBlogAfterPostContent'}
</div><!-- #displayPrestaHomeBlogAfterPostContent -->
<nav>
<ul class="pagination pagination-lg">
{if $previousPost}
<li class="page-item">
<a class="page-link" href="{$previousPost.url}" tabindex="-1">{l s='Previous article' mod='ph_simpleblog'}</a>
</li>
{/if}
<li class="page-item"><a class="page-link" href="{$link->getModuleLink('ph_simpleblog', 'list')}">{l s='Main page' mod='ph_simpleblog'}</a></li>
{if $nextPost}
<li class="page-item">
<a class="page-link" href="{$nextPost.url}">{l s='Next article' mod='ph_simpleblog'}</a>
</li>
{/if}
</ul>
</nav>
</div>
{if Configuration::get('PH_BLOG_DISPLAY_SHARER')}
<div class="simpleblog__share">
<h2 class="h2">{l s='Share this post' mod='ph_simpleblog'}</h2>
<ul>
<li>
<a
data-type="twitter"
href="#"
class="btn btn-twitter"
>
<i class="fa fa-twitter"></i> Twitter
</a>
</li>
<li>
<a
data-type="facebook"
href="#"
class="btn btn-facebook"
>
<i class="fa fa-facebook"></i> Facebook
</a>
</li>
<li>
<a
data-type="google"
href="#"
class="btn btn-google"
>
<i class="fa fa-google-plus"></i> Google+
</a>
</li>
<li>
<a
data-type="pinterest"
href="#"
class="btn btn-pinterest"
>
<i class="fa fa-pinterest"></i> Pinterest
</a>
</li>
{hook h='displayBlogForPrestaShopSocialSharing'}
</ul>
</div>
{/if}
{if Configuration::get('PH_BLOG_DISPLAY_RELATED') && $related_products}
{include file="module:ph_simpleblog/views/templates/front/1.7/_partials/post-single-related-products.tpl"}
{/if}
{if $allow_comments eq true && Configuration::get('PH_BLOG_COMMENTS_SYSTEM') == 'native'}
{include file="module:ph_simpleblog/views/templates/front/1.7/comments/layout.tpl"}
{/if}
{if $allow_comments eq true && Configuration::get('PH_BLOG_COMMENTS_SYSTEM') == 'facebook'}
{include file="module:ph_simpleblog/views/templates/front/1.7/comments/facebook.tpl"}
{/if}
{if $allow_comments eq true && Configuration::get('PH_BLOG_COMMENTS_SYSTEM') == 'disqus'}
{include file="module:ph_simpleblog/views/templates/front/1.7/comments/disqus.tpl"}
{/if}
{/block}