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,69 @@
.blockreassurance {
padding-top: 10px;
text-align: center;
width: 100%;
}
.blockreassurance .reass-item {
display: inline-block;
text-align: center;
vertical-align: top;
font-size: 0.8rem;
}
.blockreassurance .block-title {
font-weight: bold;
}
.blockreassurance .block-icon,
.blockreassurance .block-icon img,
.blockreassurance .block-icon svg {
height: 50px;
}
@media (max-width: 575px) {
.blockreassurance {
text-align: left;
}
.blockreassurance .block-icon {
display: inline-block;
height: 35px;
float: left;
margin: 10px;
width: 35px;
}
.blockreassurance .block-icon img,
.blockreassurance .block-icon svg {
height: 35px;
width: 35px;
}
.blockreassurance .block-title {
display: inline-block;
height: 35px;
max-width: calc(100% - 55px);
padding-top: 10px;
}
}
.blockreassurance_product {
margin-top: 25px;
}
.blockreassurance_product .item-product {
display: inline-block;
height: 35px;
float: left;
margin-right: 5px;
padding-top: 5px;
width: 35px;
}
.blockreassurance_product .item-product img,
.blockreassurance_product .item-product svg {
height: 35px;
width: 35px;
}
.blockreassurance_product p.block-title {
line-height: 40px;
}
/* Specific Checkout */
body#checkout .container-blockreassurance {
min-height: auto;
}/*# sourceMappingURL=front.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"sources":["front.scss","front.css"],"names":[],"mappings":"AAAA;EACI,iBAAA;EACA,kBAAA;EACA,WAAA;ACCJ;ADAE;EACE,qBAAA;EACA,kBAAA;EACA,mBAAA;EACF,iBAAA;ACEF;ADAE;EACE,iBAAA;ACEJ;ADAE;;;EAGE,YAAA;ACEJ;;ADEA;EACI;IACI,gBAAA;ECCN;EDCE;IACI,qBAAA;IACA,YAAA;IACA,WAAA;IACA,YAAA;IACA,WAAA;ECCN;EDCE;;IAEI,YAAA;IACA,WAAA;ECCN;EDCE;IACI,qBAAA;IACA,YAAA;IACA,4BAAA;IACA,iBAAA;ECCN;AACF;ADEA;EACE,gBAAA;ACAF;ADCE;EACE,qBAAA;EACA,YAAA;EACA,WAAA;EACA,iBAAA;EACA,gBAAA;EACA,WAAA;ACCJ;;ADGA;;EAEI,YAAA;EACA,WAAA;ACAJ;;ADGA;EACI,iBAAA;ACAJ;;ADGA,sBAAA;AACA;EACI,gBAAA;ACAJ","file":"front.css"}

View File

@@ -0,0 +1,70 @@
.blockreassurance {
padding-top: 10px;
text-align: center;
width: 100%;
.reass-item {
display: inline-block;
text-align: center;
vertical-align: top;
font-size: 0.8rem;
}
.block-title {
font-weight: bold;
}
.block-icon,
.block-icon img,
.block-icon svg {
height: 50px;
}
}
@media (max-width:575px) {
.blockreassurance {
text-align:left;
}
.blockreassurance .block-icon {
display: inline-block;
height: 35px;
float: left;
margin: 10px;
width: 35px;
}
.blockreassurance .block-icon img,
.blockreassurance .block-icon svg {
height: 35px;
width: 35px;
}
.blockreassurance .block-title {
display: inline-block;
height: 35px;
max-width: calc(100% - 55px);
padding-top: 10px;
}
}
.blockreassurance_product {
margin-top: 25px;
.item-product {
display: inline-block;
height: 35px;
float: left;
margin-right: 5px;
padding-top: 5px;
width: 35px;
}
}
.blockreassurance_product .item-product img,
.blockreassurance_product .item-product svg {
height: 35px;
width: 35px;
}
.blockreassurance_product p.block-title {
line-height: 40px;
}
/* Specific Checkout */
body#checkout .container-blockreassurance {
min-height: auto;
}

View File

@@ -0,0 +1,77 @@
/**
* 2007-2019 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-2019 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
import './front.scss';
$(window).ready(() => {
/**
* @param {String} imgSrc
*/
function styleSVG(imgSrc) {
const imgTarget = $(`.blockreassurance_product img.svg.invisible[src="${imgSrc}"], .blockreassurance img.svg.invisible[src="${imgSrc}"]`);
if (imgTarget.length === 0) {
return;
}
// Fetch the image
$.ajax({
url: imgSrc,
type: 'GET',
success(data) {
if ($.isXMLDoc(data)) {
// Get the SVG tag, ignore the rest
let $svg = $(data).find('svg');
// Add URL in data
$svg = $svg.attr('data-img-url', imgSrc);
// Remove any invalid XML tags as per http://validator.w3.org
$svg = $svg.removeAttr('xmlns:a');
// Set color defined in backoffice
$svg.find('path[fill]').attr('fill', window.psr_icon_color);
$svg.find('path:not([fill])').css('fill', window.psr_icon_color);
// For each element, replace the svg with specific ID & CSS class
imgTarget.each(function () {
const imgID = $(this).attr('id');
const imgClass = $(this).attr('class');
let $imgSvg = $svg.clone();
// Add replaced image's ID to the new SVG
$imgSvg = typeof imgID !== 'undefined' ? $imgSvg.attr('id', imgID) : $imgSvg;
// Add replaced image's classes to the new SVG
$imgSvg = typeof imgClass !== 'undefined' ? $imgSvg.attr('class', `${imgClass} replaced-svg`) : $imgSvg.attr('class', ' replaced-svg');
$imgSvg.removeClass('invisible');
$(this).replaceWith($imgSvg);
});
}
},
});
}
const imgSrcSvg = $('.blockreassurance_product img.svg, .blockreassurance img.svg').map(function () {
return $(this).attr('src');
}).toArray();
imgSrcSvg
.filter((el, pos) => imgSrcSvg.indexOf(el) === pos)
.forEach(styleSVG);
});

View File

@@ -0,0 +1,34 @@
<?php
/**
* 2007-2019 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-2019 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;