Browse Source

Merge pull request #834 from Oldiesmann/release-2.1

! Weird space placement
Michael Eshom 11 years ago
parent
commit
213541dac1
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Themes/default/index.template.php

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

@@ -461,8 +461,8 @@ function template_menu()
 	foreach ($context['menu_buttons'] as $act => $button)
 	{
 		echo '
-				<li id="button_', $act, '" ', !empty($button['sub_buttons']) ? 'class="subsections"' :'', '>
-					<a class="', $button['active_button'] ? 'active' : '', '" href="', $button['href'], '" ', isset($button['target']) ? 'target="' . $button['target'] . '"' : '', '>
+				<li id="button_', $act, '"', !empty($button['sub_buttons']) ? ' class="subsections"' :'', '>
+					<a class="', $button['active_button'] ? 'active' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
 						', $button['title'], '
 					</a>';
 		if (!empty($button['sub_buttons']))
@@ -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>';