Changeset 1133679
- Timestamp:
- 04/13/2015 12:25:38 PM (11 years ago)
- Location:
- bootstrap-main-menu-responsive/trunk
- Files:
-
- 2 edited
-
Class_Main_Menu_BootstrapJarim.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bootstrap-main-menu-responsive/trunk/Class_Main_Menu_BootstrapJarim.php
r1133671 r1133679 109 109 110 110 //GET MENU OBJECT BY MENU NAME (COULD BE slug OR id) 111 $menu_name = $menu_name_option_bmmj;112 $menu = wp_get_nav_menu_object($menu_name );113 //echo '<pre>MY ARRRAY'; print_r($menu); echo '<pre/>';111 $menu_name = $menu_name_option_bmmj; 112 $menu = wp_get_nav_menu_object($menu_name ); 113 //echo '<pre>MY ARRRAY'; print_r($menu); echo '<pre/>'; 114 114 115 115 //IF NO MENU NAME … … 124 124 } 125 125 126 if (!$menu)127 {128 $all_menus = wp_get_nav_menus();129 //echo '<pre>MY ARRRAY'; print_r($menu); echo '<pre/>';130 foreach( $all_menus as $menu )131 {132 return $menu;133 }134 }135 126 return $menu; 136 127 … … 186 177 187 178 //$menu_header_visible_option_bmmj =$options['menu_header_visible_option_bmmj']; 188 179 180 181 if([$menu_appareance_option_bmmj=="navbar navbar-default navbar-fixed-top"|| $menu_appareance_option_bmmj=="navbar navbar-inverse navbar-fixed-top"] && is_user_logged_in()) 182 {//IF USSER LOGGED IN SET TOP-MARGIN TO SEE THE MENU ADMIN 183 184 echo '<style> 185 .navbar-fixed-top{margin-top:30px !important;}</style> '; 186 } 189 187 190 188 echo ' … … 388 386 if($menu_appareance_option_bmmj=="navbar navbar-default navbar-fixed-top"|| $menu_appareance_option_bmmj=="navbar navbar-inverse navbar-fixed-top") 389 387 {//FILL THE SPACE OF THE MENU INSERTING A FILL DIV 390 echo '<div id="fill-menu" style="visibility:none;clear:both;width:100%;height:18px;" ></div> '; 388 389 echo '<div id="fill-bootstrap-menu-jarim" style="clear:both;width:100%;height:18px;background-color:#101010;" ></div> '; 391 390 } 392 391 -
bootstrap-main-menu-responsive/trunk/readme.txt
r1133671 r1133679 5 5 Requires at least: ? 6 6 Tested up to: 4.1 7 Stable tag: 1. 47 Stable tag: 1.3 8 8 License: GPLv2 9 9 bootstrap-main-menu-responsive: is your perfect menu for both computers and mobiles. Many options in admin panel.
Note: See TracChangeset
for help on using the changeset viewer.