<?php
$isAuthenticated = !empty($_SESSION['user']['id']);
$pagePrefix = $isAuthenticated ? 'page/' : '';
?>
<footer class="site-footer">
  <nav aria-label="<?php e(t('Footer navigation')); ?>">
    <ul>
      <li>
        <a href="<?php e(lurl('')); ?>" class="muted">
          <small>© <?php e(date('Y')); ?> <?php e(appTitle()); ?></small>
        </a>
      </li>
      <li>
        <a href="<?php e(lurl($pagePrefix . 'imprint')); ?>" class="muted"><small><?php e(t('Imprint')); ?></small></a>
      </li>
      <li>
        <a href="<?php e(lurl($pagePrefix . 'privacy')); ?>" class="muted"><small><?php e(t('Privacy')); ?></small></a>
      </li>
      <li>
        <a href="<?php e(lurl($pagePrefix . 'terms')); ?>" class="muted"><small><?php e(t('Terms of Service')); ?></small></a>
      </li>
    </ul>
    <ul>
      <li>
        <?php
        $variant = 'select';
        require __DIR__ . '/app-language-switcher.phtml';
        unset($variant);
        ?>
      </li>
    </ul>
  </nav>
</footer>
