[guadec-web] added navigation menu



commit 0bf0297820655b3a3c01d166732530c9c7db7433
Author: Andreas Nilsson <anilsson redhat com>
Date:   Mon Apr 29 10:27:05 2013 -0300

    added navigation menu

 wordcamp-base/lib/structure/class-wcb-header.php |   16 +++++---
 wordcamp-base/style.css                          |   46 ++++++++++++++++++----
 2 files changed, 48 insertions(+), 14 deletions(-)
---
diff --git a/wordcamp-base/lib/structure/class-wcb-header.php 
b/wordcamp-base/lib/structure/class-wcb-header.php
index da61a85..9066f05 100644
--- a/wordcamp-base/lib/structure/class-wcb-header.php
+++ b/wordcamp-base/lib/structure/class-wcb-header.php
@@ -7,13 +7,17 @@ class WCB_Header extends WCB_Element {
 
        function content() { ?>
                <div id="<?php echo $this->get_id(); ?>">
-                       <div class="grid_4 event-location">Brno, Czech Republic</div>
-                       <div class="grid_4 event-logo">&nbsp;</div>
-                       <div class="grid_4 event-date">August 1 - 8, 2013</div>
-                       <div class="clear"></div>
-                       <div class="grid_12 branding-buildings">&nbsp;</div>
+            <div class="event-logo">
+               <a class="event-logo-link" href="<?php echo home_url(); ?>"></a>
+            </div>
+            <?php 
+                               wp_nav_menu(array(              
+                                               'menu'=>'main',
+                                               'container_class'=>'main_navigation')
+                               ); 
+                       ?>
                </div><!-- #header -->
-       <?php
+    <?php
        }
 }
 
diff --git a/wordcamp-base/style.css b/wordcamp-base/style.css
index b235e18..11f80dd 100644
--- a/wordcamp-base/style.css
+++ b/wordcamp-base/style.css
@@ -1364,17 +1364,43 @@ code {
 
 /* Custom stuff */
 
-#header {
-       height: 100px !important;
-}
-
 .event-logo {
-       width: 244px;
-       display: block;
+       width: 230px;
+       display: table-cell;
        background: url("images/logo.png") no-repeat center center;
        height: 65px;
 }
 
+.event-logo-link {
+       display: block;
+       height: 100%;
+       width: 100%;
+}
+
+.main_navigation {
+       display: table-cell;    
+}
+
+.main_navigation li {
+       list-style: none;
+       display: inline;
+       padding-right: 0.25em;
+       padding-top: 40px;
+       padding-bottom: 20px;
+       font-size: large;
+       color: #6b8e9f;
+       vertical-align: middle;
+}
+
+.main_navigation li:before {
+       content: "• ";
+}
+
+.main_navigation a:link,
+.main_navigation a:visited {
+       color: #6b8e9f;
+}
+
 .event-location,
 .event-date {
        padding-top: 38px;
@@ -1395,7 +1421,7 @@ code {
     height: 177px;
        widht: 940px;
        background: url("images/buildings.png");
-       margin-top: 30px;
+       margin-bottom: 20px;
 }
 
 ul {
@@ -1440,6 +1466,10 @@ body, input, textarea, .page-title span, .pingback a.url, h3#comments-title, h3#
        color: #fff;
 }
 
+#content-row {
+       padding-top: 0 !important;
+}
+
 #content-row,
 #after-header, #before-content, #after-content,
 .entry-content, .entry-summary {
@@ -1461,4 +1491,4 @@ body {
 
 #after-header-container {
        display: none;
-}
\ No newline at end of file
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]