aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-29 13:12:29 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-29 13:12:29 +0000
commit81ea240cfa86266725f3984dc9985e7eea0b3eb9 (patch)
tree83f24bcac990c7387741ee8aa14ae9c0b6c39333
parentc5d535f4e09e5ee603bc070e54b4794b709e26d2 (diff)
downloadelgg-81ea240cfa86266725f3984dc9985e7eea0b3eb9.tar.gz
elgg-81ea240cfa86266725f3984dc9985e7eea0b3eb9.tar.bz2
widget layout help context sensitive.
git-svn-id: https://code.elgg.org/elgg/trunk@1567 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--languages/en.php1
-rw-r--r--views/default/canvas/layouts/widgets.php14
2 files changed, 11 insertions, 4 deletions
diff --git a/languages/en.php b/languages/en.php
index 14b567662..c50d8b155 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -424,6 +424,7 @@
'layout:customise' => "Customise layout",
'widgets:gallery' => "Widget gallery",
'widgets:leftcolumn' => "Left widgets",
+ 'widgets:fixed' => "Fixed position",
'widgets:middlecolumn' => "Middle widgets",
'widgets:rightcolumn' => "Right widgets",
'widgets:profilebox' => "Profile box",
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php
index 7201d2e19..a4a91a4c6 100644
--- a/views/default/canvas/layouts/widgets.php
+++ b/views/default/canvas/layouts/widgets.php
@@ -86,10 +86,16 @@ Choose the features you want to add to your page by dragging them from the <b>Wi
<td colspan="2" align="left" valign="top">
- <h2 class="profile_box"><?php echo elgg_echo("widgets:profilebox"); ?></h2>
- <div id="profile_box_widgets">
- <p><small>(Fixed position on page)</small></p>
- </div>
+ <?php
+ if(get_context() == "profile"){
+ ?>
+ <h2 class="profile_box"><?php echo elgg_echo("widgets:profilebox"); ?></h2>
+ <div id="profile_box_widgets">
+ <p><small>(<?php echo elgg_echo("widgets:fixed"); ?>)</small></p>
+ </div>
+ <?php
+ }
+ ?>
</td>