I'm converting my website to Get-Simple, and I'm stuck at adding subtitles to the menu. Please take a look at the images below:
What I want:
How it is now:
I've researched a lot so far, and here's what I tried:
I have downloaded i18N and i18N navitagion plugins, I've added a custom component called menu_custom
menu_custom (component)
template.php
The problem is, how can I assign the $item->subtitle to each menu? Also, is there another/easier way to do this?
Thanks!
What I want:
How it is now:
I've researched a lot so far, and here's what I tried:
I have downloaded i18N and i18N navitagion plugins, I've added a custom component called menu_custom
menu_custom (component)
PHP Code:
<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
<span class="subtitle"><?php echo htmlspecialchars($item->subtitle); ?></span>
</a>
<?php if ($item->isOpen) { ?>
<ul><?php $item->outputChildren(); ?></ul>
<?php } ?>
</li>
template.php
PHP Code:
<ul id="nav">
<?php get_i18n_navigation($slug, $minlevel=0, $maxlevel=0, $show=I18N_SHOW_NORMAL, $component=menu_custom) ?>
</ul>
The problem is, how can I assign the $item->subtitle to each menu? Also, is there another/easier way to do this?
Thanks!