2012-07-25, 05:18:10
Assuming you use the I18N plugin, you can use custom rendering for your navigation, using a component navitem like this:
and replace the navigation call in the template with:
Code:
<li class="<?php echo $item->classes; ?>">
<?php if ($item->hasChildren) { ?>
<?php echo htmlspecialchars($item->text); ?>
<?php } else { ?>
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php } ?>
<?php if ($item->isOpen) { ?>
<ul><?php $item->outputChildren(); ?></ul>
<?php } ?>
</li>
Code:
get_i18n_navigation(return_page_slug(),0,2,I18N_SHOW_MENU|I18N_FILTER_LANGUAGE,'navitem');