<?php /* Smarty version 2.6.26, created on 2013-06-14 08:53:57
         compiled from Search/Recommend/SideFacets.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'Search/Recommend/SideFacets.tpl', 2, false),array('function', 'js', 'Search/Recommend/SideFacets.tpl', 27, false),array('modifier', 'escape', 'Search/Recommend/SideFacets.tpl', 6, false),array('modifier', 'replace', 'Search/Recommend/SideFacets.tpl', 7, false),)), $this); ?>
<div class="sidegroup">
  <?php if ($this->_tpl_vars['recordCount'] > 0): ?><h4><?php echo translate(array('text' => 'Narrow Search'), $this);?>
</h4><?php endif; ?>
  <?php if (isset ( $this->_tpl_vars['checkboxFilters'] ) && count ( $this->_tpl_vars['checkboxFilters'] ) > 0): ?>
      <?php $_from = $this->_tpl_vars['checkboxFilters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['current']):
?>
        <div class="checkboxFilter<?php if ($this->_tpl_vars['recordCount'] < 1 && ! $this->_tpl_vars['current']['selected'] && ! $this->_tpl_vars['current']['alwaysVisible']): ?> hide<?php endif; ?>">
              <input type="checkbox" name="filter[]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['current']['filter'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"
                <?php if ($this->_tpl_vars['current']['selected']): ?>checked="checked"<?php endif; ?> id="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current']['desc'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"
                onclick="document.location.href='<?php echo ((is_array($_tmp=$this->_tpl_vars['current']['toggleUrl'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
';" />
              <label for="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['current']['desc'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"><?php echo translate(array('text' => $this->_tpl_vars['current']['desc']), $this);?>
</label>
        </div>
      <?php endforeach; endif; unset($_from); ?>
  <?php endif; ?>
  <?php if ($this->_tpl_vars['filterList']): ?>
    <strong><?php echo translate(array('text' => 'Remove Filters'), $this);?>
</strong>
    <ul class="filters">
    <?php $_from = $this->_tpl_vars['filterList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['field'] => $this->_tpl_vars['filters']):
?>
      <?php $_from = $this->_tpl_vars['filters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['filter']):
?>
        <li><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['filter']['removalUrl'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"><img src="<?php echo $this->_tpl_vars['path']; ?>
/images/silk/delete.png" alt="Delete"/></a> <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['filter']['removalUrl'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"><?php echo translate(array('text' => $this->_tpl_vars['field']), $this);?>
: <?php echo ((is_array($_tmp=$this->_tpl_vars['filter']['display'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a></li>
      <?php endforeach; endif; unset($_from); ?>
    <?php endforeach; endif; unset($_from); ?>
    </ul>
  <?php endif; ?>
  <?php if ($this->_tpl_vars['sideFacetSet'] && $this->_tpl_vars['recordCount'] > 0): ?>
    <?php $_from = $this->_tpl_vars['sideFacetSet']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['title'] => $this->_tpl_vars['cluster']):
?>
    <?php if (isset ( $this->_tpl_vars['dateFacets'][$this->_tpl_vars['title']] )): ?>
            <?php echo smarty_function_js(array('filename' => "pubdate_slider.js"), $this);?>

      <form action="" name="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
Filter" id="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
Filter">
                <?php $_from = $_GET; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['paramName'] => $this->_tpl_vars['paramValue']):
?>
          <?php if (is_array ( $_GET[$this->_tpl_vars['paramName']] )): ?>
            <?php $_from = $_GET[$this->_tpl_vars['paramName']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['paramValue2']):
?>
              <?php if (strpos ( $this->_tpl_vars['paramValue2'] , $this->_tpl_vars['title'] ) !== 0): ?>
                <input type="hidden" name="<?php echo $this->_tpl_vars['paramName']; ?>
[]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['paramValue2'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
              <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?>
          <?php else: ?>
            <?php if (( strpos ( $this->_tpl_vars['paramName'] , $this->_tpl_vars['title'] ) !== 0 ) && ( strpos ( $this->_tpl_vars['paramName'] , 'module' ) !== 0 ) && ( strpos ( $this->_tpl_vars['paramName'] , 'action' ) !== 0 ) && ( strpos ( $this->_tpl_vars['paramName'] , 'page' ) !== 0 )): ?>
              <input type="hidden" name="<?php echo $this->_tpl_vars['paramName']; ?>
" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['paramValue'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
            <?php endif; ?>
          <?php endif; ?>
        <?php endforeach; endif; unset($_from); ?>
        <input type="hidden" name="daterange[]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"/>
        <fieldset class="publishDateLimit" id="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
">
          <legend><?php echo translate(array('text' => $this->_tpl_vars['cluster']['label']), $this);?>
</legend>
          <label for="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
from"><?php echo translate(array('text' => 'date_from'), $this);?>
:</label>
          <input type="text" size="4" maxlength="4" class="yearbox" name="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
from" id="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
from" value="<?php if ($this->_tpl_vars['dateFacets'][$this->_tpl_vars['title']]['0']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['dateFacets'][$this->_tpl_vars['title']]['0'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?>" />
          <label for="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
to"><?php echo translate(array('text' => 'date_to'), $this);?>
:</label>
          <input type="text" size="4" maxlength="4" class="yearbox" name="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
to" id="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
to" value="<?php if ($this->_tpl_vars['dateFacets'][$this->_tpl_vars['title']]['1']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['dateFacets'][$this->_tpl_vars['title']]['1'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?>" />
          <div id="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
Slider" class="dateSlider"></div>
          <input type="submit" value="<?php echo translate(array('text' => 'Set'), $this);?>
" id="<?php echo ((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
goButton"/>
        </fieldset>
      </form>
    <?php else: ?>
      <dl class="narrowList navmenu">
        <dt><?php echo translate(array('text' => $this->_tpl_vars['cluster']['label']), $this);?>
</dt>
        <?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'] == 6): ?>
          <dd id="more<?php echo $this->_tpl_vars['title']; ?>
"><a href="#" onclick="moreFacets('<?php echo $this->_tpl_vars['title']; ?>
'); return false;"><?php echo translate(array('text' => 'more'), $this);?>
 ...</a></dd>
        </dl>
        <dl class="narrowList navmenu offscreen" id="narrowGroupHidden_<?php echo $this->_tpl_vars['title']; ?>
">
          <?php endif; ?>
          <?php if ($this->_tpl_vars['thisFacet']['isApplied']): ?>
            <dd><?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"/></dd>
          <?php else: ?>
            <dd><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']; ?>
)</dd>
          <?php endif; ?>
        <?php endforeach; endif; unset($_from); ?>
        <?php if ($this->_foreach['narrowLoop']['total'] > 5): ?><dd><a href="#" onclick="lessFacets('<?php echo $this->_tpl_vars['title']; ?>
'); return false;"><?php echo translate(array('text' => 'less'), $this);?>
 ...</a></dd><?php endif; ?>
      </dl>
    <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>
  <?php endif; ?>
</div>