This commit is contained in:
romuald 2015-09-23 17:00:13 +02:00
commit 717c623388
17 changed files with 665 additions and 413 deletions

2
.gitignore vendored
View File

@ -66,3 +66,5 @@ modules/*/mails/*
/config
/import
/imgs
xml
update.sh

View File

@ -1,2 +0,0 @@
Order deny,allow
Deny from all

View File

@ -1,35 +0,0 @@
<?php
/*
* 2007-2015 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-2015 PrestaShop SA
* @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

@ -1,329 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright Prestashop -->
<theme version="1.0" name="default-bootstrap" directory="default-bootstrap">
<author name="PrestaShop" email="contact@prestashop.com" url="http://www.prestashop.com"/>
<descriptions>
<description iso="en"></description>
</descriptions>
<variations>
<variation name="default-bootstrap" directory="default-bootstrap" responsive="1" default_left_column="1"
default_right_column="0" product_per_page="12" from="1.6.0.5" to="1.6.0.5"/>
</variations>
<docs>
<doc name="documentation" path="doc/"/>
</docs>
<metas>
<meta meta_page="404" left="0" right="0"/>
<meta meta_page="best-sales" left="1" right="0"/>
<meta meta_page="contact" left="0" right="0"/>
<meta meta_page="index" left="0" right="0"/>
<meta meta_page="manufacturer" left="1" right="0"/>
<meta meta_page="new-products" left="1" right="0"/>
<meta meta_page="password" left="0" right="0"/>
<meta meta_page="prices-drop" left="1" right="0"/>
<meta meta_page="sitemap" left="1" right="0"/>
<meta meta_page="supplier" left="0" right="0"/>
<meta meta_page="address" left="0" right="0"/>
<meta meta_page="addresses" left="0" right="0"/>
<meta meta_page="authentication" left="0" right="0"/>
<meta meta_page="cart" left="0" right="0"/>
<meta meta_page="discount" left="0" right="0"/>
<meta meta_page="history" left="0" right="0"/>
<meta meta_page="identity" left="0" right="0"/>
<meta meta_page="my-account" left="0" right="0"/>
<meta meta_page="order-follow" left="0" right="0"/>
<meta meta_page="order-slip" left="0" right="0"/>
<meta meta_page="order" left="0" right="0"/>
<meta meta_page="search" left="1" right="0"/>
<meta meta_page="stores" left="0" right="0"/>
<meta meta_page="order-opc" left="0" right="0"/>
<meta meta_page="guest-tracking" left="0" right="0"/>
<meta meta_page="order-confirmation" left="0" right="0"/>
<meta meta_page="product" left="0" right="0"/>
<meta meta_page="category" left="1" right="0"/>
<meta meta_page="cms" left="0" right="0"/>
<meta meta_page="module-cheque-payment" left="0" right="0"/>
<meta meta_page="module-cheque-validation" left="0" right="0"/>
<meta meta_page="module-bankwire-validation" left="0" right="0"/>
<meta meta_page="module-bankwire-payment" left="0" right="0"/>
<meta meta_page="module-cashondelivery-validation" left="0" right="0"/>
<meta meta_page="products-comparison" left="0" right="0"/>
</metas>
<modules>
<module action="enable" name="socialsharing"/>
<module action="enable" name="blockbanner"/>
<module action="enable" name="blockbestsellers"/>
<module action="enable" name="blockcart"/>
<module action="enable" name="blocksocial"/>
<module action="enable" name="blockcategories"/>
<module action="enable" name="blockcurrencies"/>
<module action="enable" name="blockfacebook"/>
<module action="enable" name="blocklanguages"/>
<module action="enable" name="blocklayered"/>
<module action="enable" name="blockcms"/>
<module action="enable" name="blockcmsinfo"/>
<module action="enable" name="blockcontact"/>
<module action="enable" name="blockcontactinfos"/>
<module action="enable" name="blockmanufacturer"/>
<module action="enable" name="blockmyaccount"/>
<module action="enable" name="blockmyaccountfooter"/>
<module action="enable" name="blocknewproducts"/>
<module action="enable" name="blocknewsletter"/>
<module action="enable" name="blockpaymentlogo"/>
<module action="enable" name="blocksearch"/>
<module action="enable" name="blockspecials"/>
<module action="enable" name="blockstore"/>
<module action="enable" name="blocksupplier"/>
<module action="enable" name="blocktags"/>
<module action="enable" name="blocktopmenu"/>
<module action="enable" name="blockuserinfo"/>
<module action="enable" name="blockviewed"/>
<module action="enable" name="dashactivity"/>
<module action="enable" name="dashtrends"/>
<module action="enable" name="dashgoals"/>
<module action="enable" name="dashproducts"/>
<module action="enable" name="homeslider"/>
<module action="enable" name="homefeatured"/>
<module action="enable" name="productpaymentlogos"/>
<module action="enable" name="statsdata"/>
<module action="enable" name="themeconfigurator"/>
<module action="enable" name="blockwishlist"/>
<module action="enable" name="productcomments"/>
<module action="enable" name="sendtoafriend"/>
<module action="disable" name="autoupgrade"/>
<module action="disable" name="blockadvertising"/>
<module action="disable" name="blockcustomerprivacy"/>
<module action="disable" name="blocklink"/>
<module action="disable" name="blockpermanentlinks"/>
<module action="disable" name="blockreinsurance"/>
<module action="disable" name="blockrss"/>
<module action="disable" name="blocksharefb"/>
<module action="disable" name="crossselling"/>
<module action="disable" name="editorial"/>
<module action="disable" name="favoriteproducts"/>
<module action="disable" name="ganalytics"/>
<module action="disable" name="gsitemap"/>
<module action="disable" name="mailalerts"/>
<module action="disable" name="newsletter"/>
<module action="disable" name="productscategory"/>
<module action="disable" name="producttooltip"/>
<module action="disable" name="trackingfront"/>
<module action="disable" name="vatnumber"/>
<module action="disable" name="addshoppers"/>
<hooks>
<hook module="socialsharing" hook="displayHeader" position="1"/>
<hook module="socialsharing" hook="displayRightColumnProduct" position="1"/>
<hook module="socialsharing" hook="actionObjectProductUpdateAfter" position="1"/>
<hook module="socialsharing" hook="actionObjectProductDeleteAfter" position="1"/>
<hook module="socialsharing" hook="displayCompareExtraInformation" position="1"/>
<hook module="blockbanner" hook="displayHeader" position="2"/>
<hook module="blockbanner" hook="displayBanner" position="1"/>
<hook module="blockbanner" hook="actionObjectLanguageAddAfter" position="1"/>
<hook module="blockbestsellers" hook="displayLeftColumn" position="1" exceptions="category"/>
<hook module="blockbestsellers" hook="displayHeader" position="3"/>
<hook module="blockbestsellers" hook="actionProductAdd" position="1"/>
<hook module="blockbestsellers" hook="actionProductUpdate" position="1"/>
<hook module="blockbestsellers" hook="actionProductDelete" position="1"/>
<hook module="blockbestsellers" hook="actionOrderStatusPostUpdate" position="1"/>
<hook module="blockbestsellers" hook="displayHomeTab" position="3"/>
<hook module="blockbestsellers" hook="displayHomeTabContent" position="3"/>
<hook module="blockcart" hook="displayHeader" position="4"/>
<hook module="blockcart" hook="displayTop" position="2"/>
<hook module="blockcart" hook="actionCartListOverride" position="1"/>
<hook module="blocksocial" hook="displayHeader" position="5"/>
<hook module="blocksocial" hook="displayFooter" position="2"/>
<hook module="blockcategories" hook="displayLeftColumn" position="2"/>
<hook module="blockcategories" hook="displayHeader" position="6"/>
<hook module="blockcategories" hook="displayFooter" position="3"/>
<hook module="blockcategories" hook="actionCategoryAdd" position="1"/>
<hook module="blockcategories" hook="actionCategoryUpdate" position="1"/>
<hook module="blockcategories" hook="actionCategoryDelete" position="1"/>
<hook module="blockcategories" hook="displayBackOfficeCategory" position="1"/>
<hook module="blockcategories" hook="actionAdminMetaControllerUpdate_optionsBefore" position="1"/>
<hook module="blockcategories" hook="actionAdminLanguagesControllerStatusBefore" position="1"/>
<hook module="blockcurrencies" hook="displayHeader" position="7"/>
<hook module="blockcurrencies" hook="displayNav" position="2"/>
<hook module="blockfacebook" hook="displayHome" position="2"/>
<hook module="blockfacebook" hook="displayHeader" position="8"/>
<hook module="blocklanguages" hook="displayHeader" position="9"/>
<hook module="blocklanguages" hook="displayNav" position="3"/>
<hook module="blocklayered" hook="displayLeftColumn" position="3"/>
<hook module="blocklayered" hook="displayHeader" position="10"/>
<hook module="blocklayered" hook="actionCategoryAdd" position="2"/>
<hook module="blocklayered" hook="actionCategoryUpdate" position="2"/>
<hook module="blocklayered" hook="actionCategoryDelete" position="2"/>
<hook module="blocklayered" hook="displayAttributeGroupForm" position="1"/>
<hook module="blocklayered" hook="actionAttributeGroupSave" position="1"/>
<hook module="blocklayered" hook="actionAttributeGroupDelete" position="1"/>
<hook module="blocklayered" hook="displayFeatureForm" position="1"/>
<hook module="blocklayered" hook="actionFeatureSave" position="1"/>
<hook module="blocklayered" hook="actionFeatureDelete" position="1"/>
<hook module="blocklayered" hook="actionProductSave" position="1"/>
<hook module="blocklayered" hook="actionProductListOverride" position="1"/>
<hook module="blocklayered" hook="displayAttributeGroupPostProcess" position="1"/>
<hook module="blocklayered" hook="displayFeaturePostProcess" position="1"/>
<hook module="blocklayered" hook="displayFeatureValueForm" position="1"/>
<hook module="blocklayered" hook="displayFeatureValuePostProcess" position="1"/>
<hook module="blocklayered" hook="actionFeatureValueDelete" position="1"/>
<hook module="blocklayered" hook="actionFeatureValueSave" position="1"/>
<hook module="blocklayered" hook="displayAttributeForm" position="1"/>
<hook module="blocklayered" hook="actionAttributePostProcess" position="1"/>
<hook module="blocklayered" hook="actionAttributeDelete" position="1"/>
<hook module="blocklayered" hook="actionAttributeSave" position="1"/>
<hook module="blockcms" hook="displayLeftColumn" position="4"/>
<hook module="blockcms" hook="displayHeader" position="11"/>
<hook module="blockcms" hook="displayFooter" position="4"/>
<hook module="blockcms" hook="actionObjectCmsUpdateAfter" position="1"/>
<hook module="blockcms" hook="actionObjectCmsDeleteAfter" position="1"/>
<hook module="blockcms" hook="actionShopDataDuplication" position="1"/>
<hook module="blockcms" hook="actionAdminStoresControllerUpdate_optionsAfter" position="1"/>
<hook module="blockcmsinfo" hook="displayHome" position="3"/>
<hook module="blockcontact" hook="displayHeader" position="12"/>
<hook module="blockcontact" hook="displayNav" position="4"/>
<hook module="blockcontactinfos" hook="displayHeader" position="13"/>
<hook module="blockcontactinfos" hook="displayFooter" position="6"/>
<hook module="blockmanufacturer" hook="displayLeftColumn" position="5" exceptions="category"/>
<hook module="blockmanufacturer" hook="displayHeader" position="14"/>
<hook module="blockmanufacturer" hook="actionObjectManufacturerDeleteAfter" position="1"/>
<hook module="blockmanufacturer" hook="actionObjectManufacturerAddAfter" position="1"/>
<hook module="blockmanufacturer" hook="actionObjectManufacturerUpdateAfter" position="1"/>
<hook module="blockmyaccount" hook="displayLeftColumn" position="6" exceptions="category"/>
<hook module="blockmyaccount" hook="displayHeader" position="15"/>
<hook module="blockmyaccount" hook="actionModuleRegisterHookAfter" position="1"/>
<hook module="blockmyaccount" hook="actionModuleUnRegisterHookAfter" position="1"/>
<hook module="blockmyaccountfooter" hook="displayHeader" position="16"/>
<hook module="blockmyaccountfooter" hook="displayFooter" position="5"/>
<hook module="blockmyaccountfooter" hook="actionModuleRegisterHookAfter" position="2"/>
<hook module="blockmyaccountfooter" hook="actionModuleUnRegisterHookAfter" position="2"/>
<hook module="blocknewproducts" hook="displayLeftColumn" position="7"/>
<hook module="blocknewproducts" hook="displayHeader" position="17"/>
<hook module="blocknewproducts" hook="actionProductAdd" position="2"/>
<hook module="blocknewproducts" hook="actionProductUpdate" position="2"/>
<hook module="blocknewproducts" hook="actionProductDelete" position="2"/>
<hook module="blocknewproducts" hook="displayHomeTab" position="1"/>
<hook module="blocknewproducts" hook="displayHomeTabContent" position="1"/>
<hook module="blocknewsletter" hook="displayHeader" position="18"/>
<hook module="blocknewsletter" hook="displayFooter" position="1"/>
<hook module="blocknewsletter" hook="actionCustomerAccountAdd" position="1"/>
<hook module="blockpaymentlogo" hook="displayLeftColumn" position="8" exceptions="category"/>
<hook module="blockpaymentlogo" hook="displayHeader" position="19"/>
<hook module="blocksearch" hook="displayHeader" position="20"/>
<hook module="blocksearch" hook="displayTop" position="1"/>
<hook module="blocksearch" hook="displayMobileTopSiteMap" position="1"/>
<hook module="blockspecials" hook="displayLeftColumn" position="9"/>
<hook module="blockspecials" hook="displayHeader" position="21"/>
<hook module="blockspecials" hook="actionProductAdd" position="3"/>
<hook module="blockspecials" hook="actionProductUpdate" position="3"/>
<hook module="blockspecials" hook="actionProductDelete" position="3"/>
<hook module="blockstore" hook="displayLeftColumn" position="10"/>
<hook module="blockstore" hook="displayHeader" position="22"/>
<hook module="blocksupplier" hook="displayLeftColumn" position="11" exceptions="category"/>
<hook module="blocksupplier" hook="displayHeader" position="23"/>
<hook module="blocksupplier" hook="actionObjectSupplierDeleteAfter" position="1"/>
<hook module="blocksupplier" hook="actionObjectSupplierAddAfter" position="1"/>
<hook module="blocksupplier" hook="actionObjectSupplierUpdateAfter" position="1"/>
<hook module="blocktags" hook="displayLeftColumn" position="12"/>
<hook module="blocktags" hook="displayHeader" position="24"/>
<hook module="blocktopmenu" hook="displayTop" position="3"/>
<hook module="blocktopmenu" hook="actionCategoryUpdate" position="3"/>
<hook module="blocktopmenu" hook="actionObjectProductUpdateAfter" position="2"/>
<hook module="blocktopmenu" hook="actionObjectProductDeleteAfter" position="2"/>
<hook module="blocktopmenu" hook="actionObjectCmsUpdateAfter" position="2"/>
<hook module="blocktopmenu" hook="actionObjectCmsDeleteAfter" position="2"/>
<hook module="blocktopmenu" hook="actionShopDataDuplication" position="2"/>
<hook module="blocktopmenu" hook="actionObjectManufacturerDeleteAfter" position="2"/>
<hook module="blocktopmenu" hook="actionObjectManufacturerAddAfter" position="2"/>
<hook module="blocktopmenu" hook="actionObjectManufacturerUpdateAfter" position="2"/>
<hook module="blocktopmenu" hook="actionObjectSupplierDeleteAfter" position="2"/>
<hook module="blocktopmenu" hook="actionObjectSupplierAddAfter" position="2"/>
<hook module="blocktopmenu" hook="actionObjectSupplierUpdateAfter" position="2"/>
<hook module="blocktopmenu" hook="actionObjectCategoryUpdateAfter" position="1"/>
<hook module="blocktopmenu" hook="actionObjectCategoryDeleteAfter" position="1"/>
<hook module="blocktopmenu" hook="actionObjectCategoryAddAfter" position="1"/>
<hook module="blocktopmenu" hook="actionObjectCmsAddAfter" position="1"/>
<hook module="blocktopmenu" hook="actionObjectProductAddAfter" position="1"/>
<hook module="blockuserinfo" hook="displayHeader" position="25"/>
<hook module="blockuserinfo" hook="displayTop" position="4"/>
<hook module="blockuserinfo" hook="displayNav" position="1"/>
<hook module="blockviewed" hook="displayLeftColumn" position="13"/>
<hook module="blockviewed" hook="displayHeader" position="26"/>
<hook module="dashactivity" hook="dashboardZoneOne" position="1"/>
<hook module="dashactivity" hook="dashboardData" position="1"/>
<hook module="dashactivity" hook="actionObjectOrderAddAfter" position="1"/>
<hook module="dashactivity" hook="actionObjectCustomerAddAfter" position="1"/>
<hook module="dashactivity" hook="actionObjectCustomerMessageAddAfter" position="1"/>
<hook module="dashactivity" hook="actionObjectCustomerThreadAddAfter" position="1"/>
<hook module="dashactivity" hook="actionObjectOrderReturnAddAfter" position="1"/>
<hook module="dashactivity" hook="actionAdminControllerSetMedia" position="1"/>
<hook module="dashtrends" hook="actionOrderStatusPostUpdate" position="2"/>
<hook module="dashtrends" hook="dashboardData" position="2"/>
<hook module="dashtrends" hook="actionAdminControllerSetMedia" position="2"/>
<hook module="dashtrends" hook="dashboardZoneTwo" position="1"/>
<hook module="dashgoals" hook="dashboardData" position="3"/>
<hook module="dashgoals" hook="actionAdminControllerSetMedia" position="3"/>
<hook module="dashgoals" hook="dashboardZoneTwo" position="2"/>
<hook module="dashproducts" hook="actionSearch" position="1"/>
<hook module="dashproducts" hook="dashboardData" position="4"/>
<hook module="dashproducts" hook="actionObjectOrderAddAfter" position="2"/>
<hook module="dashproducts" hook="dashboardZoneTwo" position="3"/>
<hook module="homeslider" hook="displayHeader" position="27"/>
<hook module="homeslider" hook="displayTopColumn" position="1"/>
<hook module="homeslider" hook="actionShopDataDuplication" position="3"/>
<hook module="homefeatured" hook="displayHeader" position="28"/>
<hook module="homefeatured" hook="actionProductAdd" position="4"/>
<hook module="homefeatured" hook="actionProductUpdate" position="4"/>
<hook module="homefeatured" hook="actionProductDelete" position="4"/>
<hook module="homefeatured" hook="actionCategoryUpdate" position="4"/>
<hook module="homefeatured" hook="displayHomeTab" position="2"/>
<hook module="homefeatured" hook="displayHomeTabContent" position="2"/>
<hook module="productpaymentlogos" hook="displayHeader" position="29"/>
<hook module="productpaymentlogos" hook="displayProductButtons" position="2"/>
<hook module="statsdata" hook="actionAuthentication" position="1"/>
<hook module="statsdata" hook="displayFooter" position="7"/>
<hook module="statsdata" hook="actionCustomerAccountAdd" position="2"/>
<hook module="themeconfigurator" hook="displayLeftColumn" position="14"/>
<hook module="themeconfigurator" hook="displayHome" position="1"/>
<hook module="themeconfigurator" hook="displayHeader" position="30"/>
<hook module="themeconfigurator" hook="displayFooter" position="8"/>
<hook module="themeconfigurator" hook="displayBackOfficeHeader" position="1"/>
<hook module="themeconfigurator" hook="displayTopColumn" position="2"/>
<hook module="themeconfigurator" hook="actionObjectLanguageAddAfter" position="2"/>
<hook module="blockwishlist" hook="displayHeader" position="31"/>
<hook module="blockwishlist" hook="actionCartSave" position="1"/>
<hook module="blockwishlist" hook="displayTop" position="7"/>
<hook module="blockwishlist" hook="displayAdminCustomers" position="1"/>
<hook module="blockwishlist" hook="displayCustomerAccount" position="1"/>
<hook module="blockwishlist" hook="displayProductButtons" position="1"/>
<hook module="blockwishlist" hook="displayMyAccountBlock" position="1"/>
<hook module="blockwishlist" hook="displayProductListFunctionalButtons" position="1"/>
<hook module="productcomments" hook="displayHeader" position="32"/>
<hook module="productcomments" hook="displayRightColumnProduct" position="2"/>
<hook module="productcomments" hook="displayProductTab" position="1"/>
<hook module="productcomments" hook="displayProductTabContent" position="1"/>
<hook module="productcomments" hook="displayProductComparison" position="1"/>
<hook module="productcomments" hook="displayProductListReviews" position="1"/>
<hook module="sendtoafriend" hook="displayHeader" position="33"/>
<hook module="sendtoafriend" hook="displayLeftColumnProduct" position="1"/>
</hooks>
</modules>
<images>
<image name="cart_default" width="80" height="80" products="true" categories="false" manufacturers="false"
suppliers="false" scenes="false"/>
<image name="small_default" width="98" height="98" products="true" categories="false" manufacturers="true"
suppliers="true" scenes="false"/>
<image name="medium_default" width="125" height="125" products="true" categories="true" manufacturers="true"
suppliers="true" scenes="false"/>
<image name="home_default" width="250" height="250" products="true" categories="false" manufacturers="false"
suppliers="false" scenes="false"/>
<image name="large_default" width="458" height="458" products="true" categories="false" manufacturers="true"
suppliers="true" scenes="false"/>
<image name="thickbox_default" width="800" height="800" products="true" categories="false" manufacturers="false"
suppliers="false" scenes="false"/>
<image name="category_default" width="870" height="217" products="false" categories="true" manufacturers="false"
suppliers="false" scenes="false"/>
<image name="scene_default" width="870" height="270" products="false" categories="false" manufacturers="false"
suppliers="false" scenes="true"/>
<image name="m_scene_default" width="161" height="58" products="false" categories="false" manufacturers="false"
suppliers="false" scenes="true"/>
</images>
</theme>

View File

@ -1,35 +0,0 @@
<?php
/*
* 2007-2015 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-2015 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

@ -1,2 +0,0 @@
<?xml version="1.0"?>
<modules_list><modules type="untrusted"><module name="advmenu"/><module name="bankwire"/><module name="blockadshooks"/><module name="blockadvertising"/><module name="blockbanner"/><module name="blockbestsellers"/><module name="blockcart"/><module name="blockcategories"/><module name="blockcms"/><module name="blockcmsinfo"/><module name="blockcontact"/><module name="blockcontactinfos"/><module name="blockcurrencies"/><module name="blockcustomerprivacy"/><module name="blocklanguages"/><module name="blocklink"/><module name="blockmanufacturer"/><module name="blockmyaccount"/><module name="blockmyaccountfooter"/><module name="blocknewproducts"/><module name="blocknewsletter"/><module name="blockpaymentlogo"/><module name="blockpermanentlinks"/><module name="blockreinsurance"/><module name="blockrss"/><module name="blocksearch"/><module name="blocksharefb"/><module name="blocksocial"/><module name="blockspecials"/><module name="blockstore"/><module name="blocksupplier"/><module name="blocktags"/><module name="blocktopmenu"/><module name="blockuserinfo"/><module name="blockviewed"/><module name="blockwishlist"/><module name="categorieshome"/><module name="cheque"/><module name="cms_comments"/><module name="cms_extrafields"/><module name="cms_menu"/><module name="cms_pack"/><module name="cmsps"/><module name="cronjobs"/><module name="crossselling"/><module name="dashactivity"/><module name="dashgoals"/><module name="dashproducts"/><module name="dashtrends"/><module name="graphnvd3"/><module name="gridhtml"/><module name="homefeatured"/><module name="homeproduct"/><module name="homeslider"/><module name="pagesnotfound"/><module name="paypal"/><module name="productcomments"/><module name="productpaymentlogos"/><module name="productscategory"/><module name="producttooltip"/><module name="referralprogram"/><module name="sekeywords"/><module name="sendtoafriend"/><module name="seourl"/><module name="socialsharing"/><module name="vatnumber"/></modules></modules_list>

View File

@ -0,0 +1,59 @@
<?php
require_once dirname(__FILE__).'/../../config/config.inc.php';
require_once dirname(__FILE__).'/../../init.php';
/*require_once dirname(__FILE__).'/../../override/modules/blocknewsletter/blocknewsletter.php';*/
require_once dirname(__FILE__).'/blocknewsletter.php';
require_once dirname(__FILE__).'/../../override/modules/blocknewsletter/blocknewsletter.php';
$NWAjax = new NWAjax();
$NWAjax->process();
class NWAjax{
public function __construct(){}
public function process(){
if(Tools::getValue('cookie')){
$lifetime = (int)Tools::getValue('lifetime');
$update = (int)Tools::getValue('update');
die(Tools::JsonEncode($response = $this->checkCookie($update, $lifetime)));
}
elseif((int)Tools::getValue('action') == 0){
$action = (int)Tools::getValue('action');
$email = Tools::getValue('email');
$page = Tools::getValue('page');
$post_id = false;
if(Tools::getValue('id_post'))
$post_id = (int)Tools::getValue('id_post');
$blocknewsletter = new BlockNewsletterOverride();
$response = $blocknewsletter->ajaxCall($email,$action,$page,$post_id);
die(Tools::JsonEncode($response));
}
}
private function checkCookie($update = false, $lifetime = 3600){
$cookie = $this->getCookie('ps_newsletter_ligthbox'.Context::getContext()->shop->id);
if ($update){
$cookie->event_date = time();
return false;
}
if (!isset($cookie->event_date) || time() > $cookie->event_date + $lifetime){
return true;
}
return false;
}
private function getCookie($cookie_name){
$cookie = new Cookie($cookie_name);
if (!$cookie->exists())
$cookie = $this->createCookie($cookie_name);
return $cookie;
}
private function createCookie($cookie_name){
return new Cookie($cookie_name);
}
}

View File

@ -138,6 +138,12 @@ class AdminCmsPsCategoriesController extends ModuleAdminController {
'size' => $image_size,
'delete_url' => self::$currentIndex.'&'.$this->identifier.'='.$this->object->id.'&token='.$this->token.'&deleteImage=1',
),
array(
'type' => 'file',
'label' => $this->l('PDF (newsletter)'),
'name' => 'pdf',
'hint' => $this->l('Upload a pdf from your computer.'),
),
array(
'type' => 'text',
'label' => $this->l('Meta title'),
@ -223,6 +229,28 @@ class AdminCmsPsCategoriesController extends ModuleAdminController {
if (Tools::getValue('deleteImage')) {
$this->processForceDeleteImage();
}
if(isset($_FILES['pdf']) && !empty($_FILES['pdf']['tmp_name'])){
$obj = $this->loadObject(TRUE);
$fileTemp = $_FILES['pdf']['tmp_name'];
$fileParts = pathinfo($_FILES['pdf']['name']);
$filename = Tools::getValue('slug_'.$this->context->language->id);
if($fileParts['extension'] == 'pdf'){
if(!is_dir(_CMS_CAT_IMG_DIR_.'pdf'))
mkdir(_CMS_CAT_IMG_DIR_.'pdf', 0775);
$res = move_uploaded_file($fileTemp, _CMS_CAT_IMG_DIR_.'pdf/Tout-pratique-'.$filename.'.pdf');
if(!$res){
$this->errors[] = sprintf(Tools::displayError('An error occured during upload of file %s'),'Tout-pratique-'.$filename.'.pdf');
}
else{
$this->confirmations[] = sprintf($this->l('File %s has been uploaded'), 'Tout-pratique-'.$filename.'.pdf');
}
} else{
$this->errors[] = sprintf(Tools::displayError('File %s have not good extension, only .jpg or .png'), 'Tout-pratique-'.$filename.'.pdf');
}
}
return parent::postProcess();
}

View File

@ -10,11 +10,265 @@ class BlockNewsletterOverride extends BlockNewsletter
return false;
}
public function ajaxCall($email, $action = 0, $page, $id_post = false){
/*$_POST['email'] = $email;
$_POST['action'] = $action;
$_POST['page'] = $page;
if($id_post)
$_POST['id_post'] = $id_post;
$result = $this->newsletterRegistration();
if($result && $this->error != '')
die(Tools::jsonEncode(array(
'has_error' => true,
'message' => $this->error
)));
elseif($result && $this->valid!='')
die(Tools::jsonEncode(array(
'has_error' => false,
'message' => $this->valid
)));*/
if (empty($email) || !Validate::isEmail($email))
return array(
'has_error' => true,
'css' => 'alert alert-danger',
'message' => 'Invalid email address.'
);
if ($action == 0){
$cmsCategory = false;
if($id_post)
$cmsCategory = $this->searchCmsCategory($id_post, false);
$register_status = $this->isNewsletterRegistered($email);
$email = pSQL($email);
if ($register_status > 0){
if (Configuration::get('NW_CONFIRMATION_EMAIL') && $cmsCategory){
$this->sendConfirmationEmail($email, $cmsCategory);
return array(
'has_error' => false,
'css' => 'alert alert-success',
'message' => 'You will recieve your PDF.'
);
}
}
elseif (!$this->isRegistered($register_status)) {
if ($this->register($email, $register_status))
return array(
'has_error' => false,
'css' => 'alert alert-success',
'message' => 'You have successfully subscribed to this newsletter.'
);
else
return array(
'has_error' => true,
'css' => 'alert alert-danger',
'message' => 'An error occurred during the process.'
);
if (Configuration::get('NW_CONFIRMATION_EMAIL') && $cmsCategory)
$this->sendConfirmationEmail($email, $cmsCategory);
}
}
return array(
'has_error' => true,
'css' => 'alert alert-danger',
'message' => 'An error occurred during the subscription process.'
);
}
/**
* Register in block newsletter
*/
protected function newsletterRegistration()
{
if (empty($_POST['email']) || !Validate::isEmail($_POST['email']))
return $this->error = $this->l('Invalid email address.');
/* Unsubscription */
else if ($_POST['action'] == '1')
{
$register_status = $this->isNewsletterRegistered($_POST['email']);
if ($register_status < 1)
return $this->error = $this->l('This email address is not registered.');
if (!$this->unregister($_POST['email'], $register_status))
return $this->error = $this->l('An error occurred while attempting to unsubscribe.');
return $this->valid = $this->l('Unsubscription successful.');
}
/* Subscription */
else if ($_POST['action'] == '0')
{
$cmsCategory = false;
$genericPdf = false;
if(isset($_POST['id_post']) && $id_post = $_POST['id_post'])
$cmsCategory = $this->searchCmsCategory($id_post, false);
elseif(isset($_POST['id_cat']) && $id_cat = $_POST['id_cat'])
$cmsCategory = $this->searchCmsCategory($id_cat, true);
elseif(isset($_POST['page']) && ($_POST['page'] == 'index' || $_POST['page'] == 'homeedito' || $_POST['page'] == 'postedito'))
$genericPdf = array(
'content' => _CMS_CAT_IMG_DIR_.'pdf/Tout-pratique.pdf',
'name' => 'Tout-pratique.pdf',
'mine' => 'application/pdf'
);
$register_status = $this->isNewsletterRegistered($_POST['email']);
$email = pSQL($_POST['email']);
if ($register_status > 0){
// Pas d'enregistrement mais envoie du pdf
if (Configuration::get('NW_CONFIRMATION_EMAIL') && $cmsCategory){
$this->valid = $this->l('You will recieve your PDF.');
$this->sendConfirmationEmail($email, $cmsCategory);
}
elseif (Configuration::get('NW_CONFIRMATION_EMAIL') && $genericPdf){
$this->valid = $this->l('You will recieve your PDF.');
$this->sendConfirmationEmail($email, false, $genericPdf);
}
else{
return $this->error = $this->l('This email address is already registered.');
}
}
if (!$this->isRegistered($register_status))
{
if (Configuration::get('NW_VERIFICATION_EMAIL'))
{
// create an unactive entry in the newsletter database
if ($register_status == self::GUEST_NOT_REGISTERED)
$this->registerGuest($email, false);
if (!$token = $this->getToken($email, $register_status))
return $this->error = $this->l('An error occurred during the subscription process.');
$this->sendVerificationEmail($email, $token);
return $this->valid = $this->l('A verification email has been sent. Please check your inbox.');
}
else
{
if ($this->register($email, $register_status))
$this->valid = $this->l('You have successfully subscribed to this newsletter.');
else
return $this->error = $this->l('An error occurred during the subscription process.');
if ($code = Configuration::get('NW_VOUCHER_CODE') && !$cmsCategory && !$genericPdf)
$this->sendVoucher($email, Configuration::get('NW_VOUCHER_CODE'));
elseif (Configuration::get('NW_CONFIRMATION_EMAIL') && $cmsCategory)
$this->sendConfirmationEmail($email, $cmsCategory);
elseif (Configuration::get('NW_CONFIRMATION_EMAIL') && $genericPdf)
$this->sendConfirmationEmail($email, false, $genericPdf);
}
}
}
}
public function searchCmsCategory($id, $strict = false){
if($strict)
$cmsCategory = Db::getInstance()->ExecuteS("
SELECT cc.`id_category`,cc.`id_parent`, ccl.`slug`
FROM `"._DB_PREFIX_."cmsps_categories` as cc
LEFT JOIN `"._DB_PREFIX_."cmsps_categories_lang` as ccl ON (ccl.`id_category` = cc.`id_category`)
WHERE cc.`id_category`= ".(int)$id." AND ccl.`id_lang` = ".(int)$this->context->language->id."
");
else
$cmsCategory = Db::getInstance()->ExecuteS("
SELECT cc.`id_category`,cc.`id_parent`, ccl.`slug`
FROM `"._DB_PREFIX_."cmsps_categories` as cc
LEFT JOIN `"._DB_PREFIX_."cmsps_posts` as cp ON (cp.`id_category` = cc.`id_category`)
LEFT JOIN `"._DB_PREFIX_."cmsps_categories_lang` as ccl ON (ccl.`id_category` = cc.`id_category`)
WHERE cp.`id_post`= ".(int)$id." AND ccl.`id_lang` = ".(int)$this->context->language->id."
");
while($cmsCategory[0]['id_parent'] != 0)
$cmsCategory = Db::getInstance()->ExecuteS("
SELECT cc.`id_category`, cc.`id_parent`, ccl.`slug`
FROM `"._DB_PREFIX_."cmsps_categories` as cc
LEFT JOIN `"._DB_PREFIX_."cmsps_categories_lang` as ccl ON (ccl.`id_category` = cc.`id_category`)
WHERE cc.`id_category` = ".(int)$cmsCategory[0]['id_category']." AND ccl.`id_lang` = ".(int)$this->context->language->id."
");
return $cmsCategory[0];
}
/**
* @Override
*/
protected function sendConfirmationEmail($email, $cmsCategory = false, $genericPdf = false)
{
$data = array();
$fileAttachment = array();
if($cmsCategory){
if(glob(_CMS_CAT_IMG_DIR_.'pdf/Tout-pratique-'.$cmsCategory['slug'].'.pdf')){
$fileAttachment['content'] = _CMS_CAT_IMG_DIR_.'pdf/Tout-pratique-'.$cmsCategory['slug'].'.pdf';
$fileAttachment['name'] = 'Tout-pratique-'.$cmsCategory['slug'].'.pdf';
$fileAttachment['mime'] = "application/pdf";
$data['{attached_file_url}'] = _CMS_CAT_IMG_DIR_.'pdf/Tout-pratique-'.$cmsCategory['slug'].'.pdf';
$data['{attached_file}'] = "Tout-pratique-".$cmsCategory['slug'];
}
else{
// on envoie le pdf générique
$fileAttachment['content'] = _CMS_CAT_IMG_DIR_.'pdf/Tout-pratique.pdf';
$fileAttachment['name'] = 'Tout-pratique.pdf';
$fileAttachment['mime'] = "application/pdf";
$data['{attached_file_url}'] = _CMS_CAT_IMG_DIR_.'pdf/Tout-pratique.pdf';
$data['{attached_file}'] = "Tout-pratique";
}
}
elseif($genericPdf){
$fileAttachment = $genericPdf;
$data['{attached_file_url}'] = $genericPdf['content'];
$data['{attached_file}'] = $genericPdf['name'];
}
return Mail::Send($this->context->language->id, 'newsletter_conf', Mail::l('Newsletter confirmation', $this->context->language->id), $data, pSQL($email), null, null, null, $fileAttachment, null, _THEME_DIR_.'modules/blocknewsletter/mails/', false, $this->context->shop->id);
}
/**
* @Override
*/
protected function _prepareHook($params)
{
if (Tools::isSubmit('submitNewsletter'))
{
$this->newsletterRegistration();
if ($this->error)
{
$this->smarty->assign(
array(
'color' => 'red',
'msg' => $this->error,
'nw_value' => isset($_POST['email']) ? pSQL($_POST['email']) : false,
'nw_error' => true,
'action' => $_POST['action'],
'nw_block' => $_POST['block'],
)
);
}
else if ($this->valid)
{
$this->smarty->assign(
array(
'color' => 'green',
'msg' => $this->valid,
'nw_error' => false,
'nw_block' => $_POST['block'],
)
);
}
}
$this->smarty->assign('this_path', $this->_path);
}
public function hookdisplayNewsletterFooter($params)
{
if (!isset($this->prepared) || !$this->prepared)
$this->_prepareHook($params);
if(isset($params['id_cmspost']))
$this->context->smarty->assign('post_id',$params['id_cmspost']);
$this->prepared = true;
return $this->display(__FILE__, 'blocknewsletter_footer.tpl');
}
@ -25,7 +279,28 @@ class BlockNewsletterOverride extends BlockNewsletter
if (!isset($this->prepared) || !$this->prepared)
$this->_prepareHook($params);
$this->prepared = true;
if(isset($params['id_cmspost']))
$this->context->smarty->assign('post_id',$params['id_cmspost']);
return $this->display(__FILE__, 'blocknewsletter_left.tpl');
}
public function hookdisplayFooter($params)
{
if($this->context->customer->isLogged())
$register_status = $this->isNewsletterRegistered($this->context->customer->email);
if((isset($register_status) && $register_status>0) || !isset($register_status)){
if (!isset($this->prepared) || !$this->prepared)
$this->_prepareHook($params);
$this->prepared = true;
if(isset($params['id_cmspost']))
$this->context->smarty->assign('post_id',$params['id_cmspost']);
$this->context->smarty->assign('nw_url','/modules/blocknewsletter/ajax_ligthbox.php');
return $this->display(__FILE__, 'blocknewsletter_lightbox.tpl');
}
}
}

View File

@ -598,6 +598,11 @@ body .ac_results {
color: #fff;
padding: 0 300px;
}
.newsletter_footer p.nw-alert-footer{
color: #ebccd1;
background-color: rgba(0, 0, 0, 0);
border: none;
}
.newsletter_footer .form-group {
width: 450px;
margin: 0 auto;
@ -636,6 +641,14 @@ body .ac_results {
padding-right: 15px;
text-align: left;
}
.newsletter_left p.nw-alert-left{
padding:0;
margin:0;
text-align: center;
color: #ebccd1;
background-color: rgba(0, 0, 0, 0);
border: none;
}
.newsletter_left .form-group {
width: 300px;
margin: 0 auto;
@ -648,6 +661,78 @@ body .ac_results {
}
.newsletter_left .form-group .btn { width: 300px;}
.newsletter_lightbox{
display: none;
position: fixed;
z-index: 9999;
top: 10%;
background-color: #529bb6;
background: url('../img/newsletter_lightbox.png') no-repeat top center;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100% 100%;
padding: 10px;
left: 0;
right: 0;
margin: 0 auto;
overflow: hidden;
width: 760px;
}
.newsletter_lightbox .newsletter-box{
border: 1px dashed #fff;
padding-bottom: 50px;
padding-top: 30px;
padding-left: 280px;
padding-right: 25px;
}
.newsletter_lightbox h5 {
font-family: 'nautilus';
font-size: 50px;
margin-bottom: 20px;
text-align: center;
color: #fff;
-webkit-text-shadow: 1px 1px 1px #696565;
-moz-text-shadow: 1px 1px 1px #696565;
-o-text-shadow: 1px 1px 1px #696565;
text-shadow: 1px 1px 1px #696565;
}
.newsletter_lightbox h5 span {
color: #333333;
}
.newsletter_lightbox p{
padding: 5px 10px;
margin-bottom: 30px;
}
.newsletter_lightbox .form-group{
width: 100%;
}
.newsletter_lightbox input.newsletter-input{
width: calc(100% - 165px);
margin-right: 5px;
}
.newsletter_lightbox .btn.btn-black{
padding: 10px 45px;
}
.newsletter_lightbox.shown{
display: block;
}
.newsletter_overlay{
background-color: #000;
display: none;
height: 100%;
left: 0;
opacity: 0.7;
position: fixed;
top: 0;
width: 100%;
z-index: 9998;
}
.newsletter_overlay.shown{
display: block;
}
.inner_partenaire {
padding-bottom: 15px;
}
@ -822,13 +907,47 @@ body .ac_results {
margin-left: -125px;
}
#header #mainmenu > div > ul { background: #e4e2de; height: 100%; left: -101%; margin: 0; position: absolute; transition: all 0.3s ease 0s; width: 80% }
#header #mainmenu > div > ul > li > .submenu { width: 80% }
}
.newsletter_lightbox{
width: 540px;
webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100% 100%;
}
.newsletter_lightbox .newsletter-box {
border: 1px dashed #fff;
padding-bottom: 0px;
padding-top: 5px;
padding-left: 170px;
padding-right: 5px;
}
.newsletter_lightbox h5{
font-size: 35px;
}
.newsletter_lightbox p{
font-size: 14px;
}
.newsletter_lightbox input.newsletter-input{
display: inline-block;
}
#header #mainmenu > div > ul { background: #e4e2de; height: 100%; left: -101%; margin: 0; position: absolute; transition: all 0.3s ease 0s; width: 80% }
#header #mainmenu > div > ul > li > .submenu { width: 80% }
}
@media (max-width: 549px) {
.newsletter_lightbox{width: 500px;}
.newsletter_lightbox .newsletter-box {padding-left: 155px;}
.newsletter_lightbox p {margin-bottom: 20px;}
}
@media (max-width: 500px) {
#header #header_logo img { width: 50%; }
#header .info_header h1 { margin-top: 20px;}
.newsletter_lightbox{width: 100%; background:#529bb6;}
.newsletter_lightbox .newsletter-box {padding-left: 5px;}
.newsletter_lightbox h5{font-size: 30px}
.newsletter_lightbox .form-group{padding: 0 5px;}
.newsletter_lightbox input.newsletter-input, .newsletter_lightbox .btn.btn-black{display: block; width: 100%; text-align: center;}
}

View File

@ -5,7 +5,6 @@
{hook h='displayNewsletterFooter'}
</div>
<div class="container">
<div class="separator"></div>
@ -70,6 +69,9 @@
<div class="logo_footer text-center">
<img src="{$img_dir}logo.jpg" alt="{l s='Tout pratique logo'}">
</div>
{hook h='displayFooter'}
{hook h='displayFooterLink'}
</div>
</footer>

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

View File

@ -35,13 +35,107 @@ $(document).ready(function() {
}
});
var nw_cookie = 60*60*24*3;
$('.newsletter_overlay').on('click', function(){
$('.newsletter_lightbox').removeClass('shown');
$('.newsletter_overlay').removeClass('shown');
});
$(window).mousemove(function(e) {
if(e.pageY < 30){
doDisplayPopup(0, nw_cookie);
}
});
$(document).scroll(function(){
var scrollPercent = ($(document).height() - $(window).height())*0.7;
if($(window).scrollTop() > scrollPercent){
doDisplayPopup(0, nw_cookie);
}
});
$('#newsletterLightboxSubmit').submit(function(){
data = {
ajax : true,
email : $('#newsletterLightboxSubmit #newsletter-input').val(),
action : $('#newsletterLightboxSubmit input[name="action"]').val(),
page : $('#newsletterLightboxSubmit input[name="page"]').val(),
id_post : $('#newsletterLightboxSubmit input[name="id_post"]').val(),
};
registerNewsletter(data);
return false;
});
var cssClass = 'alert alert-danger';
if (typeof nw_error != 'undefined' && !nw_error)
cssClass = 'alert alert-success';
if (typeof msg_newsl != 'undefined' && msg_newsl)
{
$('#footer .newsletter form').before('<div class="clearfix"></div><p class="' + cssClass + '"> ' + alert_blocknewsletter + '</p>');
$('html, body').animate({scrollTop: $('#footer .newsletter').offset().top}, 'slow');
/*$('#footer .newsletter form').before('<div class="clearfix"></div><p class="' + cssClass + '"> ' + alert_blocknewsletter + '</p>');
$('html, body').animate({scrollTop: $('#footer .newsletter').offset().top}, 'slow');*/
if(nw_block=='left')
$('.newsletter_'+nw_block+' form').before('<p class="nw-alert-left ' + cssClass + '"> ' + alert_blocknewsletter + '</p>');
else if(nw_block=='footer')
$('.newsletter_'+nw_block+' form').after('<div class="clearfix"></div><p class="nw-alert-footer ' + cssClass + '"> ' + alert_blocknewsletter + '</p>');
else if(nw_block=='lightbox'){
$('.newsletter_'+nw_block+' form').before('<div class="clearfix"></div><p class="nw-alert-footer ' + cssClass + '"> ' + alert_blocknewsletter + '</p>');
}
$('html, body').animate({scrollTop: $('.newsletter_'+nw_block).offset().top}, 'slow');
}
});
});
function popUpShow(){
if($('.newsletter_lightbox').hasClass('shown') == false)
$('.newsletter_lightbox').addClass('shown');
if($('.newsletter_overlay').hasClass('shown') == false)
$('.newsletter_overlay').addClass('shown');
doDisplayPopup(1, 0);
}
function doDisplayPopup (update, lifetime){
if (typeof(update) === 'undefined')
update = 0;
if (typeof(lifetime) === 'undefined')
lifetime = 60*60;
$.ajax({
type: "POST",
url: nw_url,
cache: false,
dataType: "json",
data : {
ajax: true,
update: update,
lifetime: lifetime,
cookie: true,
},
success : function(data)
{
if(data===true)
popUpShow();
}
});
}
function registerNewsletter(data){
$.ajax({
type: "POST",
url: nw_url,
cache: false,
dataType: "json",
data : data,
success : function(response)
{
cssClass = response.css;
if($('.newsletter_lightbox .nw-alert-lightbox').length>0){
if($('.newsletter_lightbox .nw-alert-lightbox.'+cssClass).length>0)
$('.newsletter_lightbox .nw-alert-lightbox').text(response.message);
else
$('.newsletter_lightbox .response').html('<div class="clearfix"></div><p class="nw-alert-lightbox ' + cssClass + '"> ' + response.message + '</p>');
}
else
$('.newsletter_lightbox form').before('<div class="response"><div class="clearfix"></div><p class="nw-alert-lightbox ' + cssClass + '"> ' + response.message + '</p></div>');
}
});
}

View File

@ -3,13 +3,21 @@
<h5>{l s='Recevez' mod='blocknewsletter'} <span>{l s='gratuitement' mod='blocknewsletter'}</span> {l s='mon guide !' mod='blocknewsletter'}</h5>
<p>{l s='Abonnez-vous à ma sélection d\'astuces et conseils mensuels et recevez immédiatemment mon guide du Tout Propre en PDF par email!' mod='blocknewsletter'}</p>
<form action="{$link->getPageLink('index', null, null, null, false, null, true)|escape:'html':'UTF-8'}" method="post">
<form action="" method="post">
<div class="form-group{if isset($msg) && $msg } {if $nw_error}form-error{else}form-ok{/if}{/if}" >
<input class="inputNew form-control grey newsletter-input" id="newsletter-input" type="text" name="email" size="18" value="{l s='Mon adresse mail' mod='blocknewsletter'}" />
<button class="btn btn-black" type="submit" name="submitNewsletter">
<span>{l s='Recevoir maintenant' mod='blocknewsletter'}</span>
</button>
<input type="hidden" name="action" value="0" />
<input type="hidden" name="block" value="footer" />
<input type="hidden" name="page" value="{$page_name}" />
{if isset($categorycms->id_category) && $categorycms->id_category}
<input type="hidden" name="id_cat" value="{$categorycms->id_category}" />
{/if}
{if isset($post_id) && $post_id}
<input type="hidden" name="id_post" value="{$post_id}" />
{/if}
</div>
</form>
</div>
@ -21,6 +29,9 @@
{if isset($nw_error)}
{addJsDef nw_error=$nw_error}
{/if}
{if isset($nw_block)}
{addJsDef nw_block=$nw_block}
{/if}
{addJsDefL name=placeholder_blocknewsletter}{l s='Enter your e-mail' mod='blocknewsletter' js=1}{/addJsDefL}
{if isset($msg) && $msg}
{addJsDefL name=alert_blocknewsletter}{l s='%1$s' sprintf=$msg js=1 mod="blocknewsletter"}{/addJsDefL}

View File

@ -10,6 +10,10 @@
<span>{l s='Recevoir maintenant' mod='blocknewsletter'}</span>
</button>
<input type="hidden" name="action" value="0" />
<input type="hidden" name="block" value="left" />
{if isset($post_id) && $post_id}
<input type="hidden" name="id_post" value="{$post_id}" />
{/if}
</div>
</form>
</div>
@ -21,6 +25,9 @@
{if isset($nw_error)}
{addJsDef nw_error=$nw_error}
{/if}
{if isset($nw_block)}
{addJsDef nw_block=$nw_block}
{/if}
{addJsDefL name=placeholder_blocknewsletter}{l s='Enter your e-mail' mod='blocknewsletter' js=1}{/addJsDefL}
{if isset($msg) && $msg}
{addJsDefL name=alert_blocknewsletter}{l s='%1$s' sprintf=$msg js=1 mod="blocknewsletter"}{/addJsDefL}

View File

@ -0,0 +1,44 @@
{if $page_name == 'postcms'}
<!-- Block Newsletter module-->
<div class="newsletter_lightbox">
<div class="newsletter-box">
<h5>{l s='Recevez' mod='blocknewsletter'} <span>{l s='gratuitement' mod='blocknewsletter'}</span> {l s='mon guide !' mod='blocknewsletter'}</h5>
<p>{l s='Abonnez-vous à ma sélection d\'astuces et conseils mensuels et recevez immédiatemment mon guide du Tout Propre en PDF par email!' mod='blocknewsletter'}</p>
<form id="newsletterLightboxSubmit" class="form-inline" action="" method="post">
<div class="form-group{if isset($msg) && $msg } {if $nw_error}form-error{else}form-ok{/if}{/if}" >
<input class="inputNew form-control grey newsletter-input" id="newsletter-input" type="text" name="email" size="18" placeholder="{l s='Mon adresse mail' mod='blocknewsletter'}" />
<button class="btn btn-black" type="submit" name="submitNewsletter">
<span>{l s='Recevoir' mod='blocknewsletter'}</span>
</button>
<input type="hidden" name="action" value="0" />
<input type="hidden" name="block" value="lightbox" />
<input type="hidden" name="page" value="{$page_name}" />
{if isset($post_id) && $post_id}
<input type="hidden" name="id_post" value="{$post_id}" />
{/if}
</div>
</form>
</div>
</div>
<div class="newsletter_overlay"></div>
<!-- /Block Newsletter module-->
{strip}
{if isset($msg) && $msg}
{addJsDef msg_newsl=$msg|@addcslashes:'\''}
{/if}
{if isset($nw_error)}
{addJsDef nw_error=$nw_error}
{/if}
{if isset($nw_block)}
{addJsDef nw_block=$nw_block}
{/if}
{if isset($nw_url)}
{addJsDef nw_url=$base_dir|cat:$nw_url}
{/if}
{addJsDefL name=placeholder_blocknewsletter}{l s='Enter your e-mail' mod='blocknewsletter' js=1}{/addJsDefL}
{if isset($msg) && $msg}
{addJsDefL name=alert_blocknewsletter}{l s='%1$s' sprintf=$msg js=1 mod="blocknewsletter"}{/addJsDefL}
{/if}
{/strip}
{/if}

View File

@ -12,7 +12,9 @@
</td>
</tr><tr><td class="space_footer" style="padding:0;"> </td>
</tr><tr><td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0;">
<table class="table" style="width:100%;"><tr><td width="10" style="padding:7px 0;"> </td>
<table class="table" style="width:100%;">
<tr>
<td width="10" style="padding:7px 0;"> </td>
<td style="padding:7px 0;">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<span style="color:#777;">
@ -22,7 +24,19 @@
</font>
</td>
<td width="10" style="padding:7px 0;"> </td>
</tr></table></td>
</tr>
<tr>
<td width="10" style="padding:7px 0;"> </td>
<td style="padding:7px 0;">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<span style="color:#777;">
Téléchargez dès à présent votre <a href="{attached_file_url}">{attached_file}</a>
</span>
</font>
</td>
<td width="10" style="padding:7px 0;"> </td>
</tr>
</table></td>
</tr><tr><td class="space_footer" style="padding:0;"> </td>
</tr><tr><td class="footer" style="border-top:4px solid #333333;padding:7px 0;">
<span><a href="%7Bshop_url%7D" style="color:#337ff1;">{shop_name}</a> réalisé avec <a href="http://www.prestashop.com/" style="color:#337ff1;">PrestaShop™</a></span>