2017-02-18, 05:18:54
Use I18N plugin + custom rendering(to assign classes to elements <ul>, <li>, etc.) + HTML, CSS (for position and menu design)
You can read the details:
http://mvlcek.bplaced.net/get-simple/i18n
http://mvlcek.bplaced.net/get-simple/mul...navigation
http://mvlcek.bplaced.net/get-simple/mul...-rendering
This will help if you want to display in the sidebar the child pages:
http://mvlcek.bplaced.net/get-simple/mul...v-children
Insert it in the template and get a simple menu as there http://mvlcek.bplaced.net/:
(This is the easiest option - the output only without rendering menu)
Example menu rendering for Bootstrap:
(a component - to create in the admin panel, )
In the template use the following code:
You can read the details:
http://mvlcek.bplaced.net/get-simple/i18n
http://mvlcek.bplaced.net/get-simple/mul...navigation
http://mvlcek.bplaced.net/get-simple/mul...-rendering
This will help if you want to display in the sidebar the child pages:
http://mvlcek.bplaced.net/get-simple/mul...v-children
Insert it in the template and get a simple menu as there http://mvlcek.bplaced.net/:
(This is the easiest option - the output only without rendering menu)
Code:
<ul>
<?php get_i18n_navigation(return_page_slug(),0,99,I18N_SHOW_NORMAL); ?>
</ul>
Example menu rendering for Bootstrap:
(a component - to create in the admin panel, )
PHP Code:
<?php
$s = array('current', 'activepath', 'currentpath', 'open');
$r = array('active', 'active', 'active', 'dropdown');
$c = str_replace($s, $r, $item->classes);
?>
<li class="<?php echo $c; ?>">
<?php if ($item->isOpen) { ?>
<a href="<?php echo htmlspecialchars($item->link); ?>" class="dropdown-toggle" data-toggle="dropdown">
<?php echo htmlspecialchars($item->text); ?>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<?php $item->outputChildren(); ?>
</ul>
<?php } else { ?>
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
<?php } ?>
</li>
PHP Code:
<?php get_i18n_navigation(get_page_slug(FALSE),0,1,I18N_SHOW_MENU, 'here-component-name'); ?>
I use machine translation. Forgive me my errors.