<?php /* Smarty version Smarty-3.1.15, created on 2015-04-27 20:10:44
         compiled from "/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.homepage.php" */ ?>
<?php /*%%SmartyHeaderCode:1693422659553e2744808527-19795252%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd19f784f8603bab219295d7c5ddb00c8f7ef7b96' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.homepage.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1693422659553e2744808527-19795252',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'DOCUMENT' => 0,
    'LATEST_PRODUCTS' => 0,
    'LANG' => 0,
    'VAL_SELF' => 0,
    'product' => 0,
    'CTRL_REVIEW' => 0,
    'i' => 0,
    'STORE_URL' => 0,
    'SKIN_FOLDER' => 0,
    'CATALOGUE_MODE' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553e274490e0d0_45752003',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553e274490e0d0_45752003')) {function content_553e274490e0d0_45752003($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/home/hushdogcafe/public_html/cube/includes/lib/smarty/plugins/modifier.truncate.php';
?>
<?php if (isset($_smarty_tpl->tpl_vars['DOCUMENT']->value)) {?>
<div id="content_homepage">
   <h1><?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['title'];?>
</h1>
   <?php echo $_smarty_tpl->tpl_vars['DOCUMENT']->value['content'];?>

</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['LATEST_PRODUCTS']->value)) {?>
<div id="content_latest_products">
   <h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['latest_products'];?>
</h2>
   <ul class="small-block-grid-1 medium-block-grid-3 large-block-grid-3" data-equalizer>
      <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LATEST_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 data-equalizer-watch>
               <div class="text-center">
                  <a class="th" href="<?php echo $_smarty_tpl->tpl_vars['product']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['product']->value['image'];?>
" 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']&&$_smarty_tpl->tpl_vars['CTRL_REVIEW']->value) {?>
               <div class="rating"> <?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 }?>
            </div>
            <?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 }?>

            
            <?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 disabled postfix 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 required text-center">
               </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>
               </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 }?>
            <input type="hidden" name="add" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['product_id'];?>
">
         </form>
      </li>
      <?php } ?>
   </ul>
</div>
<?php }?><?php }} ?>
