payment.phtml 1.1 KB

1234567891011121314151617181920212223242526
  1. <?php $logo = $this->form->getGatewayLogo(); ?>
  2. <div class="payment-box">
  3. <form action="<?php echo $this->form->getAction(); ?>" method="<?php echo $this->form->getMethod(); ?>" class="form-horizontal" id="<?php echo $this->form->getGatewayName(); ?>">
  4. <?php echo $this->form->hiddenElements; ?>
  5. <?php if ($logo !== null) { ?>
  6. <div class="pull-left">
  7. <img src="<?php echo $this->baseUrl; ?><?php echo $logo; ?>">
  8. </div>
  9. <?php } ?>
  10. <!-- any non hidden elements will appear here !!! -->
  11. <div class="pull-left payment-desc">
  12. <?php echo $this->form->getGatewayDescription(); ?>
  13. <?php foreach ($this->form->getElements() as $element) { ?>
  14. <?php if ($element->getType() != 'submit') { ?>
  15. <?php echo $this->partial('partials/form-element.phtml', array('element' => $element)); ?>
  16. <?php } ?>
  17. <?php } ?>
  18. </div>
  19. <div class="pull-right payment-btn">
  20. <?php echo $this->form->submit; ?>
  21. </div>
  22. </form>
  23. </div>