[Fusionforge-commits] r12827 - trunk/src/www/include

Roland Mas lolando at fusionforge.org
Thu Mar 17 11:49:20 CET 2011


Author: lolando
Date: 2011-03-17 11:49:20 +0100 (Thu, 17 Mar 2011)
New Revision: 12827

Modified:
   trunk/src/www/include/login-form.php
Log:
Only use tabber when there are several forms to display

Modified: trunk/src/www/include/login-form.php
===================================================================
--- trunk/src/www/include/login-form.php	2011-03-17 10:47:09 UTC (rev 12826)
+++ trunk/src/www/include/login-form.php	2011-03-17 10:49:20 UTC (rev 12827)
@@ -73,16 +73,28 @@
 		echo '</p>';
 	}
 
-	echo '<div id="tabber" class="tabber">';
+	
+	if (count ($params['html_snippets']) > 1) {
+		$use_tabber = true;
+		echo '<div id="tabber" class="tabber">';
+	} else {
+		$use_tabber = false;
+	}
 
 	foreach ($params['html_snippets'] as $p => $s) {
 		$plugin = plugin_get_object($p);
-		echo '<div class="tabbertab" title="'.$plugin->text.'">';
+		if ($use_tabber) {
+			echo '<div class="tabbertab" title="'.$plugin->text.'">';
+		}
 		echo $s;
+		if ($use_tabber) {
+			echo '</div>';
+		}
+	}
+	
+	if ($use_tabber) {
 		echo '</div>';
 	}
-	
-	echo '</div>';
 
 	if (!$formonly) {
 		$HTML->footer(array());




More information about the Fusionforge-commits mailing list