2013-12-11, 19:47:37
(2013-12-11, 07:58:49)vginer Wrote: I added some HTML in the menú text for my pages. For example, the menú text for the "gallery" page was this:
I18N interprets all menu texts as text (without HTML).
Thus you need to use Custom Rendering with a component like that (no htmlspecialchars() around $item->text):
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>