2014-05-19, 06:47:37
(2014-05-19, 06:33:40)xxdex Wrote: i know it.. but i want to get more .. example:
i want to get a vertical line separating the menu:
start | about us | contact
but not visible when a menu is last ...
to do it i must write a foreach and do some "if"
to do it.. i must write php code in components or.. edit a plugin i18n navigation files..
i don't want to edit a plugin files... than i must create a components... it would be easier to write a php file that replace all the contents of the menu display ...
the other idea is getting a number of submenus in menu like:
start | about us [3 pages] | contact
i have a more idea's.. but i can't load function's from a php file's...
You can do all this using CSS and a component.
But if you really want to do this in PHP, you can create a small plugin and add a function e.g. get_my_navigation(...) and use return_i18n_menu_data() to get the menu structure and then build the menu HTML.