]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added basic (stage1) site-wide navigation. Needs improving with a way for admin and...
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 9 Mar 2010 13:45:53 +0000 (13:45 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 9 Mar 2010 13:45:53 +0000 (13:45 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5326 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/thewire/languages/en.php
views/default/css.php
views/default/navigation/site_nav.php [moved from views/default/navigation/main_nav.php with 77% similarity]
views/default/page_elements/elgg_header.php

index c2e23d04fd3a2295ef1e4c27b81b7e14389b012d..23e243716f8f927bf2ae42b31851da3fb03bcf76 100644 (file)
@@ -6,6 +6,7 @@
                 * Menu items and titles
                 */
        
+                       'thewire:title' => "The Wire",
                        'thewire' => "My wire posts",
                        'thewire:user' => "%s's wire posts",
                        'thewire:posttitle' => "%s's notes on the wire: %s",
index 3fe37b959671c5350cbace12f7a675fe0ed20e6e..aac5008717e7c9c33a3fcb2a22132c84cef2084c 100644 (file)
        ELGG TOPBAR                                     elgg topbar
        TOOLS MENU                                      drop-down tools menu in topbar
        HEADER CONTENTS
+       ELGG SITE NAVIGATION            Primary site navigation in header
        FOOTER CONTENTS
        SYSTEM MESSAGES                         system messages overlay
        BREADCRUMBS
        SUBMENU                                         current page/tool submenu in sidebar
        PAGINATION                                      re-usable default page navigation
-       ELGG TABBED NAVIGATION          primary tabbed elgg navigation in header
+       ELGG TABBED NAVIGATION          re-usable tabbed navigation
        LOGIN / REGISTER                        login box, register, and lost password page styles
        CONTENT HEADER
        ENTITY LISTINGS                         elgg's default entity listings
@@ -328,63 +329,6 @@ h2 {
 }
 
 
-
-/* ***************************************
-       ELGG MAIN NAVIGATION in header
-*************************************** */
-.navigation,
-.navigation ul {
-       margin:0;
-       padding:0;
-       display:inline;
-       float:left;
-       list-style-type: none;
-       z-index: 7000;
-       position: relative;
-}
-.navigation li {
-       list-style: none;
-       font-weight: bold;
-       position: relative;
-       display:block;
-       height:23px;
-       float:left;
-       margin:0;
-       padding:0;
-}
-.navigation a {
-       display:block;
-}
-.navigation a {
-       color:white;
-       margin:0 1px 0 0px;
-       text-decoration:none;
-       font-weight: bold;
-       font-size: 1em;
-       padding:3px 13px 0px 13px;
-       height:20px;
-}
-.navigation li a.hover,
-.navigation a:hover {
-       background:white;
-       color:#43575e;
-       -moz-border-radius-topleft:4px;
-       -moz-border-radius-topright:4px;
-       -webkit-border-top-left-radius:4px;
-       -webkit-border-top-right-radius:4px;
-}
-.navigation li.selected a {
-       background:white;
-       color:#43575e;
-       -moz-border-radius-topleft:4px;
-       -moz-border-radius-topright:4px;
-       -webkit-border-top-left-radius:4px;
-       -webkit-border-top-right-radius:4px;
-       margin-top:2px;
-}
-
-
-
 /* ***************************************
   ELGG TOPBAR
 *************************************** */
@@ -589,6 +533,61 @@ h2 {
 }
 
 
+/* ***************************************
+       ELGG SITE NAVIGATION in header
+*************************************** */
+.navigation,
+.navigation ul {
+       margin:0;
+       padding:0;
+       display:inline;
+       float:left;
+       list-style-type: none;
+       z-index: 7000;
+       position: relative;
+}
+.navigation li {
+       list-style: none;
+       font-weight: bold;
+       position: relative;
+       display:block;
+       height:23px;
+       float:left;
+       margin:0;
+       padding:0;
+}
+.navigation a {
+       display:block;
+}
+.navigation a {
+       color:white;
+       margin:0 1px 0 0px;
+       text-decoration:none;
+       font-weight: bold;
+       font-size: 1em;
+       padding:3px 13px 0px 13px;
+       height:20px;
+}
+.navigation li a.hover,
+.navigation a:hover {
+       background:white;
+       color:#43575e;
+       -moz-border-radius-topleft:4px;
+       -moz-border-radius-topright:4px;
+       -webkit-border-top-left-radius:4px;
+       -webkit-border-top-right-radius:4px;
+}
+.navigation li.selected a {
+       background:white;
+       color:#43575e;
+       -moz-border-radius-topleft:4px;
+       -moz-border-radius-topright:4px;
+       -webkit-border-top-left-radius:4px;
+       -webkit-border-top-right-radius:4px;
+       margin-top:2px;
+}
+
+
 /* ***************************************
        FOOTER CONTENTS
 *************************************** */
@@ -997,7 +996,8 @@ p.entity_subtext {
 
 
 /* ***************************************
-       USER SETTINGS & ADMIN AREA
+       USER SETTINGS & ADMIN AREA 
+       @todo - pull admin css into stand-alone css
 *************************************** */
 /* GENERAL STYLES */
 .user_settings,
similarity index 77%
rename from views/default/navigation/main_nav.php
rename to views/default/navigation/site_nav.php
index 42796ef9a9157345f4c2b5d346a6d22eec84e555..de37038cf1f9a9009d92c8d03aa63d0ed6c8ab18 100644 (file)
@@ -1,15 +1,11 @@
 <?php
 /**
- * Main navigation bar
+ * Main site-wide navigation
  **/
  
 echo "<div id='elgg_main_nav' class='clearfloat'>";
 echo "<ul class='navigation'>";
-//if(get_context() == 'home')
-//     $selected = "class=selected";
-//else
-//     $selected = "";
-//echo "<li {$selected}><a href=\"{$vars['url']}\" id='home'><span>Home</span></a></li>";
+
 if(is_plugin_enabled('riverdashboard')){
        if(get_context() == 'riverdashboard')
                $selected = 'class="selected"';
@@ -22,7 +18,7 @@ if(is_plugin_enabled('thewire') && isloggedin()){
                $selected = 'class="selected"';
        else
                $selected = "";
-       echo "<li {$selected}><a href=\"{$vars['url']}mod/thewire/all.php\" id='thewire'><span>" . elgg_echo('thewire') . "</span></a></li>";
+       echo "<li {$selected}><a href=\"{$vars['url']}mod/thewire/everyone.php\" id='thewire'><span>" . elgg_echo('thewire:title') . "</span></a></li>";
 }
 if(is_plugin_enabled('blog')){
        if(get_context() == 'blog')
@@ -57,7 +53,7 @@ if(is_plugin_enabled('groups')){
                $selected = 'class="selected"';
        else
                $selected = "";
-       echo "<li {$selected}><a href=\"{$vars['url']}pg/groups/all/\" id='groups'><span>". elgg_echo('groups') . "</span></a></li>";
+       echo "<li {$selected}><a href=\"{$vars['url']}pg/groups/world/\" id='groups'><span>". elgg_echo('groups') . "</span></a></li>";
 }
 echo "</ul>";
 echo "</div>";
index 0f99334df52243f19d09d033dd5873db39fce13c..0733268f4f1b6156fc0310de2b63981353bf9e43 100644 (file)
@@ -10,6 +10,8 @@
                <!-- display site name -->
                <h1><a href="<?php echo $vars['url']; ?>"><?php echo $vars['config']->sitename; ?></a></h1>
                <?php
+                       // insert site-wide navigation
+                       echo elgg_view('navigation/site_nav');
                        // insert a view which can be extended
                        echo elgg_view('header/extend');
                ?>