aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 18:32:01 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 18:32:01 +0000
commit68401c4223492e522630f576884abd6709039a4c (patch)
tree620c19d5ca4a9ba083d49d6e3d7c1ba03744ad1a /views/default/page_elements
parent48256fa6a7b568acc4f62ee8d42884b2e7f39f7a (diff)
downloadelgg-68401c4223492e522630f576884abd6709039a4c.tar.gz
elgg-68401c4223492e522630f576884abd6709039a4c.tar.bz2
Plugins can set their own context
git-svn-id: https://code.elgg.org/elgg/trunk@1038 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements')
-rw-r--r--views/default/page_elements/spotlight.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/views/default/page_elements/spotlight.php b/views/default/page_elements/spotlight.php
index 3a77f4067..2882e4755 100644
--- a/views/default/page_elements/spotlight.php
+++ b/views/default/page_elements/spotlight.php
@@ -26,7 +26,19 @@
<p>Here's all the edit controls for this widget</p>
</div><!-- /collapsable_box_editpanel -->
<div class="collapsable_box_content">
- <p><img src="<?php echo $vars['url']; ?>_graphics/spacer.gif" border="0" width=100% height=184px /></p>
+<?php
+
+ $context = get_context();
+ if (!empty($context) && elgg_view_exists("spotlight/{$context}")) {
+ echo elgg_view("spotlight/{$context}");
+ } else {
+ echo elgg_view("spotlight/default");
+ }
+
+
+
+
+?>
</div><!-- /.collapsable_box_content -->
</div><!-- /.collapsable_box -->