From 9e2436181c785c741fb4705ee7b3c3069bf5f1c7 Mon Sep 17 00:00:00 2001 From: Sem Date: Wed, 15 Aug 2012 02:16:34 +0200 Subject: Added landing page. --- _graphics/n1.png | Bin 0 -> 15662 bytes index.php | 24 ++++++++++++++++++++++++ languages/ca.php | 10 ++++++++++ languages/en.php | 10 ++++++++++ languages/es.php | 10 ++++++++++ start.php | 8 ++++++++ views/default/css/elements/typography.php | 1 - views/default/n1_theme/css.php | 24 ++++++++++++++++++++++++ views/default/n1_theme/landing.php | 13 +++++++++++++ 9 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 _graphics/n1.png create mode 100644 index.php create mode 100644 languages/ca.php create mode 100644 languages/en.php create mode 100644 languages/es.php create mode 100644 views/default/n1_theme/css.php create mode 100644 views/default/n1_theme/landing.php diff --git a/_graphics/n1.png b/_graphics/n1.png new file mode 100644 index 0000000..5007358 Binary files /dev/null and b/_graphics/n1.png 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 @@ + $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 @@ + '¡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 @@ + '¡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 @@ + '¡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('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 @@ + +
+

$title

+

$subtitle

+
+ +HTML; -- cgit v1.2.3