[Fusionforge-commits] FusionForge branch master updated. 424b21c8ff68b4317ed0c95a795be5341de56384
Franck VILLAUME
nerville at fusionforge.org
Wed Feb 26 23:14:59 CET 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 424b21c8ff68b4317ed0c95a795be5341de56384 (commit)
from eae7e5e21a0cd3d06f87977950335999d4a7f038 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 424b21c8ff68b4317ed0c95a795be5341de56384
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date: Wed Feb 26 23:14:39 2014 +0100
my: use html_{ao,ac,ap} and util_make_link helpers
diff --git a/src/www/my/index.php b/src/www/my/index.php
index b757720..4836b9d 100644
--- a/src/www/my/index.php
+++ b/src/www/my/index.php
@@ -49,12 +49,16 @@ $sql = "SELECT l.*
$res = db_query_params($sql,array('u', $user->getID()));
$layout_id = db_result($res, 0 , 'id');
-echo '<ul class="widget_toolbar">';
-$url = "/widgets/widgets.php?owner=u".$user->getID().
- "&layout_id=".$layout_id;
-echo ' <li ><a href="'. $url .'">'. _("Add widgets") .'</a></li>';
-echo ' <li><a href="'. $url.'&update=layout' .'">'. _("Customize Layout") .'</a></li>';
-echo '</ul>';
+echo html_ao('ul', array('class' => 'widget_toolbar'));
+$url = '/widgets/widgets.php?owner=u'.$user->getID().'&layout_id='.$layout_id;
+$labels = array(_('Add widgets'), _('Customize Layout'));
+$urls = array($url, $url.'&update=layout');
+for($i = 0; $i < count($urls); $i++) {
+ echo html_ao('li');
+ echo util_make_link($urls[$i], $labels[$i]);
+ echo html_ac(html_ap() -1);
+}
+echo html_ac(html_ap() - 1);
$lm = new WidgetLayoutManager();
$lm->displayLayout($user->getID(), WidgetLayoutManager::OWNER_TYPE_USER);
-----------------------------------------------------------------------
Summary of changes:
src/www/my/index.php | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list