Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Menu (Version 0.6)
#13
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/

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> 
Reply


Messages In This Thread
Custom Menu (Version 0.6) - by Angryboy - 2013-08-22, 07:26:14
RE: Custom Menu - by Oleg06 - 2013-08-22, 16:04:38
RE: Custom Menu - by Angryboy - 2013-08-22, 18:06:56
RE: Custom Menu (Version 0.2) - by Oleg06 - 2013-08-22, 18:53:10
RE: Custom Menu (Version 0.2) - by Angryboy - 2013-08-22, 18:56:22
RE: Custom Menu (Version 0.2) - by Oleg06 - 2013-08-22, 20:01:24
RE: Custom Menu (Version 0.2) - by Angryboy - 2013-08-22, 20:48:37
RE: Custom Menu (Version 0.3) - by ohayo - 2013-08-22, 23:11:41
RE: Custom Menu (Version 0.3) - by Angryboy - 2013-08-23, 00:43:44
RE: Custom Menu (Version 0.31) - by ohayo - 2013-08-23, 04:15:32
RE: Custom Menu (Version 0.31) - by Angryboy - 2013-08-23, 04:27:34
RE: Custom Menu (Version 0.31) - by Oleg06 - 2013-08-23, 04:29:20
RE: Custom Menu (Version 0.31) - by ohayo - 2013-08-23, 04:38:47
RE: Custom Menu (Version 0.31) - by Oleg06 - 2013-08-23, 05:06:43
RE: Custom Menu (Version 0.31) - by Angryboy - 2013-08-24, 18:39:09
RE: Custom Menu (Version 0.31) - by evan70 - 2013-08-24, 21:04:02
RE: Custom Menu (Version 0.4) - by Oleg06 - 2013-08-25, 02:13:56
RE: Custom Menu (Version 0.4) - by Angryboy - 2013-08-25, 03:37:56
RE: Custom Menu (Version 0.4) - by Oleg06 - 2013-08-25, 04:10:50
RE: Custom Menu (Version 0.4) - by davetest - 2013-08-25, 12:04:50
RE: Custom Menu (Version 0.4) - by datiswous - 2013-09-09, 18:50:01
RE: Custom Menu (Version 0.4) - by Everyone - 2013-09-09, 19:19:59
RE: Custom Menu (Version 0.4) - by datiswous - 2013-09-09, 19:55:44
RE: Custom Menu (Version 0.4) - by Angryboy - 2013-09-12, 23:59:43
RE: Custom Menu (Version 0.4) - by evan70 - 2013-09-13, 03:12:19
RE: Custom Menu (Version 0.4) - by datiswous - 2013-09-13, 09:32:19
RE: Custom Menu (Version 0.5) - by Oleg06 - 2013-09-13, 03:54:47
RE: Custom Menu (Version 0.5) - by Oleg06 - 2013-10-03, 04:31:17
RE: Custom Menu (Version 0.5) - by Oleg06 - 2013-10-03, 06:39:16
RE: Custom Menu (Version 0.5) - by Oleg06 - 2013-10-03, 07:03:25
RE: Custom Menu (Version 0.5) - by datiswous - 2013-10-03, 21:20:25
RE: Custom Menu (Version 0.5) - by vinsky2007 - 2014-01-27, 12:50:49
RE: Custom Menu (Version 0.5) - by Oleg06 - 2014-03-13, 20:40:51
RE: Custom Menu (Version 0.5) - by Oleg06 - 2014-03-13, 22:21:53
RE: Custom Menu (Version 0.5) - by Angryboy - 2015-07-16, 01:27:15



Users browsing this thread: 1 Guest(s)