소스 검색

Theme: Don't add URL to main menu item if a submenu exists.

reliberate 9 년 전
부모
커밋
b3db68c63b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      themes/default/template.php

+ 1 - 1
themes/default/template.php

@@ -416,7 +416,7 @@
 									$mod_a_1 = "class='dropdown-toggle text-left' data-toggle='dropdown' ";
 									$submenu = true;
 								}
-								$mod_a_2 = ($menu_parent['menu_item_link'] != '') ? $menu_parent['menu_item_link'] : '#';
+								$mod_a_2 = ($menu_parent['menu_item_link'] != '' && !$submenu) ? $menu_parent['menu_item_link'] : '#';
 								$mod_a_3 = ($menu_parent['menu_item_category'] == 'external') ? "target='_blank' " : null;
 								if ($_SESSION['theme']['menu_main_icons']['boolean'] != 'false') {
 									if ($menu_parent['menu_item_icon'] != '' && substr_count($menu_parent['menu_item_icon'], 'glyphicon-') > 0) {