Advertisement
Guest User

terms

a guest
Sep 18th, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. <?php
  2. /**
  3. * Magento
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Academic Free License (AFL 3.0)
  8. * that is bundled with this package in the file LICENSE_AFL.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://opensource.org/licenses/afl-3.0.php
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@magentocommerce.com so we can send you a copy immediately.
  14. *
  15. * DISCLAIMER
  16. *
  17. * Do not edit or add to this file if you wish to upgrade Magento to newer
  18. * versions in the future. If you wish to customize Magento for your
  19. * needs please refer to http://www.magentocommerce.com for more information.
  20. *
  21. * @category design
  22. * @package base_default
  23. * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  24. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  25. */
  26. ?>
  27. <?php
  28. /**
  29. * @see Mage_Checkout_Block_Agreements
  30. */
  31. ?>
  32.  
  33. <?php if (!$this->getAgreements()) return; ?>
  34. <div id="agreement_popup">
  35. <form action="" id="checkout-agreements" onsubmit="return false;">
  36. <ol class="checkout-agreements">
  37. <?php foreach ($this->getAgreements() as $_a): ?>
  38.  
  39. <li>
  40. <div id="agreement-content-<?php echo $_a->getId()?>" class="agreement-content" <?php echo ($_a->getContentHeight() ? ' style=" display:none; height:' . $_a->getContentHeight() . '"' : '')?>>
  41. <div class="content-agreement"> <?php if ($_a->getIsHtml()):?> <?php echo $_a->getContent() ?> <?php else:?>
  42. <?php echo nl2br($this->htmlEscape($_a->getContent())) ?> <?php endif; ?>
  43. </div>
  44. <a href="javascript:void(0)" onclick="hideAgreementPopup()"
  45. class="close-btn"><?php echo $this->__("Close") ?></a></div>
  46. <p class="agree"><input type="checkbox"
  47. id="agreement-<?php echo $_a->getId()?>"
  48. name="agreement[<?php echo $_a->getId()?>]" value="1"
  49. title="<?php echo strip_tags($_a->getCheckboxText()) ?>"
  50. class="checkbox" /><label
  51. onclick="showAgreementPopup(); return false;" class="a-click"
  52. for="agreement-<?php echo $_a->getId()?>"><?php echo $_a->getIsHtml() ? $_a->getCheckboxText() : $this->htmlEscape($_a->getCheckboxText()) ?></label>
  53. </p>
  54. </li>
  55. <?php endforeach ?>
  56. </ol>
  57. </form>
  58. </div>
  59. <a id="opc-agreement-popup-overlay" href="javascript:void(0)"
  60. onclick="hideAgreementPopup(); return false;" style="display: none"> </a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement