The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION How to add subtitles to menu?
#1
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:
[Image: reXr6O0.png]

How it is now:
[Image: zpEYvDh.png]

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!
Reply


Messages In This Thread
How to add subtitles to menu? - by lukinhasb - 2014-07-12, 00:15:58
RE: How to add subtitles to menu? - by lukinhasb - 2014-07-12, 00:34:15
RE: How to add subtitles to menu? - by shawn_a - 2014-07-12, 00:54:34
RE: How to add subtitles to menu? - by cmb - 2014-07-12, 11:56:10
RE: How to add subtitles to menu? - by xuser - 2015-08-06, 20:23:02
RE: How to add subtitles to menu? - by Angryboy - 2015-08-11, 00:35:48



Users browsing this thread: 1 Guest(s)