From a93ee2a4e445d74cb7d2ea5dafccf3f1df75c1d2 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Mon, 22 Jul 2024 19:41:14 +0530 Subject: [PATCH] updated the NOTICE OF LICENSE for files added and uodated the name for the redirect.js --- modules/blocknewsletter/blocknewsletter.js | 19 +++++++++++ .../controllers/front/unsubscribe.php | 32 +++++++------------ .../controllers/front/verification.php | 2 +- .../{homepage_redirect.js => redirect.js} | 4 +-- 4 files changed, 33 insertions(+), 24 deletions(-) rename modules/blocknewsletter/views/js/front/{homepage_redirect.js => redirect.js} (92%) diff --git a/modules/blocknewsletter/blocknewsletter.js b/modules/blocknewsletter/blocknewsletter.js index 90caf5352..e34b5d2ce 100644 --- a/modules/blocknewsletter/blocknewsletter.js +++ b/modules/blocknewsletter/blocknewsletter.js @@ -1,3 +1,22 @@ +/** + * Copyright since 2010 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 since 2010 Webkul IN + * @license LICENSE.txt + */ + $(document).on('click', '#blocknewsletter .newsletter-btn', function (e) { e.preventDefault(); diff --git a/modules/blocknewsletter/controllers/front/unsubscribe.php b/modules/blocknewsletter/controllers/front/unsubscribe.php index 8b42f575f..877ccc959 100644 --- a/modules/blocknewsletter/controllers/front/unsubscribe.php +++ b/modules/blocknewsletter/controllers/front/unsubscribe.php @@ -1,32 +1,23 @@ -* @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 +* @author Webkul IN +* @copyright since 2010 Webkul IN +* @license https://store.webkul.com/license.html */ -/** - * @since 1.5.0 - */ class BlocknewsletterUnsubscribeModuleFrontController extends ModuleFrontController { /** @@ -57,8 +48,7 @@ class BlocknewsletterUnsubscribeModuleFrontController extends ModuleFrontControl { parent::setMedia(); - $this->addJS($this->module->getPathUri().'views/js/front/homepage_redirect.js'); - + $this->addJS($this->module->getPathUri().'views/js/front/redirect.js'); Media::addJsDef(array( 'homepage_url' => $this->context->link->getPageLink('index'), )); diff --git a/modules/blocknewsletter/controllers/front/verification.php b/modules/blocknewsletter/controllers/front/verification.php index 6f8ec3f99..0cf4ab4d8 100644 --- a/modules/blocknewsletter/controllers/front/verification.php +++ b/modules/blocknewsletter/controllers/front/verification.php @@ -58,7 +58,7 @@ class BlocknewsletterVerificationModuleFrontController extends ModuleFrontContro parent::setMedia(); $this->addCSS($this->module->getPathUri().'views/css/front/verification.css'); - $this->addJS($this->module->getPathUri().'views/js/front/homepage_redirect.js'); + $this->addJS($this->module->getPathUri().'views/js/front/redirect.js'); Media::addJsDef(array( 'homepage_url' => $this->context->link->getPageLink('index'), diff --git a/modules/blocknewsletter/views/js/front/homepage_redirect.js b/modules/blocknewsletter/views/js/front/redirect.js similarity index 92% rename from modules/blocknewsletter/views/js/front/homepage_redirect.js rename to modules/blocknewsletter/views/js/front/redirect.js index 4e1444d11..07700c096 100644 --- a/modules/blocknewsletter/views/js/front/homepage_redirect.js +++ b/modules/blocknewsletter/views/js/front/redirect.js @@ -1,5 +1,5 @@ /** - * 2010-2024 Webkul. + * Copyright since 2010 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-2024 Webkul IN + * @copyright since 2010 Webkul IN * @license LICENSE.txt */