2013-06-13, 20:35:34
(2013-06-13, 20:02:18)itsmeee Wrote: So I have to put the whole menu into my template and change it all manually. Is this correct?
If you enter the HTML tags into each page's menu text, you just create a component (without the htmlspecialchars in the example), e.g. named menuitem:
Code:
<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo $item->text; ?>
</a>
<?php if ($item->isOpen) { ?>
<ul><?php $item->outputChildren(); ?></ul>
<?php } ?>
</li>
Code:
get_i18n_navigation(return_page_slug(), 0, 9, I18N_SHOW_NORMAL, 'menuitem');