aboutsummaryrefslogtreecommitdiff
path: root/views/default
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
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')
-rw-r--r--views/default/page_elements/spotlight.php14
-rw-r--r--views/default/spotlight/default.php17
2 files changed, 30 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 -->
diff --git a/views/default/spotlight/default.php b/views/default/spotlight/default.php
new file mode 100644
index 000000000..6e4eace84
--- /dev/null
+++ b/views/default/spotlight/default.php
@@ -0,0 +1,17 @@
+<?php
+
+ /**
+ * Elgg default spotlight
+ * The spotlight area that displays across the site
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ */
+?>
+
+ <p><img src="<?php echo $vars['url']; ?>_graphics/spacer.gif" border="0" width=100% height=184px /></p>