From 3433a5b8a77c4d7b0fc11a44818459fd33216fd3 Mon Sep 17 00:00:00 2001 From: abhishek-webkul <84142535+abhishek-webkul@users.noreply.github.com> Date: Fri, 1 Mar 2024 17:03:33 +0530 Subject: [PATCH] Fix license headers --- .../customers/helpers/required_fields.tpl | 69 +++++++++++++++++++ .../admin/AdminCustomersController.php | 2 + modules/blocknewsletter/blocknewsletter.css | 19 ----- modules/blocknewsletter/blocknewsletter.js | 25 ------- .../admin/AdminNewsletterController.php | 4 +- .../admin/AdminParentNewsletterController.php | 28 -------- .../controllers/admin/index.php | 4 +- .../controllers/front/subscription.php | 4 +- modules/blocknewsletter/export/index.php | 4 +- .../blocknewsletter/views/css/front/index.php | 52 +++++--------- .../views/css/front/verification.css | 42 +++++------ modules/blocknewsletter/views/css/index.php | 42 +++++------ .../blocknewsletter/views/js/front/index.php | 42 +++++------ .../views/js/front/verification.js | 42 +++++------ modules/blocknewsletter/views/js/index.php | 42 +++++------ .../helpers/list/list_action_enable.tpl | 4 +- .../helpers/list/view-customer-link.tpl | 4 +- .../front/subscription_execution.tpl | 4 +- .../views/templates/hook/blocknewsletter.tpl | 4 +- .../blocknewsletter/blocknewsletter.css | 19 ----- 20 files changed, 195 insertions(+), 261 deletions(-) create mode 100644 admin/themes/default/template/controllers/customers/helpers/required_fields.tpl delete mode 100644 modules/blocknewsletter/controllers/admin/AdminParentNewsletterController.php diff --git a/admin/themes/default/template/controllers/customers/helpers/required_fields.tpl b/admin/themes/default/template/controllers/customers/helpers/required_fields.tpl new file mode 100644 index 000000000..abf671a38 --- /dev/null +++ b/admin/themes/default/template/controllers/customers/helpers/required_fields.tpl @@ -0,0 +1,69 @@ +{* +* 2007-2017 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-2017 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='Set required fields for this section'} + +
 
+ diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index b51123908..4731e3353 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -39,6 +39,8 @@ class AdminCustomersControllerCore extends AdminController public function __construct() { $this->bootstrap = true; + // $this->required_database = true; + // $this->required_fields = array('newsletter','optin'); $this->table = 'customer'; $this->className = 'Customer'; $this->lang = false; diff --git a/modules/blocknewsletter/blocknewsletter.css b/modules/blocknewsletter/blocknewsletter.css index c743b3e60..44ddea00f 100644 --- a/modules/blocknewsletter/blocknewsletter.css +++ b/modules/blocknewsletter/blocknewsletter.css @@ -1,22 +1,3 @@ -/** - * 2010-2023 Webkul. - * - * NOTICE OF LICENSE - * - * All right is reserved, - * Please go through LICENSE.txt file inside our module - * - * DISCLAIMER - * - * Do not edit or add to this file if you wish to upgrade this module to newer - * versions in the future. If you wish to customize this module for your - * needs please refer to CustomizationPolicy.txt file inside our module for more information. - * - * @author Webkul IN - * @copyright 2010-2023 Webkul IN - * @license LICENSE.txt - */ - /* Block newsletter */ #columns #newsletter_block_left .form-group { margin-bottom: 0; } diff --git a/modules/blocknewsletter/blocknewsletter.js b/modules/blocknewsletter/blocknewsletter.js index 8635bd925..488dc989a 100644 --- a/modules/blocknewsletter/blocknewsletter.js +++ b/modules/blocknewsletter/blocknewsletter.js @@ -1,28 +1,3 @@ -/* -* 2007-2017 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-2017 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).on('click', '#blocknewsletter .newsletter-btn', function (e) { e.preventDefault(); diff --git a/modules/blocknewsletter/controllers/admin/AdminNewsletterController.php b/modules/blocknewsletter/controllers/admin/AdminNewsletterController.php index 752ab0154..2e19512ad 100644 --- a/modules/blocknewsletter/controllers/admin/AdminNewsletterController.php +++ b/modules/blocknewsletter/controllers/admin/AdminNewsletterController.php @@ -1,6 +1,6 @@ context->link->getAdminLink('AdminNewsletter')); - } -} diff --git a/modules/blocknewsletter/controllers/admin/index.php b/modules/blocknewsletter/controllers/admin/index.php index d6825e437..81057586e 100644 --- a/modules/blocknewsletter/controllers/admin/index.php +++ b/modules/blocknewsletter/controllers/admin/index.php @@ -1,6 +1,6 @@ -* @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; +/** + * 2010-2024 Webkul. + * + * NOTICE OF LICENSE + * + * All right is reserved, + * Please go through LICENSE.txt file inside our module + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this module to newer + * versions in the future. If you wish to customize this module for your + * needs please refer to CustomizationPolicy.txt file inside our module for more information. + * + * @author Webkul IN + * @copyright 2010-2024 Webkul IN + * @license LICENSE.txt + */ diff --git a/modules/blocknewsletter/views/css/front/verification.css b/modules/blocknewsletter/views/css/front/verification.css index 4f113515d..29d2c3acb 100644 --- a/modules/blocknewsletter/views/css/front/verification.css +++ b/modules/blocknewsletter/views/css/front/verification.css @@ -1,27 +1,21 @@ -/* -* 2007-2017 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 -* @copyright 2007-2017 PrestaShop SA -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ +/** + * 2010-2024 Webkul. + * + * NOTICE OF LICENSE + * + * All right is reserved, + * Please go through LICENSE.txt file inside our module + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this module to newer + * versions in the future. If you wish to customize this module for your + * needs please refer to CustomizationPolicy.txt file inside our module for more information. + * + * @author Webkul IN + * @copyright 2010-2024 Webkul IN + * @license LICENSE.txt + */ .msg-redirect { font-size: 16px; diff --git a/modules/blocknewsletter/views/css/index.php b/modules/blocknewsletter/views/css/index.php index 2d4b752c4..db70e8cc8 100644 --- a/modules/blocknewsletter/views/css/index.php +++ b/modules/blocknewsletter/views/css/index.php @@ -1,28 +1,22 @@ -* @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 -*/ +/** + * 2010-2024 Webkul. + * + * NOTICE OF LICENSE + * + * All right is reserved, + * Please go through LICENSE.txt file inside our module + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this module to newer + * versions in the future. If you wish to customize this module for your + * needs please refer to CustomizationPolicy.txt file inside our module for more information. + * + * @author Webkul IN + * @copyright 2010-2024 Webkul IN + * @license LICENSE.txt + */ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/modules/blocknewsletter/views/js/front/index.php b/modules/blocknewsletter/views/js/front/index.php index 2d4b752c4..db70e8cc8 100644 --- a/modules/blocknewsletter/views/js/front/index.php +++ b/modules/blocknewsletter/views/js/front/index.php @@ -1,28 +1,22 @@ -* @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 -*/ +/** + * 2010-2024 Webkul. + * + * NOTICE OF LICENSE + * + * All right is reserved, + * Please go through LICENSE.txt file inside our module + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this module to newer + * versions in the future. If you wish to customize this module for your + * needs please refer to CustomizationPolicy.txt file inside our module for more information. + * + * @author Webkul IN + * @copyright 2010-2024 Webkul IN + * @license LICENSE.txt + */ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/modules/blocknewsletter/views/js/front/verification.js b/modules/blocknewsletter/views/js/front/verification.js index 75ab192f9..4e1444d11 100644 --- a/modules/blocknewsletter/views/js/front/verification.js +++ b/modules/blocknewsletter/views/js/front/verification.js @@ -1,27 +1,21 @@ -/* -* 2007-2017 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 -* @copyright 2007-2017 PrestaShop SA -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ +/** + * 2010-2024 Webkul. + * + * NOTICE OF LICENSE + * + * All right is reserved, + * Please go through LICENSE.txt file inside our module + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this module to newer + * versions in the future. If you wish to customize this module for your + * needs please refer to CustomizationPolicy.txt file inside our module for more information. + * + * @author Webkul IN + * @copyright 2010-2024 Webkul IN + * @license LICENSE.txt + */ $(document).ready(function () { let intervalHandler = setInterval(function () { diff --git a/modules/blocknewsletter/views/js/index.php b/modules/blocknewsletter/views/js/index.php index 2d4b752c4..db70e8cc8 100644 --- a/modules/blocknewsletter/views/js/index.php +++ b/modules/blocknewsletter/views/js/index.php @@ -1,28 +1,22 @@ -* @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 -*/ +/** + * 2010-2024 Webkul. + * + * NOTICE OF LICENSE + * + * All right is reserved, + * Please go through LICENSE.txt file inside our module + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade this module to newer + * versions in the future. If you wish to customize this module for your + * needs please refer to CustomizationPolicy.txt file inside our module for more information. + * + * @author Webkul IN + * @copyright 2010-2024 Webkul IN + * @license LICENSE.txt + */ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); diff --git a/modules/blocknewsletter/views/templates/admin/newsletter/helpers/list/list_action_enable.tpl b/modules/blocknewsletter/views/templates/admin/newsletter/helpers/list/list_action_enable.tpl index 5edf6d970..074a7036c 100644 --- a/modules/blocknewsletter/views/templates/admin/newsletter/helpers/list/list_action_enable.tpl +++ b/modules/blocknewsletter/views/templates/admin/newsletter/helpers/list/list_action_enable.tpl @@ -1,5 +1,5 @@ {** -* 2010-2023 Webkul. +* 2010-2024 Webkul. * * NOTICE OF LICENSE * @@ -13,7 +13,7 @@ * needs please refer to CustomizationPolicy.txt file inside our module for more information. * * @author Webkul IN -* @copyright 2010-2023 Webkul IN +* @copyright 2010-2024 Webkul IN * @license LICENSE.txt *} diff --git a/modules/blocknewsletter/views/templates/admin/newsletter/helpers/list/view-customer-link.tpl b/modules/blocknewsletter/views/templates/admin/newsletter/helpers/list/view-customer-link.tpl index 418d973f6..be0718b96 100644 --- a/modules/blocknewsletter/views/templates/admin/newsletter/helpers/list/view-customer-link.tpl +++ b/modules/blocknewsletter/views/templates/admin/newsletter/helpers/list/view-customer-link.tpl @@ -1,5 +1,5 @@ {** -* 2010-2023 Webkul. +* 2010-2024 Webkul. * * NOTICE OF LICENSE * @@ -13,7 +13,7 @@ * needs please refer to CustomizationPolicy.txt file inside our module for more information. * * @author Webkul IN -* @copyright 2010-2023 Webkul IN +* @copyright 2010-2024 Webkul IN * @license LICENSE.txt *} diff --git a/modules/blocknewsletter/views/templates/front/subscription_execution.tpl b/modules/blocknewsletter/views/templates/front/subscription_execution.tpl index 4e7a0985c..9b043738f 100644 --- a/modules/blocknewsletter/views/templates/front/subscription_execution.tpl +++ b/modules/blocknewsletter/views/templates/front/subscription_execution.tpl @@ -1,5 +1,5 @@ {** - * 2010-2023 Webkul. + * 2010-2024 Webkul. * * NOTICE OF LICENSE * @@ -13,7 +13,7 @@ * needs please refer to CustomizationPolicy.txt file inside our module for more information. * * @author Webkul IN - * @copyright 2010-2023 Webkul IN + * @copyright 2010-2024 Webkul IN * @license LICENSE.txt *} diff --git a/modules/blocknewsletter/views/templates/hook/blocknewsletter.tpl b/modules/blocknewsletter/views/templates/hook/blocknewsletter.tpl index 098f0889c..6954c90c9 100644 --- a/modules/blocknewsletter/views/templates/hook/blocknewsletter.tpl +++ b/modules/blocknewsletter/views/templates/hook/blocknewsletter.tpl @@ -1,5 +1,5 @@ {* -* 2007-2017 PrestaShop +* 2007-2015 PrestaShop * * NOTICE OF LICENSE * @@ -18,7 +18,7 @@ * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA -* @copyright 2007-2017 PrestaShop SA +* @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 *} diff --git a/themes/hotel-reservation-theme/css/modules/blocknewsletter/blocknewsletter.css b/themes/hotel-reservation-theme/css/modules/blocknewsletter/blocknewsletter.css index c743b3e60..44ddea00f 100644 --- a/themes/hotel-reservation-theme/css/modules/blocknewsletter/blocknewsletter.css +++ b/themes/hotel-reservation-theme/css/modules/blocknewsletter/blocknewsletter.css @@ -1,22 +1,3 @@ -/** - * 2010-2023 Webkul. - * - * NOTICE OF LICENSE - * - * All right is reserved, - * Please go through LICENSE.txt file inside our module - * - * DISCLAIMER - * - * Do not edit or add to this file if you wish to upgrade this module to newer - * versions in the future. If you wish to customize this module for your - * needs please refer to CustomizationPolicy.txt file inside our module for more information. - * - * @author Webkul IN - * @copyright 2010-2023 Webkul IN - * @license LICENSE.txt - */ - /* Block newsletter */ #columns #newsletter_block_left .form-group { margin-bottom: 0; }