summaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-10-21 04:53:27 +0000
committerroot <root@migration.vz.lan>2012-10-21 04:53:45 +0000
commitddc8e975c3bbbd535fcaa1d2914e4f64ec270dde (patch)
tree3313dfee939342cb5024025c6f013e2357f46c0c /views/default
parent783e0fe18980e3a428b3eef17817ec64e22b6c2c (diff)
downloadsaravea_theme-ddc8e975c3bbbd535fcaa1d2914e4f64ec270dde.tar.gz
saravea_theme-ddc8e975c3bbbd535fcaa1d2914e4f64ec270dde.tar.bz2
change theme to extend front page instead of redeclaring it.
Diffstat (limited to 'views/default')
-rw-r--r--views/default/n1_theme/header.php11
-rw-r--r--views/default/n1_theme/landing.php2
2 files changed, 13 insertions, 0 deletions
diff --git a/views/default/n1_theme/header.php b/views/default/n1_theme/header.php
new file mode 100644
index 0000000..5939df8
--- /dev/null
+++ b/views/default/n1_theme/header.php
@@ -0,0 +1,11 @@
+<?php
+
+$context = elgg_get_context();
+
+$title = $vars['title'];
+
+if ($context === 'main' && $title == elgg_echo('content:latest')) {
+
+ echo elgg_view('n1_theme/landing');
+
+}
diff --git a/views/default/n1_theme/landing.php b/views/default/n1_theme/landing.php
index 83132a9..132b275 100644
--- a/views/default/n1_theme/landing.php
+++ b/views/default/n1_theme/landing.php
@@ -1,5 +1,7 @@
<?php
+elgg_load_css('n1:landing_page');
+
$title = elgg_echo('n1_theme:landing:title');
$subtitle = elgg_echo('n1_theme:landing:subtitle');