--- /dev/null
+<?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);
--- /dev/null
+<?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);
--- /dev/null
+<?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);
--- /dev/null
+<?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);
$item = new ElggMenuItem('site_logo', elgg_get_site_entity()->name, elgg_get_site_url());\r
elgg_register_menu_item('topbar', $item);\r
elgg_register_plugin_hook_handler('register', 'menu:topbar', 'n1_theme_topbar_menu');\r
+ \r
+ elgg_register_plugin_hook_handler('index', 'system', 'n1_theme_front_page');\r
+ elgg_extend_view('css', 'n1_theme/css');\r
}\r
\r
function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){\r
//var_dump($returnvalue);exit();\r
}\r
+\r
+function n1_theme_front_page($hook, $type, $returnvalue, $params) {\r
+ include(elgg_get_plugins_path() . 'n1_theme/index.php');\r
+ return true;\r
+}\r
}
h1, h2, h3, h4, h5, h6 {
- font-weight: bold;
color: #333;
}
--- /dev/null
+#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;
+}
--- /dev/null
+<?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;