Pārlūkot izejas kodu

! It looks weird to have "<a href="..." >" and "<li >"...

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 gadi atpakaļ
vecāks
revīzija
fa11899fe6
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      Themes/default/index.template.php

+ 3 - 3
Themes/default/index.template.php

@@ -473,8 +473,8 @@ function template_menu()
 			foreach ($button['sub_buttons'] as $childbutton)
 			{
 				echo '
-						<li ', !empty($childbutton['sub_buttons']) ? 'class="subsections"' :'', '>
-							<a href="', $childbutton['href'], '" ' , isset($childbutton['target']) ? 'target="' . $childbutton['target'] . '"' : '', '>
+						<li', !empty($childbutton['sub_buttons']) ? ' class="subsections"' :'', '>
+							<a href="', $childbutton['href'], '"' , isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>
 								', $childbutton['title'], '
 							</a>';
 				// 3rd level menus :)
@@ -486,7 +486,7 @@ function template_menu()
 					foreach ($childbutton['sub_buttons'] as $grandchildbutton)
 						echo '
 								<li>
-									<a href="', $grandchildbutton['href'], '" ' , isset($grandchildbutton['target']) ? 'target="' . $grandchildbutton['target'] . '"' : '', '>
+									<a href="', $grandchildbutton['href'], '"' , isset($grandchildbutton['target']) ? ' target="' . $grandchildbutton['target'] . '"' : '', '>
 										', $grandchildbutton['title'], '
 									</a>
 								</li>';