Mary_Pieroszkiewicz

blocknewsletter.tpl

Oct 31st, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. {*
  2. * 2007-2015 PrestaShop
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Academic Free License (AFL 3.0)
  7. * that is bundled with this package in the file LICENSE.txt.
  8. * It is also available through the world-wide-web at this URL:
  9. * http://opensource.org/licenses/afl-3.0.php
  10. * If you did not receive a copy of the license and are unable to
  11. * obtain it through the world-wide-web, please send an email
  12. * to [email protected] so we can send you a copy immediately.
  13. *
  14. * DISCLAIMER
  15. *
  16. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  17. * versions in the future. If you wish to customize PrestaShop for your
  18. * needs please refer to http://www.prestashop.com for more information.
  19. *
  20. * @author PrestaShop SA <[email protected]>
  21. * @copyright 2007-2015 PrestaShop SA
  22. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  23. * International Registered Trademark & Property of PrestaShop SA
  24. *}
  25. <!-- Block Newsletter module-->
  26. <div id="newsletter_block_left" class="block">
  27. <h4>{l s='Newsletter' mod='blocknewsletter'}</h4>
  28. <div class="block_content">
  29. <form action="{$link->getPageLink('index', null, null, null, false, null, true)|escape:'html':'UTF-8'}" method="post">
  30. <div class="form-group{if isset($msg) && $msg } {if $nw_error}form-error{else}form-ok{/if}{/if}" >
  31. <input class="inputNew form-control grey newsletter-input" id="newsletter-input" type="text" name="email" size="18" value="{if isset($msg) && $msg}{$msg}{elseif isset($value) && $value}{$value}{else}{l s='Enter your e-mail' mod='blocknewsletter'}{/if}" />
  32. <button type="submit" name="submitNewsletter" class="btn btn-default button button-small">
  33. <span>{l s='Ok' mod='blocknewsletter'}</span>
  34. </button>
  35. <input type="hidden" name="action" value="0" />
  36. </div>
  37. </form>
  38. </div>
  39. {hook h="displayBlockNewsletterBottom" from='blocknewsletter'}
  40. </div>
  41. <!-- /Block Newsletter module-->
  42. {strip}
  43. {if isset($msg) && $msg}
  44. {addJsDef msg_newsl=$msg|@addcslashes:'\''}
  45. {/if}
  46. {if isset($nw_error)}
  47. {addJsDef nw_error=$nw_error}
  48. {/if}
  49. {addJsDefL name=placeholder_blocknewsletter}{l s='Enter your e-mail' mod='blocknewsletter' js=1}{/addJsDefL}
  50. {if isset($msg) && $msg}
  51. {addJsDefL name=alert_blocknewsletter}{l s='Newsletter : %1$s' sprintf=$msg js=1 mod="blocknewsletter"}{/addJsDefL}
  52. {/if}
  53. {/strip}
Advertisement
Add Comment
Please, Sign In to add comment