shawn_a Wrote:I wrote a custom rendering component for twitter bootstrap nav bars and dropdowns.
I need to know what the $show parameter was when the component is called.
Is there anyway to get this, or can you pass it in as an object parameter with item ?
If you only need to know whether to show titles or menu texts, there is the attribute showTitles.
Otherwise you could either use different components or you can store the parameter in a global variable.
E.g. template:
Code:
...
<?php
global $myshow;
$myshow = I18N_SHOW_NORMAL;
get_i18n_navigation(return_page_slug(),0,0,$myshow,'mycomponent');
?>
...
Code:
<?php
global $myshow;
if ($myshow & I18N_FILTER_MENU) {
...