diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-27 20:42:13 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-27 20:42:13 +0000 |
commit | af6a52a90ee793c2597e71324472dd6cc140ae00 (patch) | |
tree | a0ab44532fb69c44998bfa49ff0455a66190c5f2 /views/default/canvas/layouts/widgets.php | |
parent | cfbd50961b7db8337adce45651b305b9635b91b7 (diff) | |
download | elgg-af6a52a90ee793c2597e71324472dd6cc140ae00.tar.gz elgg-af6a52a90ee793c2597e71324472dd6cc140ae00.tar.bz2 |
profile and dashboard pages altered for 3 widget columns
git-svn-id: https://code.elgg.org/elgg/trunk@1556 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/canvas/layouts/widgets.php')
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 96 |
1 files changed, 59 insertions, 37 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index 785ebabee..b8c06e132 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -187,54 +187,76 @@ Choose the features you want to add to your page by dragging them from the <b>Wi ?> -<!-- profile box --> -<?php echo $vars['area1']; ?> +<table cellspacing="0" id="widget_table"> + <tr> + <td colspan="2" align="left" valign="top"> + <!-- profile box --> + <?php echo $vars['area1']; ?> + </td> + <td rowspan="2" align="left" valign="top"> + <?php + if($_SESSION['user']->guid == page_owner()){ + ?> + <!-- customise page button --> + <a href="javascript:void(0);" class="toggle_customise_edit_panel">Edit page</a> + <!-- <div style="clear:both;"></div> --> + <?php + } + ?> -<!-- right sidebar --> -<div id="widgets_left"> + <div id="widgets_right"> + <!-- this is where we need another widget column adding --> + + </div><!-- /#widgets_right --> + </td> + </tr> + <tr> + <td align="left" valign="top"> - <?php - - if (is_array($area1widgets) && sizeof($area1widgets) > 0) - foreach($area1widgets as $widget) { - echo elgg_view_entity($widget); - } + <!-- left widgets --> + <div id="widgets_left"> + + <?php + + if (is_array($area1widgets) && sizeof($area1widgets) > 0) + foreach($area1widgets as $widget) { + echo elgg_view_entity($widget); + } + + ?> + + </div><!-- /#widgets_left --> - ?> + </td> + <td align="left" valign="top"> -</div><!-- /#widgets_left --> + <!-- widgets middle --> + <div id="widgets_middle"> + + <?php if (isset($vars['area2'])) echo $vars['area2']; ?> + <?php + + if (is_array($area2widgets) && sizeof($area2widgets) > 0) + foreach($area2widgets as $widget) { + echo elgg_view_entity($widget); + } + + ?> + + </div><!-- /#widgets_middle --> + + </td> + </tr> +</table> + + -<!-- main content --> -<div id="widgets_middle"> - - <?php if (isset($vars['area2'])) echo $vars['area2']; ?> - <?php - if (is_array($area2widgets) && sizeof($area2widgets) > 0) - foreach($area2widgets as $widget) { - echo elgg_view_entity($widget); - } - - ?> - -</div><!-- /#widgets_middle --> -<?php - if($_SESSION['user']->guid == page_owner()){ -?> - <!-- customise page button --> - <a href="javascript:void(0);" class="toggle_customise_edit_panel">Edit widgets</a> - <!-- <div style="clear:both;"></div> --> -<?php - } -?> -<div id="widgets_right"> -<!-- this is where we need another widget column adding --> -</div><!-- /#widgets_right --> <!-- <div class="clearfloat"></div> --> |