[Fusionforge-commits] r14249 - trunk/src/common/widget

Olivier Berger olberger at fusionforge.org
Fri Aug 26 12:54:59 CEST 2011


Author: olberger
Date: 2011-08-26 12:54:59 +0200 (Fri, 26 Aug 2011)
New Revision: 14249

Modified:
   trunk/src/common/widget/WidgetLayoutManager.class.php
Log:
Bits of comments

Modified: trunk/src/common/widget/WidgetLayoutManager.class.php
===================================================================
--- trunk/src/common/widget/WidgetLayoutManager.class.php	2011-08-26 10:54:53 UTC (rev 14248)
+++ trunk/src/common/widget/WidgetLayoutManager.class.php	2011-08-26 10:54:59 UTC (rev 14249)
@@ -236,15 +236,18 @@
 		while($data = db_fetch_array($res)) {
 			$used_widgets[] = $data['name'];
 		}
+		// display contextual toolbar
 		echo '<ul class="widget_toolbar">';
 		$url = "/widgets/widgets.php?owner=".HTTPRequest::instance()->get('owner').
 			"&layout_id=".HTTPRequest::instance()->get('layout_id');
 
 		if ($update_layout = HTTPRequest::instance()->get('update') == 'layout') {
+			// customized selected
 			echo '<li><a href="'. $url .'">'. _("Add widgets") .'</a></li>';
 			echo '<li class="current"><a href="'. $url.'&update=layout' .'">'. _("Customize layout") .'</a></li>';
 			$action = 'layout';
 		} else {
+			// add selected, or default when first displayed
 			echo '<li class="current"><a href="'. $url .'">'. _("Add widgets") .'</a></li>';
 			echo '<li><a href="'. $url.'&update=layout' .'">'. _("Customize layout") .'</a></li>';
 			$action = 'widget';




More information about the Fusionforge-commits mailing list