<?php /* Smarty version Smarty-3.1.15, created on 2015-04-27 20:10:05
         compiled from "/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.category.php" */ ?>
<?php /*%%SmartyHeaderCode:646834060553e271d964610-28710401%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '374945abca4bfac08cd1a58d169f91f502b5d06f' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.category.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '646834060553e271d964610-28710401',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'category' => 0,
    'SUBCATS' => 0,
    'subcat' => 0,
    'PRODUCTS' => 0,
    'SORTING' => 0,
    'VAL_SELF' => 0,
    'LANG' => 0,
    'sort' => 0,
    'product' => 0,
    'i' => 0,
    'STORE_URL' => 0,
    'SKIN_FOLDER' => 0,
    'CATALOGUE_MODE' => 0,
    'PAGINATION' => 0,
    'PAGE_SPLITS' => 0,
    'page_split' => 0,
    'page' => 0,
    'total' => 0,
    'var_name' => 0,
    'current' => 0,
    'params' => 0,
    'anchor' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553e271dbb5eb9_68171365',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553e271dbb5eb9_68171365')) {function content_553e271dbb5eb9_68171365($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/home/hushdogcafe/public_html/cube/includes/lib/smarty/plugins/modifier.truncate.php';
?>
<h2><?php echo $_smarty_tpl->tpl_vars['category']->value['cat_name'];?>
</h2>
<?php if (isset($_smarty_tpl->tpl_vars['category']->value['image'])) {?>
<div class="row">
   <div class="small-12 columns"><img src="<?php echo $_smarty_tpl->tpl_vars['category']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['category']->value['cat_name'];?>
" class="marg-bottom"></div>
</div>
<?php }?>
<?php if (!empty($_smarty_tpl->tpl_vars['category']->value['cat_desc'])) {?>
<div class="row">
   <div class="small-12 columns"><?php echo $_smarty_tpl->tpl_vars['category']->value['cat_desc'];?>
</div>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['SUBCATS']->value)&&$_smarty_tpl->tpl_vars['SUBCATS']->value) {?>
<ul class="medium-block-grid-6 text-center show-for-medium-up" data-equalizer>
   <?php  $_smarty_tpl->tpl_vars['subcat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['subcat']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['SUBCATS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['subcat']->key => $_smarty_tpl->tpl_vars['subcat']->value) {
$_smarty_tpl->tpl_vars['subcat']->_loop = true;
?>
   <li data-equalizer-watch>
      <a href="<?php echo $_smarty_tpl->tpl_vars['subcat']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['subcat']->value['cat_name'];?>
">
      <img class="th" src="<?php echo $_smarty_tpl->tpl_vars['subcat']->value['cat_image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['subcat']->value['cat_name'];?>
">
      </a>
      <a href="<?php echo $_smarty_tpl->tpl_vars['subcat']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['subcat']->value['cat_name'];?>
"><small><?php echo $_smarty_tpl->tpl_vars['subcat']->value['cat_name'];?>
</small></a>
   </li>
   <?php } ?>
</ul>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['PRODUCTS']->value) {?>
<div class="row">
   <div class="small-12 medium-8 columns">
      <?php if (isset($_smarty_tpl->tpl_vars['SORTING']->value)) {?>
      <form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" class="autosubmit" method="post">
         <div class="row">
            <div class="small-3 medium-2 columns">
               <label for="product_sort"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['sort_by'];?>
</label>
            </div>
            <div class="small-9 medium-5 columns left">
               <select name="sort" id="product_sort">
                  <option value="" disabled><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['please_select'];?>
</option>
                  <?php  $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sort']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['SORTING']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sort']->key => $_smarty_tpl->tpl_vars['sort']->value) {
$_smarty_tpl->tpl_vars['sort']->_loop = true;
?>
                  <option value="<?php echo $_smarty_tpl->tpl_vars['sort']->value['field'];?>
|<?php echo $_smarty_tpl->tpl_vars['sort']->value['order'];?>
" <?php echo $_smarty_tpl->tpl_vars['sort']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['sort']->value['name'];?>
 (<?php echo $_smarty_tpl->tpl_vars['sort']->value['direction'];?>
)</option>
                  <?php } ?>
               </select>
               <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['sort'];?>
" class="hide">
            </div>
         </div>
      </form>
      <?php }?>
   </div>
   <div class="medium-4 columns show-for-medium-up">
      <dl class="sub-nav right" id="layout_toggle">
         <dd><a href="#" class="grid_view"><i class="fa fa-th-large"></i></a></dd>
         <dd class="active"><a href="#" class="list_view"><i class="fa fa-th-list"></i></a></dd>
      </dl>
   </div>
</div>
<?php }?>
<div id="ccScroll">
   <ul class="small-block-grid-1 product_list" data-equalizer>
      <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['PRODUCTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
      <li>
         <form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" class="panel add_to_basket">
            <div class="row product_list_view">
               <div class="small-3 columns">
                  <a href="<?php echo $_smarty_tpl->tpl_vars['product']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
">
                  <img class="th" src="<?php echo $_smarty_tpl->tpl_vars['product']->value['thumbnail'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
">
                  </a>
               </div>
               <div class="small-6 columns">
                  <h3>
                     <a href="<?php echo $_smarty_tpl->tpl_vars['product']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
"><?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
</a> 
                  </h3>
                  <?php if ($_smarty_tpl->tpl_vars['product']->value['review_score']) {?>
                  <div>
                     <?php  $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['i']->value = 1;
  if ($_smarty_tpl->tpl_vars['i']->value<=5) { for ($_foo=true;$_smarty_tpl->tpl_vars['i']->value<=5; $_smarty_tpl->tpl_vars['i']->value++) {
?>
                     <?php if ($_smarty_tpl->tpl_vars['product']->value['review_score']>=$_smarty_tpl->tpl_vars['i']->value) {?>
                     <img src="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_FOLDER']->value;?>
/images/star.png" alt="">
                     <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['review_score']>($_smarty_tpl->tpl_vars['i']->value-1)&&$_smarty_tpl->tpl_vars['product']->value['review_score']<$_smarty_tpl->tpl_vars['i']->value) {?>
                     <img src="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_FOLDER']->value;?>
/images/star_half.png" alt="">
                     <?php } else { ?>
                     <img src="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_FOLDER']->value;?>
/images/star_off.png" alt="">
                     <?php }?>
                     <?php }} ?>
                  </div>
                  
                  <?php }?>
                  <?php echo $_smarty_tpl->tpl_vars['product']->value['description_short'];?>

               </div>
               <div class="small-3 columns">
                  <h3>
                     <?php if ($_smarty_tpl->tpl_vars['product']->value['ctrl_sale']) {?><span class="old_price"><?php echo $_smarty_tpl->tpl_vars['product']->value['price'];?>
</span> <span class="sale_price"><?php echo $_smarty_tpl->tpl_vars['product']->value['sale_price'];?>
</span>
                     <?php } else { ?>
                     <?php echo $_smarty_tpl->tpl_vars['product']->value['price'];?>

                     <?php }?>
                  </h3>
                  <?php if ($_smarty_tpl->tpl_vars['product']->value['available']=='0') {?>
                  <div class="row collapse">
                     <div class="small-12 columns">
                        <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['unavailable'];?>
" class="button small disabled expand marg-top" disabled>
                     </div>
                  </div>
                  <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['ctrl_stock']&&!$_smarty_tpl->tpl_vars['CATALOGUE_MODE']->value) {?>
                  <div class="row collapse">
                     <div class="small-4 columns">
                        <input type="text" name="quantity" value="1" class="quantity text-center">
                     </div>
                     <div class="small-8 columns">
                        <button type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['add_to_basket'];?>
" class="button small postfix"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['add_to_basket'];?>
</button>
                     </div>
                  </div>
                  <?php } elseif (!$_smarty_tpl->tpl_vars['CATALOGUE_MODE']->value) {?>
                  <div class="row collapse">
                     <div class="small-12 columns">
                        <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['out_of_stock_short'];?>
" disabled class="button disabled expand small">
                     </div>
                  </div>
                  <?php }?>
               </div>
            </div>
            <div class="product_grid_view hide">
               <form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" class="panel add_to_basket">
               <div data-equalizer-watch>
                  <div class="text-center">
                     <a href="<?php echo $_smarty_tpl->tpl_vars['product']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
"><img class="th" src="<?php echo $_smarty_tpl->tpl_vars['product']->value['thumbnail'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
"></a>
                  </div>
                  <h3><a href="<?php echo $_smarty_tpl->tpl_vars['product']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'],38,"&hellip;");?>
</a></h3>
                  <?php if ($_smarty_tpl->tpl_vars['product']->value['review_score']) {?>
                  <div class="rating">
                     <div>
                        <?php  $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['i']->value = 1;
  if ($_smarty_tpl->tpl_vars['i']->value<=5) { for ($_foo=true;$_smarty_tpl->tpl_vars['i']->value<=5; $_smarty_tpl->tpl_vars['i']->value++) {
?>
                        <?php if ($_smarty_tpl->tpl_vars['product']->value['review_score']>=$_smarty_tpl->tpl_vars['i']->value) {?>
                        <img src="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_FOLDER']->value;?>
/images/star.png" alt="">
                        <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['review_score']>($_smarty_tpl->tpl_vars['i']->value-1)&&$_smarty_tpl->tpl_vars['product']->value['review_score']<$_smarty_tpl->tpl_vars['i']->value) {?>
                        <img src="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_FOLDER']->value;?>
/images/star_half.png" alt="">
                        <?php } else { ?>
                        <img src="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_FOLDER']->value;?>
/images/star_off.png" alt="">
                        <?php }?>
                        <?php }} ?>
                     </div>
                     
                  </div>
                  <?php }?>
               </div>
               <h3>
                  <?php if ($_smarty_tpl->tpl_vars['product']->value['ctrl_sale']) {?><span class="old_price"><?php echo $_smarty_tpl->tpl_vars['product']->value['price'];?>
</span> <span class="sale_price"><?php echo $_smarty_tpl->tpl_vars['product']->value['sale_price'];?>
</span>
                  <?php } else { ?>
                  <?php echo $_smarty_tpl->tpl_vars['product']->value['price'];?>

                  <?php }?>
               </h3>
               
               <?php if ($_smarty_tpl->tpl_vars['product']->value['available']=='0') {?>
               <div class="row collapse marg-top">
                  <div class="small-12 columns">
                     <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['unavailable'];?>
" class="button small postfix disabled expand" disabled>
                  </div>
               </div>
               <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['ctrl_stock']&&!$_smarty_tpl->tpl_vars['CATALOGUE_MODE']->value) {?>
               <div class="row collapse marg-top">
                  <div class="small-3 columns">
                     <input type="text" name="quantity" value="1" class="quantity text-center" disabled>
                  </div>
                  <div class="small-9 columns ">
                     <button type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['add_to_basket'];?>
" class="button small postfix"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['add_to_basket'];?>
</button>
                     <input type="hidden" name="add" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['product_id'];?>
">
                  </div>
               </div>
                <?php } elseif (!$_smarty_tpl->tpl_vars['CATALOGUE_MODE']->value) {?>
               <div class="row collapse marg-top">
                  <div class="small-12 columns">
                     <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['out_of_stock_short'];?>
" class="button small postfix disabled expand marg-top" disabled>
                  </div>
               </div>
               <?php }?>
            </div>
         </form>
      </li>
      <?php }
if (!$_smarty_tpl->tpl_vars['product']->_loop) {
?>
      <?php if (!isset($_smarty_tpl->tpl_vars['SUBCATS']->value)||!$_smarty_tpl->tpl_vars['SUBCATS']->value) {?>
      <li><?php echo $_smarty_tpl->tpl_vars['LANG']->value['category']['no_products'];?>
</li>
      <?php }?>
      <?php } ?>
   </ul>
   
   <div class="row hide">
      <div class="small-12 large-9 columns">
         <?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>

      </div>
      <div class="large-3 columns show-for-medium-up">
         <dl>
            <dd>
               <select class="url_select">
               <?php  $_smarty_tpl->tpl_vars['page_split'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['page_split']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['PAGE_SPLITS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['page_split']->key => $_smarty_tpl->tpl_vars['page_split']->value) {
$_smarty_tpl->tpl_vars['page_split']->_loop = true;
?>
               <option value="<?php echo $_smarty_tpl->tpl_vars['page_split']->value['url'];?>
"<?php if ($_smarty_tpl->tpl_vars['page_split']->value['selected']) {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['page_split']->value['amount'];?>
</option>
               <?php } ?>
               </select>
            </dd>
         </dl>
      </div>
   </div>
   
   <?php if (($_smarty_tpl->tpl_vars['page']->value<$_smarty_tpl->tpl_vars['total']->value)) {?>
   <?php $_smarty_tpl->createLocalArrayVariable('params', null, 0);
$_smarty_tpl->tpl_vars['params']->value[$_smarty_tpl->tpl_vars['var_name']->value] = $_smarty_tpl->tpl_vars['page']->value+1;?>
   <a href="<?php echo $_smarty_tpl->tpl_vars['current']->value;?>
<?php echo http_build_query($_smarty_tpl->tpl_vars['params']->value);?>
<?php echo $_smarty_tpl->tpl_vars['anchor']->value;?>
" class="button tiny expand" id="ccScroll-next"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['more'];?>
 <i class="fa fa-angle-down"></i></a>
   <?php }?>
</div>
<div class="hide" id="lang_loading"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['loading'];?>
</div><?php }} ?>
