first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
.contact-form form .form-fields #captcha-box > div{float: right;}
.contact-form form .form-footer{clear: both;padding-top: 1rem;}
@media screen and (max-width: 767px){
#contact #left-column,
#contact #content-wrapper{padding-left: 0!important;padding-right: 0!important;width: 100%;}
.contact-form form .form-fields #captcha-box{position: relative;min-height: 78px;}
.contact-form form .form-fields #captcha-box > div{float: none;position: absolute;left: 50%;top: 0;transform: translate(-50%,0);}
}
@media screen and (max-width: 379px){
.register-form form .form-group .g-recaptcha{position: relative;min-height: 78px;}
.register-form form .form-group .g-recaptcha > div{float: none;position: absolute;left: 50%;top: 0;transform: translate(-50%,0);}
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2012 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-2012 PrestaShop SA
* @version Release: $Revision: 2 $
* @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,5 @@
$(document).ready(function(){
//Force click to display debug tab when parameter is defined in url
//This file is only loaded in this case
$('a[href="#advanced"]').click();
});

View File

@@ -0,0 +1,12 @@
/**
*
* Recaptcha V2 Only
*
* This script add dynamically a new div at the end of the contact form
* The captcha is render inside this div by Recaptcha V2
* If needed you can change the selector by overriding this file in your theme
*/
$(document).ready(function () {
$('.form-fields').append('<div id="captcha-box"></div>');
});

View File

@@ -0,0 +1,11 @@
/**
*
* Recaptcha V3 Only
*
* This script add dynamically a new input hidden at the end of the contact form
* The captcha is render inside this div by Recaptcha V3
* If needed you can change the selector by overriding this file in your theme
*/
$(document).ready(function () {
$('.form-fields').append('<input type="hidden" id="captcha-box" value="" name="g-recaptcha-response">');
});

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2012 PrestaShop SA
* @version Release: $Revision: 2 $
* @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,33 @@
{if $errors|@count}
<div class="alert alert-warning">
<h4>{l s='Errors' mod='eicaptcha'}</h4>
<ul>
{foreach from=$errors item=error}
<li>{$error|html_entity_decode}</li>
{/foreach}
</ul>
</div>
{/if}
{if $success|@count}
<div class="alert alert-success">
<h4>{l s='Success' mod='eicaptcha'}</h4>
<ul>
{foreach from=$success item=msg}
<li>{$msg}</li>
{/foreach}
</ul>
</div>
{/if}
<div class="alert alert-info">
<h4>{l s='Additional information' mod='eicaptcha'}</h4>
<ul>
<li>{l s='Recaptcha version' mod='eicaptcha'} : {$recaptchaVersion}</li>
<li>{l s='Prestashop version' mod='eicaptcha'} : {$prestashopVersion}</li>
<li>{l s='Theme name' mod='eicaptcha'} : {$themeName}</li>
<li>{l s='Php version' mod='eicaptcha'} : {$phpVersion}</li>
</ul>
<p>&nbsp;</p>
<p>{l s='In case of problem please open an issue with the asked information on' mod='eicaptcha'} : <a href="https://github.com/nenes25/eicaptcha/issues" target="_blank">github</a></p>
</div>

View File

@@ -0,0 +1,51 @@
{*
* 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 Hennes Hervé <contact@h-hennes.fr>
* @copyright Hennes Hervé
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* http://www.h-hennes.fr/blog/
*}
<div id="captcha-row" class="form-group row">
{if $captchaVersion == 2}
{* <label class="col-md-3 form-control-label">{l s='Captcha' mod='eicaptcha'}</label> *}
<div class="col-md-9">
{**
* Le contenu du captcha est automatiquement ajouté dans le selecteur #captcha-box
* Captcha content is automaticaly added into the selector #captcha-box
*}
<div class="g-recaptcha" data-sitekey="{$publicKey|escape:'html'}" id="captcha-box"
data-theme="{$captchatheme}"></div>
<script src="https://www.google.com/recaptcha/api.js{if isset($captchaforcelang)}?hl={$captchaforcelang}{/if}"
async defer></script>
</div>
{else}
<input type="hidden" id="captcha-box" name="g-recaptcha-response"/>
<script src="https://www.google.com/recaptcha/api.js?render={$publicKey|escape:'html'}"></script>
<script>
grecaptcha.ready(function () {ldelim}
grecaptcha.execute('{$publicKey|escape:'html'}', {ldelim}action: 'contact'{rdelim}).then(function (token) {ldelim}
var recaptchaResponse = document.getElementById('captcha-box');
recaptchaResponse.value = token;
{rdelim});
{rdelim});
</script>
{/if}
</div>

View File

@@ -0,0 +1,42 @@
{*
* 2007-2021 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 Hennes Hervé <contact@h-hennes.fr>
* @copyright Hennes Hervé
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* http://www.h-hennes.fr/blog/
*}
<div class="col-xs-12 pull-right">
{if $captchaVersion == 2}
<div class="g-recaptcha" data-sitekey="{$publicKey|escape:'html'}" id="captcha-box-newsletter" data-theme="{$captchatheme}"></div>
<script src="https://www.google.com/recaptcha/api.js{if isset($captchaforcelang)}?hl={$captchaforcelang}{/if}" async defer></script>
{else}
<input type="hidden" id="captcha-box-newsletter" name="g-recaptcha-response"/>
<script src="https://www.google.com/recaptcha/api.js?render={$publicKey|escape:'html'}"></script>
<script>
grecaptcha.ready(function () {ldelim}
grecaptcha.execute('{$publicKey|escape:'html'}', {ldelim}action: 'contact'{rdelim}).then(function (token) {ldelim}
var recaptchaResponse = document.getElementById('captcha-box-newsletter');
recaptchaResponse.value = token;
{rdelim});
{rdelim});
</script>
{/if}
</div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2012 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-2012 PrestaShop SA
* @version Release: $Revision: 2 $
* @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,35 @@
<?php
/*
* 2007-2012 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-2012 PrestaShop SA
* @version Release: $Revision: 2 $
* @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;