Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
/**
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*/
#checkageContent{
padding:15px;
max-width:100%;
}
#checkageContent #checkageTable{
width:100%;
}
#checkageContent input.dic{
border: 3px solid #696969;
font-size:25px;
text-align:center;
margin:5px;
font-weight:bold;
}
#checkageContent button.dic2{
font-size:26px;
font-weight:bold;
text-transform:uppercase;
background-color:#696969;
padding:8px;
margin:5px;
background-image:none;
border:none;
color:#fff
}
#checkageContent button:focus{
background:#000;
color:#fff;
}
#checkageContent button:hover{
background-color:#000;
background-image:none;
color:#fff;
border:none;
}
.infoCheckage{
text-align:center;
font-size:16px;
font-weight:bold;
}
.day , .month, .year {
float:left;
}
.popupCheckage{
display:table;
margin: 0 auto;
}
.no{
display:none;
}
.modal.fade.in {
display: flex !important;
justify-content: center;
align-items: center;
}
.modal.fade.in .modal-dialog {
width: 100%;
}
.modal-backdrop.in {
opacity: 0.9;
}
@media screen and (max-width: 768px) {
}

View File

@@ -0,0 +1,19 @@
<?php
/**
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*/
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,19 @@
<?php
/**
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*/
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 @@
/**
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*/
var app = {
_path: null,
};
app.form = {
initialize: function()
{
var fieldset_2 = $('#fieldset_2 .form-wrapper').children();
this.id_restricted = $(fieldset_2[1]);
this.render();
},
render: function()
{
this.id_restricted.hide();
},
};
app.list = {
initialize: function()
{
this.render();
},
render: function()
{
},
};

View File

@@ -0,0 +1,19 @@
<?php
/**
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*/
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,31 @@
{*
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*}
<!-- START Module Checkage -->
<style>
div .alertes{
background:#fff;
border-radius:10px;
padding:15px;
font-size:16px;
font-weight:bold;
}
.red{
text-transform:uppercase;
color:red;
font-size:20px;
}
.green{
text-transform:uppercase;
color:green;
font-size:20px;
}
</style>
<div class="alertes"><i class="icon-exclamation-triangle green"></i> {l s='The age check is active throughout the shop' mod='checkage'}</div>
<!-- END Module Checkage -->

View File

@@ -0,0 +1,19 @@
<?php
/**
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*/
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,31 @@
{*
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*}
<!-- START Module Checkage -->
<style>
div .alertes{
background:#fff;
border-radius:10px;
padding:15px;
font-size:16px;
font-weight:bold;
}
.red{
text-transform:uppercase;
color:red;
font-size:20px;
}
.green{
text-transform:uppercase;
color:green;
font-size:20px;
}
</style>
<div class="alertes"><i class="icon-exclamation-triangle red"></i> {l s='The age check is only active on the selected categories or pages' mod='checkage'}</div>
<!-- END Module Checkage -->

View File

@@ -0,0 +1,95 @@
{*
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*}
<!-- START Module Checkage -->
{if $checkage->all_restriction == '1' OR $id_restriction == '1' OR $page_restriction == '1'}
{if !$checkOK OR $checkOK == '0' }
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#checkageModal').modal('toggle');
$("#TB4").on("focus click", function(){
$.post('{$url|escape:'htmlall':'UTF-8'}modules/checkage/check-checkage.php', {
checkOK: '1',
day: $('.TB1').val(),
month: $('.TB2').val(),
year: $('.TB3').val(),
token: '{$token|escape:'htmlall':'UTF-8'}'
},
function(data){
location.reload();
});
});
});
function Autotab(box, longueur, texte){
if (texte.length > longueur-1){
document.getElementById('TB'+box).focus();
}
};
</script>
<div class="modal fade" id="checkageModal" tabindex="-1" role="content" aria-hidden="true" data-keyboard="false" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div id="checkageContent" style="max-height:calc(100vh - 30px);min-height:calc(100vh - auto);overflow-y: auto;">
<table style="text-align:center;width:100%;">
{if $checkage->show_logo == '1'}
<tr>
<td style="text-align:center;">
<div id="checkageLogo" style="text-align:center;">
<img class="logo img-responsive" src="{$shop.logo|escape:'htmlall':'UTF-8'}" alt="{$shop.name|escape:'htmlall':'UTF-8'}"/>
</div>
</td>
</tr>
{/if}
{if $checkage->checkage_message}
<tr>
<td>
{$checkage->checkage_message|escape:'htmlall':'UTF-8' nofilter}
</td>
</tr>
{/if}
<tr>
<td style="text-align:center;">
<div class="infoCheckage">
{l s='The minimum age to continue is' mod='checkage'} {$checkage->age_restriction|escape:'htmlall':'UTF-8'} {l s='years' mod='checkage'}<br />{l s='Please enter your date of birth' mod='checkage'}
<div style="text-align:center;" class="popupCheckage">
{if $checkage->format_date == '1'}
<input class="dic TB1" maxlength="2" type="text" size="2" id="TB1" name="day" placeholder="{l s='DD' mod='checkage'}" onkeyup="Autotab(2, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB2" maxlength="2" type="text" size="2" id="TB2" name="month" placeholder="{l s='MM' mod='checkage'}" onkeyup="Autotab(3, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB3" maxlength="4" type="text" size="4" id="TB3" name="year" placeholder="{l s='YYYY' mod='checkage'}" onkeyup="Autotab(4, this.size, this.value)" onFocus="this.value=''">
{elseif $checkage->format_date == '2'}
<input class="dic TB2" maxlength="2" type="text" size="2" id="TB1" name="month" placeholder="{l s='MM' mod='checkage'}" onkeyup="Autotab(2, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB1" maxlength="2" type="text" size="2" id="TB2" name="day" placeholder="{l s='DD' mod='checkage'}" onkeyup="Autotab(3, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB3" maxlength="4" type="text" size="4" id="TB3" name="year" placeholder="{l s='YYYY' mod='checkage'}" onkeyup="Autotab(4, this.size, this.value)" onFocus="this.value=''">
{elseif $checkage->format_date == '3'}
<input class="dic TB3" maxlength="4" type="text" size="4" id="TB1" name="year" placeholder="{l s='YYYY' mod='checkage'}" onkeyup="Autotab(2, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB2" maxlength="2" type="text" size="2" id="TB2" name="month" placeholder="{l s='MM' mod='checkage'}" onkeyup="Autotab(3, this.size, this.value)" onFocus="this.value=''">
<input class="dic TB1" maxlength="2" type="text" size="2" id="TB3" name="day" placeholder="{l s='DD' mod='checkage'}" onkeyup="Autotab(4, this.size, this.value)" onFocus="this.value=''">
{/if}
<button id="TB4" class="dic2">OK</button>
</div>
</td>
</tr>
{if $id_restriction == '1' OR $page_restriction == '1'}
<tr>
<td>
<div style="text-align:center;">
<a href="{$url|escape:'htmlall':'UTF-8'}">{l s='or Return to Home page' mod='checkage'}</a>
</div>
</td>
</tr>
{/if}
</table>
</div>
</div>
</div>
</div>
{/if}
{/if}
<!-- END Module Checkage -->

View File

@@ -0,0 +1,19 @@
<?php
/**
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*/
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,19 @@
<?php
/**
* 2017 Agence Bondaty and Co
*
* @author Agence Bondaty and Co <support@bondaty-and-co.fr>
* @copyright 2017 Agence Bondaty and Co
* @license single
* Agence Bondaty and Co
*/
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;