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 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 861 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
i18n Navigation with HTML Tags
#5
(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>
and then call the navigation in your template with
Code:
get_i18n_navigation(return_page_slug(), 0, 9, I18N_SHOW_NORMAL, 'menuitem');
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
i18n Navigation with HTML Tags - by itsmeee - 2013-06-13, 19:24:21
RE: i18n Navigation with HTML Tags - by yojoe - 2013-06-13, 19:27:13
RE: i18n Navigation with HTML Tags - by itsmeee - 2013-06-13, 20:02:18
RE: i18n Navigation with HTML Tags - by mvlcek - 2013-06-13, 20:35:34
RE: i18n Navigation with HTML Tags - by Oleg06 - 2013-06-13, 20:18:11
RE: i18n Navigation with HTML Tags - by itsmeee - 2013-06-13, 21:45:31
RE: i18n Navigation with HTML Tags - by mvlcek - 2013-06-13, 22:58:47



Users browsing this thread: 1 Guest(s)