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,42 @@
{*
* 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 id="simpleblog-post-comments" class="post-block">
<h3 class="block-title">{l s='Comments' mod='ph_simpleblog'}</h3>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
// Required: on line below, replace text in quotes with your forum shortname
var disqus_shortname = '{Configuration::get('PH_BLOG_DISQUS_SHORTNAME')}';
var disqus_identifier = '{$post->url|escape:'htmlall':'utf-8'|@md5}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(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 id="simpleblog-post-comments" class="post-block">
<h3 class="block-title">{l s='Comments' mod='ph_simpleblog'} (<fb:comments-count href={$post->url|escape:'html':'UTF-8'}/></fb:comments-count>)</h3>
<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,65 @@
{*
* 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
*}
{if isset($logged) AND $logged || Configuration::get('PH_BLOG_COMMENT_ALLOW_GUEST')}
<form class="std clearfix" action="{$post->url|escape:'html':'UTF-8'}" method="post">
<fieldset>
<div class="box">
<h3 class="page-heading bottom-indent">{l s='New comment' mod='ph_simpleblog'}</h3>
<div class="form-group">
<label for="customer_name">{l s='Your name' mod='ph_simpleblog'}</label>
<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 class="form-group">
<label for="comment_content">{l s='Your comment' mod='ph_simpleblog'}</label>
<textarea class="form-control"id="comment_content" name="comment_content" cols="26" rows="5">{if isset($smarty.post.comment_content)}{$smarty.post.comment_content|escape:'htmlall':'UTF-8'}{/if}</textarea>
</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}
</div>
<p class="cart_navigation required submit 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" />
{if $is_16}
<button type="submit" class="button btn btn-default button-medium" name="submitNewComment" id="submitNewComment">
<span>
{l s='Add new comment' mod='ph_simpleblog'}
<i class="fa fa-chevron-right right"></i>
</span>
</button>
{else}
<input type="submit" class="button" name="submitNewComment" value="{l s='Add new comment' mod='ph_simpleblog'}" />
{/if}
</p>
</fieldset>
</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}

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,50 @@
{*
* 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 id="simpleblog-post-comments" class="post-block">
<h3 class="block-title">{l s='Comments' mod='ph_simpleblog'} ({$post->comments|escape:'html':'UTF-8'})</h3>
<div class="post-comments-list">
{if $post->comments}
{foreach $comments as $comment}
<div class="post-comment post-comment-{$comment.id|intval}">
<div class="post-comment-meta">
<i class="fa fa-pencil"></i>
{l s='Posted by' mod='ph_simpleblog'} <span class="post-comment-author">{$comment.name|escape:'html':'UTF-8'}</span> {l s='on' mod='ph_simpleblog'} <span class="post-comment-date">{$comment.date_add|escape:'html':'UTF-8'}</span>
</div><!-- .post-comment-meta -->
<div class="post-comment-content">
{$comment.comment|escape:'html':'UTF-8'}
</div><!-- .post-comment-content -->
</div><!-- .post-comment -->
{/foreach}
{else}
<div class="warning alert alert-warning">
{l s='No comments at this moment' mod='ph_simpleblog'}
</div><!-- .warning -->
{/if}
</div><!-- .post-comments-list -->
{* Comment form *}
{include file="./form.tpl"}
</div><!-- #post-comments -->