From 1ec8a5504a0f9ecb67ed1b932d9e4f41226b6c94 Mon Sep 17 00:00:00 2001 From: Sem Date: Wed, 15 Aug 2012 04:15:00 +0200 Subject: Worked on header. --- _graphics/n1_small.png | Bin 0 -> 5133 bytes index.php | 2 ++ start.php | 4 +++- views/default/css/elements/layout.php | 4 ++-- views/default/css/n1_theme/landing.php | 32 ++++++++++++++++++++++++++++++++ views/default/n1_theme/css.php | 24 ------------------------ 6 files changed, 39 insertions(+), 27 deletions(-) create mode 100644 _graphics/n1_small.png create mode 100644 views/default/css/n1_theme/landing.php delete mode 100644 views/default/n1_theme/css.php diff --git a/_graphics/n1_small.png b/_graphics/n1_small.png new file mode 100644 index 0000000..0dc8be7 Binary files /dev/null and b/_graphics/n1_small.png differ diff --git a/index.php b/index.php index 2371b9a..0716540 100644 --- a/index.php +++ b/index.php @@ -10,6 +10,8 @@ if (elgg_is_logged_in()) { forward('activity'); } +elgg_load_css('n1:landing_page'); + $content = elgg_view('n1_theme/landing'); $content .= elgg_view_title(elgg_echo('content:latest')); $content .= elgg_list_river(); diff --git a/start.php b/start.php index 1a49da4..c7dae0e 100644 --- a/start.php +++ b/start.php @@ -9,7 +9,9 @@ function n1_theme_init() { 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'); + + elgg_register_simplecache_view('n1_theme/landing'); + elgg_register_css('n1:landing_page', elgg_get_simplecache_url('css', 'n1_theme/landing')); } function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){ diff --git a/views/default/css/elements/layout.php b/views/default/css/elements/layout.php index c19666f..d332437 100644 --- a/views/default/css/elements/layout.php +++ b/views/default/css/elements/layout.php @@ -42,8 +42,7 @@ body { /***** TOPBAR ******/ .elgg-page-topbar { - background: #333333 url(_graphics/toptoolbar_background.gif) repeat-x top left; - border-bottom: 1px solid #000000; + background-color: #27282d; position: relative; height: 24px; z-index: 9000; @@ -74,6 +73,7 @@ body { } .elgg-page-header > .elgg-inner { position: relative; + background: transparent url(mod/n1_theme/_graphics/n1_small.png) no-repeat 650px bottom; } /***** PAGE BODY LAYOUT ******/ diff --git a/views/default/css/n1_theme/landing.php b/views/default/css/n1_theme/landing.php new file mode 100644 index 0000000..1e8c9d1 --- /dev/null +++ b/views/default/css/n1_theme/landing.php @@ -0,0 +1,32 @@ +#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; +} + +#login-dropdown { + display:none; +} + +.elgg-page-header > .elgg-inner { + background-image: none; +} diff --git a/views/default/n1_theme/css.php b/views/default/n1_theme/css.php deleted file mode 100644 index 3f27d96..0000000 --- a/views/default/n1_theme/css.php +++ /dev/null @@ -1,24 +0,0 @@ -#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; -} -- cgit v1.2.3