<?php
/**
 * aheadWorks Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://ecommerce.aheadworks.com/LICENSE-M1.txt
 *
 * @category   AW
 * @package    AW_Mobile
 * @copyright  Copyright (c) 2010-2011 aheadWorks Co. (http://www.aheadworks.com)
 * @license    http://ecommerce.aheadworks.com/LICENSE-M1.txt
 */

?>
<?php $_codes = $this->getCodes(); ?>
<?php $_isRedeemable = $this->getIsRedeemable(); ?>

<?php foreach ($_codes as $_code): ?>
    <?php if (!$_code) continue; ?>

    <?php if ($_isRedeemable): ?>
        <a href="<?php echo Mage::getUrl('enterprise_giftcardaccount/customer', array('giftcard'=>$_code)); ?>"><?php echo $_code; ?></a>
    <?php else: ?>
        <?php echo $_code; ?>
    <?php endif; ?>
    <br />
<?php endforeach; ?>
