2014-03-08, 04:21:03
i'm using a:
where the " nawigacjaglowna" is a component:
this component is checking: if is any submenu (subpages) in menu add a arrow class to my menu if page have a child...
it works:
https://dl.dropboxusercontent.com/u/4998...gation.jpg
but i have a problem to use with I18N_SHOW_LANGUAGE
i want to use this methood with a I18N_FILTER_MENU but i want to have other language (only active page's in other language . how to use this two methood in one time ?
i'm was try do it like:
get_i18n_navigation(return_page_slug(),0,10,I18N_SHOW_LANGUAGE, I18N_FILTER_MENU, 'nawigacjaglowna');
not working (only I18N_SHOW_LANGUAGE is in front end.. I18N_FILTER_MENU not working)
get_i18n_navigation(return_page_slug(),0,10,I18N_SHOW_LANGUAGE | I18N_FILTER_MENU, 'nawigacjaglowna');
working.. but not giving back a level menu other than 0 level --> submenu pages is not visible (not displaying) in menu.
get_i18n_navigation(return_page_slug(),0,10,I18N_SHOW_LANGUAGE, 'nawigacjaglowna');
working.. but the submenu is visible only (drop down menu 2 and other level..) when i'm on page with one have a sub menu..
https://dl.dropboxusercontent.com/u/4998...i18n/5.jpg
mouse over the page "nowa strona" - nowa strona have subpages.. subpages is not visible in menu..
how to use this two options in one query ?
PHP Code:
<div class="sitemenu">
<i><ul id="mainmenu"> <?php get_i18n_navigation(return_page_slug(),0,10,I18N_FILTER_MENU, 'nawigacjaglowna');
?>
</ul></i>
</div>
where the " nawigacjaglowna" is a component:
PHP Code:
<li class="<?php echo $item->classes; ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>" >
<?php echo htmlspecialchars($item->text); ?>
<?php
$results2 = return_i18n_search_results('_parent_'.$item->id, null, 0, 1000, null, 'pl');
if (count($results2['results']) !=0 ){
echo '<i class="arrow"></i>';
} else {
echo '';
}
?>
</a>
<?php if ($item->isOpen) { ?>
<ul><?php $item->outputChildren(); ?></ul>
<?php } ?>
</li>
this component is checking: if is any submenu (subpages) in menu add a arrow class to my menu if page have a child...
it works:
https://dl.dropboxusercontent.com/u/4998...gation.jpg
but i have a problem to use with I18N_SHOW_LANGUAGE
i want to use this methood with a I18N_FILTER_MENU but i want to have other language (only active page's in other language . how to use this two methood in one time ?
i'm was try do it like:
get_i18n_navigation(return_page_slug(),0,10,I18N_SHOW_LANGUAGE, I18N_FILTER_MENU, 'nawigacjaglowna');
not working (only I18N_SHOW_LANGUAGE is in front end.. I18N_FILTER_MENU not working)
get_i18n_navigation(return_page_slug(),0,10,I18N_SHOW_LANGUAGE | I18N_FILTER_MENU, 'nawigacjaglowna');
working.. but not giving back a level menu other than 0 level --> submenu pages is not visible (not displaying) in menu.
get_i18n_navigation(return_page_slug(),0,10,I18N_SHOW_LANGUAGE, 'nawigacjaglowna');
working.. but the submenu is visible only (drop down menu 2 and other level..) when i'm on page with one have a sub menu..
https://dl.dropboxusercontent.com/u/4998...i18n/5.jpg
mouse over the page "nowa strona" - nowa strona have subpages.. subpages is not visible in menu..
how to use this two options in one query ?
user plugin: scroll to top