<?php /* Smarty version Smarty-3.1.15, created on 2015-04-27 23:45:27
         compiled from "/home/hushdogcafe/public_html/cube/skins/foundation/templates/element.product_reviews.php" */ ?>
<?php /*%%SmartyHeaderCode:1501239040553e5997784d22-36533177%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f0acd8f239e2ae0b39757f07e87544277d36ac2a' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/skins/foundation/templates/element.product_reviews.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1501239040553e5997784d22-36533177',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'CTRL_REVIEW' => 0,
    'LANG' => 0,
    'REVIEWS' => 0,
    'PAGINATION' => 0,
    'REVIEW_AVERAGE' => 0,
    'review' => 0,
    'i' => 0,
    'STORE_URL' => 0,
    'SKIN_FOLDER' => 0,
    'VAL_SELF' => 0,
    'IS_USER' => 0,
    'WRITE' => 0,
    'RATING_STARS' => 0,
    'star' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553e59979486f9_78740689',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553e59979486f9_78740689')) {function content_553e59979486f9_78740689($_smarty_tpl) {?>
<?php if ($_smarty_tpl->tpl_vars['CTRL_REVIEW']->value) {?>
<div id="element-reviews">
   <h2 id="reviews"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['customer_reviews'];?>
</h2>
   <div id="review_read">
      <?php if ($_smarty_tpl->tpl_vars['REVIEWS']->value) {?>
      <p class="pagination_top"><span class="pagination"><?php if (isset($_smarty_tpl->tpl_vars['PAGINATION']->value)) {?><?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>
<?php }?></span><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['average_rating'];?>
: <strong><?php echo $_smarty_tpl->tpl_vars['REVIEW_AVERAGE']->value;?>
</strong></p>
      <?php  $_smarty_tpl->tpl_vars['review'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['review']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['REVIEWS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['review']->key => $_smarty_tpl->tpl_vars['review']->value) {
$_smarty_tpl->tpl_vars['review']->_loop = true;
?>
      <div class="panel" itemprop="review" itemscope itemtype="http://schema.org/Review">
         <meta itemprop="datePublished" content="<?php echo $_smarty_tpl->tpl_vars['review']->value['date_schema'];?>
">
         <div class="row">
            <div class="medium-9 columns">
               <h3><?php echo $_smarty_tpl->tpl_vars['review']->value['title'];?>
</h3>
            </div>
            <div class="medium-3 columns text-right" itemprop="reviewRating" itemscope itemtype="http://schema.org/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['i']->value<=$_smarty_tpl->tpl_vars['review']->value['rating']) {?>
               <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 echo $_smarty_tpl->tpl_vars['i']->value;?>
">
               <?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 echo $_smarty_tpl->tpl_vars['i']->value;?>
">
               <?php }?>
               <?php }} ?>
               <meta itemprop="worstRating" content="0">
               <meta itemprop="ratingValue" content="<?php echo $_smarty_tpl->tpl_vars['review']->value['rating'];?>
">
               <meta itemprop="bestRating" content="5">
            </div>
         </div>
         <blockquote><?php if ($_smarty_tpl->tpl_vars['review']->value['gravatar_exists']) {?><a href="http://gravatar.com/emails/"><img class="th marg-right" src="<?php echo $_smarty_tpl->tpl_vars['review']->value['gravatar_src'];?>
&s=90" align="left"></a><?php }?><span itemprop="description"><?php echo $_smarty_tpl->tpl_vars['review']->value['review'];?>
</span><cite><span itemprop="author"><?php echo $_smarty_tpl->tpl_vars['review']->value['name'];?>
</span> (<?php echo $_smarty_tpl->tpl_vars['review']->value['date'];?>
)</cite></blockquote>
      </div>
      <?php } ?>
      <?php if (isset($_smarty_tpl->tpl_vars['PAGINATION']->value)) {?><?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>
<?php }?>
      <a href="#" class="button review_show"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['write_a_review'];?>
</a>
      <?php } else { ?>
      <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['product_not_reviewed'];?>
</p>
      <a href="#" class="button review_show"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['write_a_review'];?>
</a>
      <?php }?>
   </div>
   <div id="review_write" class="hide">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['write_review'];?>
</h3>
      <form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
#reviews_write" id="review_form" method="post">
         <div class="panel">
            <?php if ($_smarty_tpl->tpl_vars['IS_USER']->value) {?>
            <div class="row">
               <div class="small-12 columns"><input type="checkbox" id="rev_anon" name="review[anon]" value="1"> <label for="rev_anon"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['post_anonymously'];?>
</label></div>
            </div>
            <?php } else { ?>
            <div class="row">
               <div class="small-12 columns"><label for="rev_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['name'];?>
</label><input id="rev_name" type="text" name="review[name]" value="<?php echo $_smarty_tpl->tpl_vars['WRITE']->value['name'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['name'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
" required></div>
            </div>
            <div class="row">
               <div class="small-12 columns"><label for="rev_email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['email'];?>
</label><input id="rev_email" type="text" name="review[email]" value="<?php echo $_smarty_tpl->tpl_vars['WRITE']->value['email'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['email'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
" required></div>
            </div>
            <?php }?>
            <div class="row">
               <div class="small-12 columns" id="review_stars">
                  <label for="rating"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['documents']['rating'];?>
</label>
                  <?php  $_smarty_tpl->tpl_vars['star'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['star']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['RATING_STARS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['star']->key => $_smarty_tpl->tpl_vars['star']->value) {
$_smarty_tpl->tpl_vars['star']->_loop = true;
?>
                  <input type="radio" id="rating_<?php echo $_smarty_tpl->tpl_vars['star']->value['value'];?>
" name="rating" value="<?php echo $_smarty_tpl->tpl_vars['star']->value['value'];?>
" class="rating" <?php echo $_smarty_tpl->tpl_vars['star']->value['checked'];?>
>
                  <?php } ?>
               </div>
            </div>
            <div class="row">
               <div class="small-12 columns"><label for="rev_title" class="inline"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['review_title'];?>
</label><input id="rev_title" type="text" name="review[title]" value="<?php echo $_smarty_tpl->tpl_vars['WRITE']->value['title'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['review_title'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
" required></div>
            </div>
            <div class="row">
               <div class="small-12 columns"><label for="rev_review" class="return"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['review'];?>
</label><textarea id="rev_review" name="review[review]" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['review'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
" required><?php echo $_smarty_tpl->tpl_vars['WRITE']->value['review'];?>
</textarea></div>
            </div>
            <?php echo $_smarty_tpl->getSubTemplate ('templates/content.recaptcha.php', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

         </div>
         <div class="clearfix">
            <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['submit_review'];?>
" class="button">
            <input type="button" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['cancel'];?>
" class="button secondary right review_hide">
         </div>
      </form>
   </div>
   <div class="hide" id="validate_email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['error_email_invalid'];?>
</div>
   <div class="hide" id="validate_field_required"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['field_required'];?>
</div>
</div>
<?php }?><?php }} ?>
