summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-15 02:16:34 +0200
committerSem <sembrestels@riseup.net>2012-08-15 02:16:34 +0200
commit9e2436181c785c741fb4705ee7b3c3069bf5f1c7 (patch)
tree7620463d53f94c3d6e8ff444e2ad7651bd828992
parent405f0f8db9f72afed4c357a22c4dd99bea39c419 (diff)
downloadsaravea_theme-9e2436181c785c741fb4705ee7b3c3069bf5f1c7.tar.gz
saravea_theme-9e2436181c785c741fb4705ee7b3c3069bf5f1c7.tar.bz2
Added landing page.
-rw-r--r--_graphics/n1.pngbin0 -> 15662 bytes
-rw-r--r--index.php24
-rw-r--r--languages/ca.php10
-rw-r--r--languages/en.php10
-rw-r--r--languages/es.php10
-rw-r--r--start.php8
-rw-r--r--views/default/css/elements/typography.php1
-rw-r--r--views/default/n1_theme/css.php24
-rw-r--r--views/default/n1_theme/landing.php13
9 files changed, 99 insertions, 1 deletions
diff --git a/_graphics/n1.png b/_graphics/n1.png
new file mode 100644
index 0000000..5007358
--- /dev/null
+++ b/_graphics/n1.png
Binary files differ
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..2371b9a
--- /dev/null
+++ b/index.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Elgg index page for web-based applications
+ *
+ * @package Elgg
+ * @subpackage Core
+ */
+
+if (elgg_is_logged_in()) {
+ forward('activity');
+}
+
+$content = elgg_view('n1_theme/landing');
+$content .= elgg_view_title(elgg_echo('content:latest'));
+$content .= elgg_list_river();
+
+$login_box = elgg_view('core/account/login_box');
+
+$params = array(
+ 'content' => $content,
+ 'sidebar' => $login_box
+);
+$body = elgg_view_layout('one_sidebar', $params);
+echo elgg_view_page(null, $body);
diff --git a/languages/ca.php b/languages/ca.php
new file mode 100644
index 0000000..d175b2c
--- /dev/null
+++ b/languages/ca.php
@@ -0,0 +1,10 @@
+<?php
+
+$catalan = array(
+
+ 'n1_theme:landing:title' => '¡Xarxes socials del poble i per al poble!',
+ 'n1_theme:landing:subtitle' => 'Perquè "les eines de l\'amo mai desmontaràn la casa de l\'amo"',
+
+);
+
+add_translation("ca", $catalan);
diff --git a/languages/en.php b/languages/en.php
new file mode 100644
index 0000000..df3ff2d
--- /dev/null
+++ b/languages/en.php
@@ -0,0 +1,10 @@
+<?php
+
+$english = array(
+
+ 'n1_theme:landing:title' => '¡Social networks of people and for the people!',
+ 'n1_theme:landing:subtitle' => 'Because "the master\'s tools will never dismantle the master\'s house"',
+
+);
+
+add_translation("en", $english);
diff --git a/languages/es.php b/languages/es.php
new file mode 100644
index 0000000..fd23fb6
--- /dev/null
+++ b/languages/es.php
@@ -0,0 +1,10 @@
+<?php
+
+$spanish = array(
+
+ 'n1_theme:landing:title' => '¡Redes sociales del pueblo y para el pueblo!',
+ 'n1_theme:landing:subtitle' => 'Porque "las herramientas del amo nunca desmontarán la casa del amo"',
+
+);
+
+add_translation("es", $spanish);
diff --git a/start.php b/start.php
index 7346702..1a49da4 100644
--- a/start.php
+++ b/start.php
@@ -7,8 +7,16 @@ function n1_theme_init() {
$item = new ElggMenuItem('site_logo', elgg_get_site_entity()->name, elgg_get_site_url());
elgg_register_menu_item('topbar', $item);
elgg_register_plugin_hook_handler('register', 'menu:topbar', 'n1_theme_topbar_menu');
+
+ elgg_register_plugin_hook_handler('index', 'system', 'n1_theme_front_page');
+ elgg_extend_view('css', 'n1_theme/css');
}
function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){
//var_dump($returnvalue);exit();
}
+
+function n1_theme_front_page($hook, $type, $returnvalue, $params) {
+ include(elgg_get_plugins_path() . 'n1_theme/index.php');
+ return true;
+}
diff --git a/views/default/css/elements/typography.php b/views/default/css/elements/typography.php
index 38198bb..0da353f 100644
--- a/views/default/css/elements/typography.php
+++ b/views/default/css/elements/typography.php
@@ -76,7 +76,6 @@ blockquote {
}
h1, h2, h3, h4, h5, h6 {
- font-weight: bold;
color: #333;
}
diff --git a/views/default/n1_theme/css.php b/views/default/n1_theme/css.php
new file mode 100644
index 0000000..3f27d96
--- /dev/null
+++ b/views/default/n1_theme/css.php
@@ -0,0 +1,24 @@
+#n1-landing {
+ height: 250px;
+ background-image: url('<?php echo elgg_get_site_url(); ?>mod/n1_theme/_graphics/n1.png');
+ background-repeat: no-repeat;
+ display: table;
+ margin: 30px 0 50px 0;
+}
+
+#n1-landing-inner {
+ display: table-cell;
+ vertical-align: middle;
+ padding-left: 220px;
+
+}
+
+#n1-landing-title {
+ font-size: 1.7em;
+ font-weight: bold;
+}
+
+#n1-landing-subtitle {
+ font-size: 1.4em;
+ color: #666;
+}
diff --git a/views/default/n1_theme/landing.php b/views/default/n1_theme/landing.php
new file mode 100644
index 0000000..83132a9
--- /dev/null
+++ b/views/default/n1_theme/landing.php
@@ -0,0 +1,13 @@
+<?php
+
+$title = elgg_echo('n1_theme:landing:title');
+$subtitle = elgg_echo('n1_theme:landing:subtitle');
+
+echo <<<HTML
+<div id="n1-landing">
+<div id="n1-landing-inner">
+<p id="n1-landing-title">$title</p>
+<p id="n1-landing-subtitle">$subtitle</p>
+</div>
+</div>
+HTML;