<?php $limitList = $this->params->getLimitList(); ?>
<?php if (count($limitList) > 1): ?>
  <form class="form-inline" action="<?=$this->currentPath() . $this->results->getUrlQuery()->setLimit(null)?>" method="post">
    <label for="limit"><?=$this->transEsc('Results per page')?></label>
    <select id="limit" dir="rtl" name="limit" class="jumpMenu form-control">
      <?php foreach ($limitList as $limitVal => $limitData): ?>
        <option value="<?=$this->escapeHtmlAttr($limitVal)?>"<?=$limitData['selected']?' selected="selected"':''?>><?=$this->escapeHtml($limitData['desc'])?></option>
      <?php endforeach; ?>
    </select>
    <noscript><input type="submit" value="<?=$this->transEsc("Set")?>" /></noscript>
  </form>
<?php endif; ?>
