From 5106a5f1e344b924995a923e19562a98a6829232 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Fri, 15 Nov 2013 17:25:12 +0100 Subject: [PATCH 1/7] // Fix products controller title --- controllers/admin/AdminProductsController.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index d274cbec7..388a552c2 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -2488,15 +2488,6 @@ class AdminProductsControllerCore extends AdminController $this->context->smarty->assign('toolbar_btn', $this->toolbar_btn); } - public function initToolbarTitle() - { - parent::initToolbarTitle(); - - if ($this->display != 'list') - if (($product = $this->loadObject(true)) && Validate::isLoadedObject($product)) - $this->toolbar_title[] = Tools::htmlentitiesUTF8($product->name[$this->context->employee->id_lang]); - } - /** * renderForm contains all necessary initialization needed for all tabs * From 5ef4b8eddcfb27a94c6ebaa4963d6c755730a336 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 18 Nov 2013 12:12:14 +0100 Subject: [PATCH 2/7] // Installer optimization --- install-dev/classes/controllerHttp.php | 5 +++- install-dev/theme/js/configure.js | 24 ++++++++++++++++++ install-dev/theme/js/database.js | 24 ++++++++++++++++++ install-dev/theme/js/install.js | 24 ++++++++++++++++++ install-dev/theme/js/license.js | 24 ++++++++++++++++++ install-dev/theme/js/process.js | 24 ++++++++++++++++++ install-dev/theme/js/welcome.js | 35 ++++++++++++++++++++------ 7 files changed, 151 insertions(+), 9 deletions(-) diff --git a/install-dev/classes/controllerHttp.php b/install-dev/classes/controllerHttp.php index 8a83a4526..53bc10f39 100644 --- a/install-dev/classes/controllerHttp.php +++ b/install-dev/classes/controllerHttp.php @@ -321,13 +321,16 @@ abstract class InstallControllerHttp */ public function getPhone() { + if (InstallSession::getInstance()->support_phone != null) + return InstallSession::getInstance()->support_phone; if ($this->phone === null) { $this->phone = $this->language->getInformation('phone', false); - if ($iframe = Tools::file_get_contents('http://api.prestashop.com/iframe/install.php?lang='.$this->language->getLanguageIso())) + if ($iframe = Tools::file_get_contents('http://api.prestashop.com/iframe/install.php?lang='.$this->language->getLanguageIso(), false, null, 3)) if (preg_match('//Ui', $iframe, $matches) && isset($matches[1])) $this->phone = $matches[1]; } + InstallSession::getInstance()->support_phone = $this->phone; return $this->phone; } diff --git a/install-dev/theme/js/configure.js b/install-dev/theme/js/configure.js index 98a647702..77b83ba14 100644 --- a/install-dev/theme/js/configure.js +++ b/install-dev/theme/js/configure.js @@ -1,3 +1,27 @@ +/* +* +* 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 +* @copyright 2007-2013 PrestaShop SA +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + $(document).ready(function() { // Change logo diff --git a/install-dev/theme/js/database.js b/install-dev/theme/js/database.js index f19e8f651..25aa056c4 100644 --- a/install-dev/theme/js/database.js +++ b/install-dev/theme/js/database.js @@ -1,3 +1,27 @@ +/* +* +* 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 +* @copyright 2007-2013 PrestaShop SA +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + $(document).ready(function() { // Check database configuration diff --git a/install-dev/theme/js/install.js b/install-dev/theme/js/install.js index e5d753eb2..1ea1114d8 100644 --- a/install-dev/theme/js/install.js +++ b/install-dev/theme/js/install.js @@ -1,3 +1,27 @@ +/* +* +* 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 +* @copyright 2007-2013 PrestaShop SA +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + $(document).ready(function() { $('#mainForm').submit(function() diff --git a/install-dev/theme/js/license.js b/install-dev/theme/js/license.js index 74371fa93..dc0b2e81c 100644 --- a/install-dev/theme/js/license.js +++ b/install-dev/theme/js/license.js @@ -1,3 +1,27 @@ +/* +* +* 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 +* @copyright 2007-2013 PrestaShop SA +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + $(document).ready(function() { // Desactivate next button if licence checkbox is not checked diff --git a/install-dev/theme/js/process.js b/install-dev/theme/js/process.js index 22d66d9c4..6e523dcfc 100644 --- a/install-dev/theme/js/process.js +++ b/install-dev/theme/js/process.js @@ -1,3 +1,27 @@ +/* +* +* 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 +* @copyright 2007-2013 PrestaShop SA +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + var is_installing = false; $(document).ready(function() { diff --git a/install-dev/theme/js/welcome.js b/install-dev/theme/js/welcome.js index 48cc69dfa..90976346b 100644 --- a/install-dev/theme/js/welcome.js +++ b/install-dev/theme/js/welcome.js @@ -1,10 +1,29 @@ -$(document).ready(function() -{ - // Submit change of language - $('#langList').change(function() - { - var form = $('#mainForm'); - form.attr('action', form.attr('action')+'#licenses-agreement'); - form.submit(); +/* +* +* 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 +* @copyright 2007-2013 PrestaShop SA +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + +$(document).ready(function() { + $('#langList').change(function() { + $('#mainForm').submit(); }); }); \ No newline at end of file From 89c65536d72c68664bae6d509bc5f1ef5d61037f Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 18 Nov 2013 12:23:50 +0100 Subject: [PATCH 3/7] // Added missing configuration vars in the installer --- install-dev/data/xml/configuration.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install-dev/data/xml/configuration.xml b/install-dev/data/xml/configuration.xml index 57ae25ae3..4e8fd7658 100644 --- a/install-dev/data/xml/configuration.xml +++ b/install-dev/data/xml/configuration.xml @@ -781,5 +781,11 @@ Country - + + 40 + + + 1 + From ebad56a800cae72c642677549e0a27420a355e03 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 18 Nov 2013 14:29:32 +0100 Subject: [PATCH 4/7] // Fix small error --- modules/blockcategories/blockcategories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blockcategories/blockcategories.php b/modules/blockcategories/blockcategories.php index 67669e8a5..69851cd19 100644 --- a/modules/blockcategories/blockcategories.php +++ b/modules/blockcategories/blockcategories.php @@ -217,7 +217,7 @@ class BlockCategories extends Module $resultIds[$row['id_category']] = &$row; } - $blockCategTree = $this->getTree($resultParents, $resultIds, $maxdepth, ($category && (!isset($params['is_top_menu']) || !$params['is_top_menu']) ? $category->id : null)); + $blockCategTree = $this->getTree($resultParents, $resultIds, $maxdepth, ($category ? $category->id : null)); $this->smarty->assign('blockCategTree', $blockCategTree); if ($category) From 239604b70c94c226ed84b82db59a744a238b8517 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 18 Nov 2013 14:35:15 +0100 Subject: [PATCH 5/7] // Missing isset on cols and rows --- admin-dev/themes/default/template/helpers/form/form.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/helpers/form/form.tpl b/admin-dev/themes/default/template/helpers/form/form.tpl index d9ef5e964..1cf88291c 100644 --- a/admin-dev/themes/default/template/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/helpers/form/form.tpl @@ -437,7 +437,7 @@ {/foreach} {else} - + {/if} {elseif $input.type == 'checkbox'} From 867eef79ccd6d29ab40839b14b3b6328f539d447 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 18 Nov 2013 14:39:46 +0100 Subject: [PATCH 6/7] // Add live configurator toolbox - Part 1 --- modules/themeconfigurator/css/index.php | 36 ++++ .../css/live_configurator.css | 183 ++++++++++++++++++ .../img/en/advertisement.png | Bin 0 -> 14749 bytes modules/themeconfigurator/img/en/index.php | 36 ++++ modules/themeconfigurator/img/index.php | 36 ++++ .../themeconfigurator/js/live_configurator.js | 36 ++++ .../themeconfigurator/themeconfigurator.php | 53 ++++- modules/themeconfigurator/views/index.php | 36 ++++ .../views/templates/hook/index.php | 36 ++++ .../templates/hook/live_configurator.tpl | 90 +++++++++ .../views/templates/index.php | 36 ++++ 11 files changed, 575 insertions(+), 3 deletions(-) create mode 100644 modules/themeconfigurator/css/index.php create mode 100644 modules/themeconfigurator/css/live_configurator.css create mode 100644 modules/themeconfigurator/img/en/advertisement.png create mode 100644 modules/themeconfigurator/img/en/index.php create mode 100644 modules/themeconfigurator/img/index.php create mode 100644 modules/themeconfigurator/js/live_configurator.js create mode 100644 modules/themeconfigurator/views/index.php create mode 100644 modules/themeconfigurator/views/templates/hook/index.php create mode 100644 modules/themeconfigurator/views/templates/hook/live_configurator.tpl create mode 100644 modules/themeconfigurator/views/templates/index.php diff --git a/modules/themeconfigurator/css/index.php b/modules/themeconfigurator/css/index.php new file mode 100644 index 000000000..69b76d92d --- /dev/null +++ b/modules/themeconfigurator/css/index.php @@ -0,0 +1,36 @@ + +* @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; \ No newline at end of file diff --git a/modules/themeconfigurator/css/live_configurator.css b/modules/themeconfigurator/css/live_configurator.css new file mode 100644 index 000000000..f7cd40dc2 --- /dev/null +++ b/modules/themeconfigurator/css/live_configurator.css @@ -0,0 +1,183 @@ +/* +* 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 +* @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 +*/ + +#gear-right{ + background: #333333; + display: block; + height: 50px; + left: 215px; + position: fixed; + top: 90px; + width: 50px; + z-index: 20; +} + +#gear-right i{ + display: block; + padding-top: 10px; + text-align: center; +} + +#tool_customization{ + position: fixed; + left: 0; + top: 90px; + z-index: 20; + height: auto; + width: 215px; + background: #333333 +} + +#tool_customization p{ + padding: 15px; + color:#ffffff; + font-size: 13px; + text-shadow: 0.1em 0.1em 0.05em #000000 +} + +#tool_customization p span{ + color:#8d8c8c; + font-size: 11px; +} + +#tool_customization .list-tools{ + background: #484848; + border:1px solid #595959; + border-left: none; + border-right:none; + height:50px; +} + +#tool_customization .list-tools p{font-weight: bold;} + +#tool_customization .list-tools i{padding-top: 3px} + +#tool_customization #color-box{padding: 15px} + +#tool_customization #color-box ul li{ + display: inline-block; + border: 1px solid #595959; + height:27px; + width: 27px; + margin:5px 5px 5px 0; +} + +#tool_customization #color-box .color-theme1{ + display:block; + width:0px; + height:0px; + border-left-color:transparent !important; + border-top-color:transparent !important; + position: relative; + z-index: 1 +} + +#tool_customization #color-box .color-theme2{ + display:block; + width:25px; + height:25px; + position: relative; + top: -26px; +} + +#tool_customization #color-box .theme1 .color1{border:13px solid #ffffff;} +#tool_customization #color-box .theme1 .color2{background: #484848;} + +#tool_customization #color-box .theme2 .color1{border:13px solid #f6f6f6;} +#tool_customization #color-box .theme2 .color2{background: #f2404e;} + +#tool_customization #color-box .theme3 .color1{border:13px solid #333333;} +#tool_customization #color-box .theme3 .color2{background: #545454;} + +#tool_customization #color-box .theme4 .color1{border:13px solid #272727;} +#tool_customization #color-box .theme4 .color2{background: #eac22d;} + +#tool_customization #color-box .theme5 .color1{border:13px solid #ffffff;} +#tool_customization #color-box .theme5 .color2{background: #729f42;} + +#tool_customization #color-box .theme6 .color1{border:13px solid #f5f1e8;} +#tool_customization #color-box .theme6 .color2{background: #b04444;} + +#tool_customization #color-box .theme7 .color1{border:13px solid #f1f1f1;} +#tool_customization #color-box .theme7 .color2{background: #317081;} + +#tool_customization #color-box .theme8 .color1{border:13px solid #fcfcfc;} +#tool_customization #color-box .theme8 .color2{background: #43bebc;} + +#tool_customization #color-box .theme9 .color1{border:13px solid #f9f6ed;} +#tool_customization #color-box .theme9 .color2{background: #eea200;} + +#tool_customization #font-box{padding:0 15px 15px;} +#tool_customization #font-box p{ + padding:0; + margin: 15px 0 5px; + color:#9c9b9b; +} + +#tool_customization #font-box .font-list{ + background: #484848; + border:1px solid #595959; + height:30px; + width:180px; + color:#ffffff; +} + +#tool_customization #font-box .font-list li{clear:both;padding-right: 10px;} + +#tool_customization #font-box .font-list li p{ + display: inline-block; + margin: 0; + padding: 5px 15px; + color:#9c9b9b; + text-shadow: 0 0 0 transparent; +} + +#tool_customization #font-box .font-list li i{padding-top: 6px} + + +#tool_customization .btn-tools{ + background: #484848; + border:1px solid #595959; + border-left: none; + border-right:none; + height: 56px; + padding: 10px 15px; +} + +#tool_customization .btn{font-weight: bold;} + +#tool_customization .btn-1{ + background: #727171; + color: #ffffff; + text-shadow: 0.1em 0.1em 0.05em #000000 +} +#tool_customization .btn-2{ + background: #ffffff; + color: #3a3939; +} + +#tool_customization #block-advertisement{ + padding: 15px +} \ No newline at end of file diff --git a/modules/themeconfigurator/img/en/advertisement.png b/modules/themeconfigurator/img/en/advertisement.png new file mode 100644 index 0000000000000000000000000000000000000000..0fc600890da1484adfac8e0433f1ef6e955ebe1d GIT binary patch literal 14749 zcmaKTV{|6Zws-7_ZQD*Jw#~_8V%xTD+qP}noY+pDm~Z~)o^$X0@UGiybyru{{%ut4 zs_v>?9i|{B{sRUZ1_%h~hoppv(sx?@eY!z`d|w$`QBPAm}LpQrIBOV|iP%|?X4Mz=G8Eyj`D|)?uXy{$7Y`@V!Ks@}ewt5B@ zMvjE~MkZ#~yu{ZXJ;a1&hP=e;Y_g29w!%iHW)kl9M#}DTDhBQr23&^3{CtEwuH4@Y ztc)D>2wkl#tsS^sd5QnUm;3wvpT`Wug#RLOwBRNFFQqhO6$piG?2QQ7=-KED7@1fJ zIk@PV*qB&3nP>@_8JSoZ7+DyYSm>CTxf!{*nb-*beGq?3vo|#6RuU2Wx2*3RFR`hk zqb)ZBgNus`y$cJyjlBs26Bid310yp7Gc(;c1)YPNwWFRZowWnWe>jL3IT+ZR**cop zSQGxkQBU8-$&r`%ThsqC!OB+2%*52u;lG(%JN&z{zN?MFRnL}ziJpw8`yA_Q|{+Fo#ThKp*|F(f!R?ptT z=(`og^ei2W{#76=%PnGK;ACZF?IFX>KB-=bML*f?2) zIYih*n8ZX`n3y=(n7KsRnc11dSh?6aIJk)a4K(~;CjSd4!pthh!79QiCL$&#%FM*X zB__rs$|c0c%*Z9gA~ ziBmv8Y~zw5f-0`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Riq_!ZF%1QhEVK zu-bgCxN_Hdp1m?SE^;NsM7=sIbM} z_~;ZwVKeEn=Tu*EZ5}>3#2N(!J<;2JAR0kI&^(d9B}hM19tA*z`tQqpXZuM@YbZpA zTfMv8P@zKASujE2Qx$i7`|8+t6z6d;!9|t$RG4G~NklN-&t8_^1n{u-O+-vr@l`>g z_IiP%YsyorNsET-8vAgyY-S53=DEPN|Cl0Soizt{Cd|5Gro2}d6^H=||9$gmoD^8n z(A`@bN{Jtg4%eBd7@nVk5%Y5x4ep4C@1yLcEY6d-@A-J z85w~)F)uL9F=mq#1n?ljbRrYh3VlbM4cfGQPZ*WVR42XhCh{9@lIJyOKpK5@J8cmO hSOoHMz9@QuglZzQ8&SVV{`p~2QdCZ)T1eOb{{d!$0^k4u literal 0 HcmV?d00001 diff --git a/modules/themeconfigurator/img/en/index.php b/modules/themeconfigurator/img/en/index.php new file mode 100644 index 000000000..54b3024eb --- /dev/null +++ b/modules/themeconfigurator/img/en/index.php @@ -0,0 +1,36 @@ + +* @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; \ No newline at end of file diff --git a/modules/themeconfigurator/img/index.php b/modules/themeconfigurator/img/index.php new file mode 100644 index 000000000..69b76d92d --- /dev/null +++ b/modules/themeconfigurator/img/index.php @@ -0,0 +1,36 @@ + +* @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; \ No newline at end of file diff --git a/modules/themeconfigurator/js/live_configurator.js b/modules/themeconfigurator/js/live_configurator.js new file mode 100644 index 000000000..83a073d80 --- /dev/null +++ b/modules/themeconfigurator/js/live_configurator.js @@ -0,0 +1,36 @@ +/* +* 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 +* @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 +*/ + +$(document).ready( + function () + { + $('#color-box').find('li').click( + function() + { + $('#theme').val($(this).attr('class')); + } + ); + } +); \ No newline at end of file diff --git a/modules/themeconfigurator/themeconfigurator.php b/modules/themeconfigurator/themeconfigurator.php index 97114461e..ca1f0def3 100644 --- a/modules/themeconfigurator/themeconfigurator.php +++ b/modules/themeconfigurator/themeconfigurator.php @@ -40,7 +40,55 @@ class ThemeConfigurator extends Module $this->bootstrap = true; } - + public function install() + { + $themes_colors = array('theme1', 'theme2', 'theme3', 'theme4', 'theme5', 'theme6', 'theme7', 'theme8', 'theme9'); + $themes_fonts = array( + 'Georgia, serif', + '"Palatino Linotype", "Book Antiqua", Palatino, serif', + '"Times New Roman", Times, serif', + 'Arial, Helvetica, sans-serif', + '"Arial Black", Gadget, sans-serif', + 'Impact, Charcoal, sans-serif', + '"Lucida Sans Unicode", "Lucida Grande", sans-serif', + 'Tahoma, Geneva, sans-serif', + '"Trebuchet MS", Helvetica, sans-serif', + 'Verdana, Geneva, sans-serif', + '"Courier New", Courier, monospace', + '"Lucida Console", Monaco, monospace' + ); + + return (parent::install() + && $this->registerHook('top') + && Configuration::updateValue('PS_TC_THEMES', serialize($themes_colors)) + && Configuration::updateValue('PS_TC_THEMES_FONTS', serialize($themes_fonts))); + } + + public function hookTop($params) + { + if ((int)Tools::getValue('live_configurator', 0) == 1) + { + if (Tools::isSubmit('submitLiveConfigurator')) + { + Configuration::updateValue('PS_TC_THEME', Tools::getValue('theme')); + Configuration::updateValue('PS_TC_TEXT_PAGE_FONT', Tools::getValue('text-page-font')); + Configuration::updateValue('PS_TC_TEXT_MENU_FONT', Tools::getValue('text-menu-font')); + Configuration::updateValue('PS_TC_PRODUCT_NAME_FONT', Tools::getValue('product-name-font')); + } + + $this->context->controller->addCSS($this->_path.'css/live_configurator.css'); + $this->context->controller->addJS($this->_path.'js/live_configurator.js'); + + $this->smarty->assign(array( + 'themes_colors' => unserialize(Configuration::get('PS_TC_THEMES_COLORS')), + 'themes_fonts' => unserialize(Configuration::get('PS_TC_THEMES_FONTS')), + 'advertisement_image' => $this->_path.'/img/'.$this->context->language->iso_code.'/advertisement.png', + 'advertisement_text' => $this->l('Over 500+ PrestaShop Premium Templates! Browse Now!') + )); + return $this->display(__FILE__, 'live_configurator.tpl'); + } + } + public function getContent() { if (Tools::isSubmit('submitModule')) @@ -76,7 +124,6 @@ class ThemeConfigurator extends Module public function renderForm() { - $inputs = array(); foreach ($this->getConfigurableModules() as $module) $inputs[] = array( @@ -107,7 +154,7 @@ class ThemeConfigurator extends Module 'input' => $inputs, 'submit' => array( 'title' => $this->l('Save'), - 'class' => 'btn btn-primary') + 'class' => 'btn btn-default') ), ); diff --git a/modules/themeconfigurator/views/index.php b/modules/themeconfigurator/views/index.php new file mode 100644 index 000000000..69b76d92d --- /dev/null +++ b/modules/themeconfigurator/views/index.php @@ -0,0 +1,36 @@ + +* @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; \ No newline at end of file diff --git a/modules/themeconfigurator/views/templates/hook/index.php b/modules/themeconfigurator/views/templates/hook/index.php new file mode 100644 index 000000000..422fa9d45 --- /dev/null +++ b/modules/themeconfigurator/views/templates/hook/index.php @@ -0,0 +1,36 @@ + +* @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; \ No newline at end of file diff --git a/modules/themeconfigurator/views/templates/hook/live_configurator.tpl b/modules/themeconfigurator/views/templates/hook/live_configurator.tpl new file mode 100644 index 000000000..06e8b9e63 --- /dev/null +++ b/modules/themeconfigurator/views/templates/hook/live_configurator.tpl @@ -0,0 +1,90 @@ +{* +* 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 +* @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 +*} + +
+ +
+
+ +
+

+ {l s='The customization tool allows you to make color and font changes in your theme.' mod='themeconfigurator'}

+ + {l s='Only you, as a merchant can see this tool (as you are currently logged in your Back-office), your visitors will not see this tool.' mod='themeconfigurator'} + +

+
+

+ {l s='Color theme' mod='themeconfigurator'} + +

+
+ {if isset($themes_colors)} +
+
    + {foreach $themes_colors as $theme} +
  • +
    +
    +
  • + {/foreach} +
+
+ {/if} +
+

+ {l s='Font' mod='themeconfigurator'} + +

+
+
+

{l s='Text page' mod='themeconfigurator'}

+ +

{l s='Text menu parrent normal' mod='themeconfigurator'}

+ +

{l s='Product name' mod='themeconfigurator'}

+ +
+
+ + +
+
+ {$advertisement_text} +
+
+
\ No newline at end of file diff --git a/modules/themeconfigurator/views/templates/index.php b/modules/themeconfigurator/views/templates/index.php new file mode 100644 index 000000000..54b3024eb --- /dev/null +++ b/modules/themeconfigurator/views/templates/index.php @@ -0,0 +1,36 @@ + +* @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; \ No newline at end of file From 46dc93fd7eaccf6505da116b132264fe1116f236 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 18 Nov 2013 14:41:49 +0100 Subject: [PATCH 7/7] // Adding update button on to page header toolbar on module --- .../default/template/controllers/modules/configure.tpl | 8 ++++++++ controllers/admin/AdminModulesController.php | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/modules/configure.tpl b/admin-dev/themes/default/template/controllers/modules/configure.tpl index fdd8b9c2f..e28cb84fb 100644 --- a/admin-dev/themes/default/template/controllers/modules/configure.tpl +++ b/admin-dev/themes/default/template/controllers/modules/configure.tpl @@ -47,6 +47,14 @@
{l s='Reset'}
+ {if isset($module_update_link)} +
  • + + +
    {l s='Update'}
    +
    +
  • + {/if}
  • diff --git a/controllers/admin/AdminModulesController.php b/controllers/admin/AdminModulesController.php index a3d79b831..34ca493ff 100644 --- a/controllers/admin/AdminModulesController.php +++ b/controllers/admin/AdminModulesController.php @@ -705,6 +705,7 @@ class AdminModulesControllerCore extends AdminController $disable_link = $this->context->link->getAdminLink('AdminModules').'&module_name='.$module->name.'&enable=0&tab_module='.$module->tab; $uninstall_link = $this->context->link->getAdminLink('AdminModules').'&module_name='.$module->name.'&uninstall='.$module->name.'&tab_module='.$module->tab; $reset_link = $this->context->link->getAdminLink('AdminModules').'&module_name='.$module->name.'&reset&tab_module='.$module->tab; + $update_link = $this->context->link->getAdminLink('AdminModules').'&check_and_update='.$module->name.'&module_name='.$module->name.'&reset&tab_module='.$module->tab; $this->context->smarty->assign(array( 'module_name' => $module->name, @@ -714,6 +715,7 @@ class AdminModulesControllerCore extends AdminController 'module_disable_link' => $disable_link, 'module_uninstall_link' => $uninstall_link, 'module_reset_link' => $reset_link, + 'module_update_link' => (Module::needUpgrade($module) ? $update_link : null), 'trad_link' => $trad_link, 'module_languages' => Language::getLanguages(false), 'theme_language_dir' => _THEME_LANG_DIR_ @@ -790,8 +792,13 @@ class AdminModulesControllerCore extends AdminController Tools::redirectAdmin(self::$currentIndex.'&conf='.$return.'&token='.$this->token.'&tab_module='.$module->tab.'&module_name='.$module->name.'&anchor='.ucfirst($module->name).(isset($modules_list_save) ? '&modules_list='.$modules_list_save : '').$params); } - if (isset($_GET['update'])) + if (Tools::getValue('update')) Tools::redirectAdmin(self::$currentIndex.'&token='.$this->token.'&updated=1tab_module='.$module->tab.'&module_name='.$module->name.'&anchor='.ucfirst($module->name).(isset($modules_list_save) ? '&modules_list='.$modules_list_save : '')); + + if (Tools::getValue('check_and_update')) + { + //TODO + } } public function postProcess()