aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
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>