Aber noch eine Sache,ich habe Navigationsmodul,wo ich eine kleine Navi, den Sprachwechsler, Suche und Button habe.
Der code funktioniert dann nicht:
PHP-Code:
<nav class="mod_changelanguage block">
<ul class="level_1">
<?php foreach ($this->items as $item): ?>
<?php
switch($item['link']){
case 'DE':
$langString = 'DEUTSCH';
break;
case 'EN':
$langString = 'ENGLISH';
break;
case 'NL':
$langString = 'NEDERLANDS';
break;
case 'FR':
$langString = 'FRANCAIS';
break;
}
?>
<?php if ($item['isActive']): ?>
<li class="<?= $item['class'] ?> hidden">
<strong class="<?= $item['class'] ?>"<?php if (!empty($item['subitems'])) echo ' aria-haspopup="true"'; ?> itemprop="name">
<?= $langString ?>
</strong>
<?= $item['subitems'] ?>
</li>
<?php else: ?>
<li<?php if ($item['class']) echo ' class="' . $item['class'] . '"'; ?>>
<a href="<?= $item['href'] ?: './' ?>" title="<?= $item['pageTitle'] ?: $item['title'] ?>"
<?php if ($item['class']) echo ' class="' . $item['class'] . '"'; ?><?php if ($item['accesskey']) echo ' accesskey="' . $item['accesskey'] . '"'; ?><?php if ($item['tabindex']) echo ' tabindex="' . $item['tabindex'] . '"'; ?><?php if ($item['nofollow']) echo ' rel="nofollow"'; ?><?= $item['target'] ?><?php if (!empty($item['subitems'])) echo ' aria-haspopup="true"'; ?> itemprop="url"><span itemprop="name"><?= $langString ?></span></a><?= $item['subitems'] ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</nav>
Das liegt sicher daran, dass es kein Sprachwechslermodul ist, oder? Wie bekomme ich das trotzdem hin?
Lesezeichen