<? global $lang;?>
<div id="search-results">
  <? if ( !$this -> articles ):?>
    <div class="alert alert-danger">
      <i class="fa fa-exclamation-circle"></i>Nie znaleziono danych
    </div>
  <? else:?>
    <ul>
      <? foreach ( $this -> articles as $article ):?>
        <li>
          <?
            $article['language']['seo_link'] ? $url = $article['language']['seo_link'] : $url = 'a-' . $article['id'] . '-' . \S::seo( $article['language']['title'] );
            ?>
              <h3 class="article-title">
                <a href="/<? if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language() ) echo \S::get_session( 'current-lang' ) . '/';?><?= $url;?>" title="<?= $article['language']['title'];?>"  <? if ( $article['language']['noindex'] ):?>rel="nofollow"<? endif;?>><?= $article['language']['title'];?></a>
              </h3>
            <?
          ?>
        </li>
      <? endforeach;?>
    </ul>
  <? endif;?>
</div>