BlackBeltPanda

buycraftthemegateway

Jul 27th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <div class="form__group">
  2. {% if basket.price > 0 %}
  3. {% if checkout.gateways|length > 0 %}
  4. {% for gateway in checkout.gateways %}
  5. <div class="gateway flyout">
  6. <input type="submit" name="{{ gateway.id }}" value="1" style="background:url('{{ gateway.image }}');" class="gateway-submit">
  7. <div class="flyout__content">
  8. Click to checkout with {{ gateway.name }}. ({{ gateway.description }})
  9. </div>
  10. {% if gateway.offset != 0 %}
  11. <div class="offset">({% if gateway.offset > 0 %}+{% endif %}{{ gateway.offset|money }} {{ basket.currency }})</div>
  12. {% endif %}
  13. </div>
  14. {% endfor %}
  15. {% else %}
  16. <p class="empty">You need to add a payment gateway before players can donate.</p>
  17. {% endif %}
  18. {% elseif store.allowFreeBaskets %}
  19. <div class="gateway flyout">
  20. <input type="submit" name="submit" style="background:url('/assets/img/gateways/free.png');" class="gateway-submit">
  21. <div class="flyout__content">
  22. Click to checkout for free.
  23. </div>
  24. </div>
  25. {% endif %}
  26. </div>
Advertisement
Add Comment
Please, Sign In to add comment