<?php
/**
 * @link https://www.humhub.org/
 * @copyright Copyright (c) 2018 HumHub GmbH & Co. KG
 * @license https://www.humhub.com/licences
 */

use humhub\modules\ui\menu\MenuLink;
use humhub\widgets\PoweredBy;
use yii\helpers\Html;

/* @var $this \humhub\modules\ui\view\components\View */
/* @var $entries MenuLink[] */
/* @var $options array */
/* @var $menu \humhub\widgets\FooterMenu */

?>

<div class="text-center footer-nav footer-nav-default">
    <small>
        <?php foreach ($entries as $k => $entry): ?>
            <?php if ($entry instanceof MenuLink): ?>
                <?= Html::a($entry->getLabel(), $entry->getUrl(), $entry->getHtmlOptions()); ?>

                <?php if (!PoweredBy::isHidden() || array_key_last($entries) !== $k): ?>
                    &nbsp;&middot;&nbsp;
                <?php endif; ?>
            <?php endif; ?>
        <?php endforeach; ?>

        <?= PoweredBy::widget(); ?>
    </small>
</div>
<br/>
