Hey there,
sorry i am new with php.
i used the kirby language kit.
everything works fine. no i want to display the language selection in dropdown.
i tried this. it shows the dropdown, but the navigation between the sites don´t work.
<nav class="navigation menu column" role="navigation">
<ul class="site-nav">
<?php foreach($pages->visible() as $item): ?>
<li class="menu-item<?= r($item->isOpen(), ' is-active') ?>">
<a href="<?= $item->url() ?>"><?= $item->title()->html() ?></a>
</li>
<?php endforeach ?>
|
<select>
<?php foreach($site->languages() as $language): ?>
<option>
<li class="languages-item<?php e($site->language() == $language, ' is-active') ?>">
<a href="<?= $page->url($language->code()) ?>"><?= str::upper($language->code()) ?></a>
</li>
</option>
<?php endforeach ?>
</select>
</ul>
</nav>
thank you very much for tipps and helping
cheers