aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>