<?php
  $searchTabs = is_object($this->params)
    ? $this->searchtabs()->getTabConfigForParams($this->params) : [];
?>
<?php if (count($searchTabs) > 0): ?>
  <div class="alert alert-info">
<?php if (strcmp($this->translate($this->recommend->getActiveTab($searchTabs)['label']), "Gesamtbestand") == 0) return; ?>
    <?=$this->transEsc('nohit_change_tab', ['%%activeTab%%' => $this->translate($this->recommend->getActiveTab($searchTabs)['label'])])?>
    <ul>
    <?php $inactiveTabs = $this->recommend->getInactiveTabs($searchTabs); ?>
    <?php foreach ($inactiveTabs as $tab): ?>
      <li>
        <?php if (!$tab['selected']): ?><a href="<?=$this->escapeHtmlAttr($tab['url'])?>"><?php endif; ?>
          <?=$this->transEsc($tab['label']); ?>
        <?php if (!$tab['selected']): ?></a><?php endif; ?>
      </li>
    <?php endforeach; ?>
    </ul>
  </div>
<?php endif; ?>
