first commit
This commit is contained in:
34
modules/ps_emailsubscription/views/templates/hook/index.php
Normal file
34
modules/ps_emailsubscription/views/templates/hook/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2020 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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;
|
||||
@@ -0,0 +1,42 @@
|
||||
{*
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2020 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="email_subscription block_newsletter" id="blockEmailSubscription_{$hookName}">
|
||||
<h4>{l s='Newsletter' d='Modules.Emailsubscription.Shop'}</h4>
|
||||
{if $msg}
|
||||
<p class="notification {if $nw_error}notification-error{else}notification-success{/if}">{$msg}</p>
|
||||
{/if}
|
||||
<form action="{$urls.current_url}#blockEmailSubscription_{$hookName}" method="post">
|
||||
<input type="email" name="email" value="{$value}" placeholder="{l s='Your e-mail' d='Modules.Emailsubscription.Shop'}" required />
|
||||
{if $conditions}
|
||||
<p>{$conditions}</p>
|
||||
{/if}
|
||||
{hook h='displayNewsletterRegistration'}
|
||||
<input type="hidden" name="blockHookName" value="{$hookName}" />
|
||||
<input type="submit" name="submitNewsletter" value="ok" />
|
||||
{hook h='displayGDPRConsent' id_module=$id_module}
|
||||
<input type="hidden" name="action" value="0" />
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,42 @@
|
||||
{*
|
||||
* 2007-2020 PrestaShop.
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (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:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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-2020 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="email_subscription block_newsletter" id="blockEmailSubscription_{$hookName}">
|
||||
<h4>{l s='Newsletter' d='Modules.Emailsubscription.Shop'}</h4>
|
||||
{if $msg}
|
||||
<p class="notification {if $nw_error}notification-error{else}notification-success{/if}">{$msg}</p>
|
||||
{/if}
|
||||
<form action="{$urls.current_url}#blockEmailSubscription_{$hookName}" method="post">
|
||||
<input type="email" name="email" value="{$value}" placeholder="{l s='Your e-mail' d='Modules.Emailsubscription.Shop'}" required />
|
||||
{if $conditions}
|
||||
<p>{$conditions}</p>
|
||||
{/if}
|
||||
{hook h='displayNewsletterRegistration'}
|
||||
<input type="hidden" value="{$hookName}" name="blockHookName" />
|
||||
<input type="submit" value="ok" name="submitNewsletter" />
|
||||
{hook h='displayGDPRConsent' id_module=$id_module}
|
||||
<input type="hidden" name="action" value="0" />
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user