This is the only plugin that failed (I'm using about 10 plugins). I've tested 2 separate servers and problem was still there, don't know why.
Is it possible to mix Custom Menu plugin with Bootstrap dropdown menus (now it's based on I18N menu)? It would be useful for people using #anchors in links as in GS you cannot save link with "#".
Check - http://get-simple.info/forums/showthread...038&page=2
I'm using it here - http://test.parepikseli.com/
+ component 'nav'
Is it possible to mix Custom Menu plugin with Bootstrap dropdown menus (now it's based on I18N menu)? It would be useful for people using #anchors in links as in GS you cannot save link with "#".
Check - http://get-simple.info/forums/showthread...038&page=2
I'm using it here - http://test.parepikseli.com/
Code:
<div class="nav-collapse">
<ul class="nav">
<?php get_i18n_navigation(get_page_slug(FALSE),0,1,I18N_SHOW_MENU, 'nav'); ?>
</ul>
</div>
+ component 'nav'
PHP Code:
<?php
$ismenu = false;
$caret = $dropdown = $dropdown_list = '';
$classStr = $item->classes;
$classes = explode(' ',$item->classes);
if(in_array('current',$classes)) $classStr .= ' active';
if(in_array('currentpath',$classes)) $classStr .= ' active';
if($item->hasChildren and ($item->isOpen or $ismenu==true)){
if(in_array('open',$classes)) $classStr .= ' dropdown';
$dropdown = 'data-toggle="dropdown" class="dropdown-toggle"';
$dropdown_list = ' class="dropdown-menu"';
$caret = '<b class="caret"></b>';
$classStr = str_replace('open','',$classStr);
}
?>
<li class="<?php echo $classStr; ?>">
<a href="<?php echo htmlspecialchars($item->link) . "\""; echo ' '.$dropdown; ?> >
<?php
# debugLog(htmlspecialchars($item->text));
echo htmlspecialchars($item->text); echo $caret
?>
</a>
<?php if ($item->isOpen) { ?>
<ul<?php echo $dropdown_list.'>'; $item->outputChildren(); ?></ul>
<?php } ?>
</li>