<?php /* Smarty version 2.6.26, created on 2013-06-14 08:53:57
         compiled from Search/Recommend/TopFacets.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'Search/Recommend/TopFacets.tpl', 4, false),array('modifier', 'escape', 'Search/Recommend/TopFacets.tpl', 18, false),)), $this); ?>
<?php if ($this->_tpl_vars['topFacetSet']): ?>
  <?php $_from = $this->_tpl_vars['topFacetSet']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['title'] => $this->_tpl_vars['cluster']):
?>
  <div class="authorbox">
    <strong><?php echo translate(array('text' => $this->_tpl_vars['cluster']['label']), $this);?>
</strong><?php echo translate(array('text' => 'top_facet_suffix'), $this);?>

    <?php $_from = $this->_tpl_vars['cluster']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['narrowLoop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['narrowLoop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['thisFacet']):
        $this->_foreach['narrowLoop']['iteration']++;
?>
      <?php if ($this->_foreach['narrowLoop']['iteration'] == ( $this->_tpl_vars['topFacetSettings']['rows'] * $this->_tpl_vars['topFacetSettings']['cols'] ) + 1): ?>
        <br class="clear"/>
        <a id="more<?php echo $this->_tpl_vars['title']; ?>
" href="#" onclick="moreFacets('<?php echo $this->_tpl_vars['title']; ?>
'); return false;"><?php echo translate(array('text' => 'more'), $this);?>
 ...</a>
        <div class="offscreen" id="narrowGroupHidden_<?php echo $this->_tpl_vars['title']; ?>
">
          <br/>
          <strong><?php echo translate(array('text' => 'top_facet_additional_prefix'), $this);?>
<?php echo translate(array('text' => $this->_tpl_vars['cluster']['label']), $this);?>
</strong><?php echo translate(array('text' => 'top_facet_suffix'), $this);?>

      <?php endif; ?>
      <?php if ($this->_foreach['narrowLoop']['iteration'] % $this->_tpl_vars['topFacetSettings']['cols'] == 1): ?>
        <br/>
      <?php endif; ?>
      <span class="span-5">
      <?php if ($this->_tpl_vars['thisFacet']['isApplied']): ?>
        <?php echo ((is_array($_tmp=$this->_tpl_vars['thisFacet']['value'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
 <img src="<?php echo $this->_tpl_vars['path']; ?>
/images/silk/tick.png" alt="Selected"/>
      <?php else: ?>
        <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['thisFacet']['url'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['thisFacet']['value'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a> (<?php echo $this->_tpl_vars['thisFacet']['count']; ?>
)
      <?php endif; ?>
      </span>
      <?php if ($this->_foreach['narrowLoop']['total'] > ( $this->_tpl_vars['topFacetSettings']['rows'] * $this->_tpl_vars['topFacetSettings']['cols'] ) && ($this->_foreach['narrowLoop']['iteration'] == $this->_foreach['narrowLoop']['total'])): ?>
          <br class="clear"/>
          <a href="#" onclick="lessFacets('<?php echo $this->_tpl_vars['title']; ?>
'); return false;"><?php echo translate(array('text' => 'less'), $this);?>
 ...</a>
        </div>
      <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>
    <div class="clear"></div>
  </div>
  <?php endforeach; endif; unset($_from); ?>
<?php endif; ?>
