login.phtml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License").
  6. * You may not use this file except in compliance with the License.
  7. * A copy of the License is located at
  8. *
  9. * http://aws.amazon.com/apache2.0
  10. *
  11. * or in the "license" file accompanying this file. This file is distributed
  12. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  13. * express or implied. See the License for the specific language governing
  14. * permissions and limitations under the License.
  15. */
  16. ?>
  17. <?php /** @var \Amazon\Login\Block\Login $block */?>
  18. <div class="block block-amazon-login">
  19. <div class="block-title">
  20. <strong id="block-amazon-login-heading" role="heading" aria-level="2">
  21. <?= $block->escapeHtml(__('Login with Amazon')) ?>
  22. </strong>
  23. </div>
  24. <div class="block-content" aria-labelledby="block-amazon-login-heading">
  25. <p><?= $block->escapeHtml(__('With Amazon Pay and Login with Amazon, you can easily sign-in and use the ' .
  26. 'shipping and payment information stored in your Amazon account to place an order on this shop. ')) ?>
  27. </p>
  28. <div class="actions-toolbar">
  29. <div class="primary">
  30. <div class="amazon-button-container">
  31. <div class="amazon-button-container__cell">
  32. <div id="LoginWithAmazon-<?= /* @noEscape */ $block->getJsId() ?>"
  33. class="login-with-amazon"
  34. data-mage-init='{"amazonButton": {"buttonType": "LwA"}}'>
  35. </div>
  36. </div>
  37. <div class="amazon-button-container__cell">
  38. <div class="field-tooltip toggle">
  39. <span class="field-tooltip-action action-help"
  40. data-mage-init='{"dropdown": {"activeClass": "_active"}}'
  41. data-toggle="dropdown"
  42. aria-haspopup="true"
  43. aria-expanded="false">
  44. </span>
  45. <div class="field-tooltip-content" data-target="dropdown" aria-hidden="true">
  46. <?= $block->escapeHtml(__('Securely login into our website using your ' .
  47. 'existing Amazon details.')); ?>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>