]> gitweb.fluxo.info Git - lorea/saravea_theme.git/commitdiff
Worked on header.
authorSem <sembrestels@riseup.net>
Wed, 15 Aug 2012 02:15:00 +0000 (04:15 +0200)
committerSem <sembrestels@riseup.net>
Wed, 15 Aug 2012 02:15:00 +0000 (04:15 +0200)
_graphics/n1_small.png [new file with mode: 0644]
index.php
start.php
views/default/css/elements/layout.php
views/default/css/n1_theme/landing.php [moved from views/default/n1_theme/css.php with 80% similarity]

diff --git a/_graphics/n1_small.png b/_graphics/n1_small.png
new file mode 100644 (file)
index 0000000..0dc8be7
Binary files /dev/null and b/_graphics/n1_small.png differ
index 2371b9a921f77f61c6d5fae258de52f525feebfa..0716540181b3b6abe3645f5cded5fe7a89be9617 100644 (file)
--- 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();
index 1a49da463917ac71da005ec0ea27e488aa053e5c..c7dae0e89e57edd097e6e7787278f99566d75977 100644 (file)
--- 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');\r
        \r
        elgg_register_plugin_hook_handler('index', 'system', 'n1_theme_front_page');\r
-       elgg_extend_view('css', 'n1_theme/css');\r
+       \r
+       elgg_register_simplecache_view('n1_theme/landing');\r
+       elgg_register_css('n1:landing_page', elgg_get_simplecache_url('css', 'n1_theme/landing'));\r
 }\r
 \r
 function n1_theme_topbar_menu($hook, $type, $returnvalue, $params){\r
index c19666facf8253964b41c972e4d56bf616cc96c5..d3324371b87636370f455c8ea4c6194013dbd4a6 100644 (file)
@@ -42,8 +42,7 @@ body {
 
 /***** TOPBAR ******/
 .elgg-page-topbar {
-       background: #333333 url(<?php echo elgg_get_site_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(<?php echo elgg_get_site_url(); ?>mod/n1_theme/_graphics/n1_small.png) no-repeat 650px bottom;
 }
 
 /***** PAGE BODY LAYOUT ******/
similarity index 80%
rename from views/default/n1_theme/css.php
rename to views/default/css/n1_theme/landing.php
index 3f27d962b42550be1b0de149a01f52d4671e292e..1e8c9d1af80cb2f9fb012536973836a81e0af3e1 100644 (file)
        font-size: 1.4em;
        color: #666;
 }
+
+#login-dropdown {
+       display:none;
+}
+
+.elgg-page-header > .elgg-inner {
+       background-image: none;
+}