<?php /* Smarty version Smarty-3.1.15, created on 2015-04-27 21:14:27
         compiled from "/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.downloads.php" */ ?>
<?php /*%%SmartyHeaderCode:1075804219553e36333c39d6-09805640%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd62563bb82642ebb1c997f399a9ed2edf6837383' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.downloads.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1075804219553e36333c39d6-09805640',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'IS_USER' => 0,
    'LANG' => 0,
    'PAGINATION' => 0,
    'DOWNLOADS' => 0,
    'download' => 0,
    'STORE_URL' => 0,
    'MAX_DOWNLOADS' => 0,
    'VAL_SELF' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553e36334dc239_73437980',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553e36334dc239_73437980')) {function content_553e36334dc239_73437980($_smarty_tpl) {?>
<?php if ($_smarty_tpl->tpl_vars['IS_USER']->value) {?>
<h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['your_downloads'];?>
</h2>
<?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>

<table>
   <thead>
      <tr>
         <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['download_filename'];?>
</td>
         <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['download_expires'];?>
</td>
         <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['download_count'];?>
</td>
         <td></td>
      </tr>
   </thead>
   <tbody>
      <?php  $_smarty_tpl->tpl_vars['download'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['download']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['DOWNLOADS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['download']->key => $_smarty_tpl->tpl_vars['download']->value) {
$_smarty_tpl->tpl_vars['download']->_loop = true;
?>
      <tr>
         <?php if ($_smarty_tpl->tpl_vars['download']->value['deleted']) {?>
         <td colspan="4"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['download_deleted'];?>
</td>
         <?php } else { ?>
         <td>
            <h4><?php echo $_smarty_tpl->tpl_vars['download']->value['name'];?>
</h4>
            <?php if ($_smarty_tpl->tpl_vars['download']->value['active']) {?>
            <a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=download&accesskey=<?php echo $_smarty_tpl->tpl_vars['download']->value['accesskey'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['download'];?>
"><i class="fa fa-download"> <?php echo $_smarty_tpl->tpl_vars['download']->value['file_info']['filename'];?>
</i></a>
            <?php } else { ?>
            <i class="fa fa-download"> <?php echo $_smarty_tpl->tpl_vars['download']->value['file_info']['filename'];?>
</i>
            <?php }?>
         </td>
         <td> <?php if ($_smarty_tpl->tpl_vars['download']->value['active']) {?><?php echo $_smarty_tpl->tpl_vars['download']->value['expires'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['download_expired'];?>
<?php }?></td>
         <td class="text-center"><?php echo $_smarty_tpl->tpl_vars['download']->value['downloads'];?>
/<?php echo $_smarty_tpl->tpl_vars['MAX_DOWNLOADS']->value;?>
</td>
         <td width="120"><a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=vieworder&cart_order_id=<?php echo $_smarty_tpl->tpl_vars['download']->value['cart_order_id'];?>
" class="button tiny expand thinmarg-bottom" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['view_details'];?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['view_details'];?>
</a>
            <?php if ($_smarty_tpl->tpl_vars['download']->value['active']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=download&accesskey=<?php echo $_smarty_tpl->tpl_vars['download']->value['accesskey'];?>
" class="button tiny expand" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['view_details'];?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['download'];?>
</a><?php }?>
         </td>
         <?php }?>
      </tr>
      <?php }
if (!$_smarty_tpl->tpl_vars['download']->_loop) {
?>
      <div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['no_downloads_available'];?>
</div>
      <?php } ?>
   </tbody>
</table>
<?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>

<?php } else { ?>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post">
   <h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['redeem_download_code'];?>
</h2>
   <fieldset>
      <div><label for="download-code"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['download_access_key'];?>
</label><span><input type="text" name="accesskey" id="download-code" value=""></span></div>
   </fieldset>
   <div><input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['submit'];?>
" class="button_submit"></div>
</form>
<?php }?><?php }} ?>
