newsletter.phtml 1.6 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. /** @var \Magento\Customer\Block\Newsletter $block */
  8. ?>
  9. <?= $block->getChildHtml('form_before') ?>
  10. <form class="form form-newsletter-manage" action="<?= $block->escapeUrl($block->getAction()) ?>" method="post" id="form-validate">
  11. <fieldset class="fieldset">
  12. <?= $block->getBlockHtml('formkey') ?>
  13. <legend class="legend"><span><?= $block->escapeHtml(__('Subscription option')) ?></span></legend><br>
  14. <div class="field choice">
  15. <input type="checkbox" name="is_subscribed" id="subscription" value="1" title="<?= $block->escapeHtmlAttr(__('General Subscription')) ?>"<?php if ($block->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox">
  16. <label for="subscription" class="label"><span><?= $block->escapeHtml(__('General Subscription')) ?></span></label>
  17. </div>
  18. <?php /* Extensions placeholder */ ?>
  19. <?= $block->getChildHtml('customer.form.newsletter.extra') ?>
  20. </fieldset>
  21. <div class="actions-toolbar">
  22. <div class="primary"><button type="submit" title="<?= $block->escapeHtmlAttr(__('Save')) ?>" class="action save primary"><span><?= $block->escapeHtml(__('Save')) ?></span></button></div>
  23. <div class="secondary"><a class="action back" href="<?= $block->escapeUrl($block->getBackUrl()) ?>"><span><?= $block->escapeHtml(__('Back')) ?></span></a></div>
  24. </div>
  25. </form>
  26. <?php /* Extensions placeholder */ ?>
  27. <?= $block->getChildHtml('customer.form.newsletter.extra2') ?>