link.phtml 766 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. ?>
  8. <?php if ($block->isPossibleOnepageCheckout()):?>
  9. <button type="button"
  10. data-role="proceed-to-checkout"
  11. title="<?= /* @escapeNotVerified */ __('Proceed to Checkout') ?>"
  12. data-mage-init='{"Magento_Checkout/js/proceed-to-checkout":{"checkoutUrl":"<?= /* @escapeNotVerified */ $block->getCheckoutUrl() ?>"}}'
  13. class="action primary checkout<?= ($block->isDisabled()) ? ' disabled' : '' ?>"
  14. <?php if ($block->isDisabled()):?>disabled="disabled"<?php endif; ?>>
  15. <span><?= /* @escapeNotVerified */ __('Proceed to Checkout') ?></span>
  16. </button>
  17. <?php endif?>