選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

52 行
1.9 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /** @var \Magento\Newsletter\Block\Subscribe $block */
  7. ?>
  8. <div class="block newsletter">
  9. <div class="title"><strong><?= $block->escapeHtml(__('Newsletter')) ?></strong></div>
  10. <div class="content">
  11. <form class="form subscribe"
  12. novalidate
  13. action="<?= $block->escapeUrl($block->getFormActionUrl()) ?>"
  14. method="post"
  15. data-mage-init='{"validation": {"errorClass": "mage-error"}}'
  16. id="newsletter-validate-detail">
  17. <div class="field newsletter">
  18. <div class="control">
  19. <label for="newsletter">
  20. <span class="label">
  21. <?= $block->escapeHtml(__('Sign Up for Our Newsletter:')) ?>
  22. </span>
  23. <input name="email" type="email" id="newsletter"
  24. placeholder="<?= $block->escapeHtml(__('Enter your email address')) ?>"
  25. data-mage-init='{"mage/trim-input":{}}'
  26. data-validate="{required:true, 'validate-email':true}"
  27. />
  28. </label>
  29. </div>
  30. </div>
  31. <div class="actions">
  32. <button class="action subscribe primary"
  33. title="<?= $block->escapeHtmlAttr(__('Subscribe')) ?>"
  34. type="submit"
  35. aria-label="Subscribe">
  36. <span><?= $block->escapeHtml(__('Subscribe')) ?></span>
  37. </button>
  38. </div>
  39. </form>
  40. </div>
  41. </div>
  42. <script type="text/x-magento-init">
  43. {
  44. "*": {
  45. "Magento_Customer/js/block-submit-on-send": {
  46. "formId": "newsletter-validate-detail"
  47. }
  48. }
  49. }
  50. </script>