[gnome-web-www] new foundation navigation submenu by Saumya Dwivedi. Fixes bgo #671795



commit a91f0116d7b95936e373fa0d11730fc277e6bc40
Author: Andreas Nilsson <anilsson redhat com>
Date:   Thu Apr 25 11:18:39 2013 -0300

    new foundation navigation submenu by Saumya Dwivedi. Fixes bgo #671795

 theme/one-column-with-nav.php |   31 ++++++++++++++++++++
 theme/page-apply.php          |    8 ++++-
 theme/style.css               |   63 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 100 insertions(+), 2 deletions(-)
---
diff --git a/theme/one-column-with-nav.php b/theme/one-column-with-nav.php
new file mode 100644
index 0000000..73d169e
--- /dev/null
+++ b/theme/one-column-with-nav.php
@@ -0,0 +1,31 @@
+<?php
+/*
+Template Name: One Column with Foundation Navigation
+*/
+
+require_once("header.php"); ?>
+
+    <!-- container -->
+    <div id="container" class="two_columns">
+        <div class="container_12">
+          <div id = "foundation">
+            <div class="page_title" style="margin-bottom: 2px;">
+                <h1><?php the_title(); ?></h1>
+            </div>
+           <div class="clearfix"></div>
+            <?php wp_nav_menu(array('menu'=>'foundationnav','container_class'=>'foundation_nav')); ?>
+            <div class="content without_sidebar">
+            <?php while ( have_posts() ) : the_post(); ?>
+                <?php the_content(); ?>
+            <?php endwhile; // End the loop. Whew. ?>
+                <br />
+                <div class="clear"></div>
+            </div>
+           </div> 
+            <?php require_once("footer_art.php"); ?>
+        </div>
+    </div>
+    <div class="clearfix"></div>
+    <?php require_once("footer.php"); ?>
+</body>
+</html>
diff --git a/theme/page-apply.php b/theme/page-apply.php
index 21d3136..5bedc04 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -62,8 +62,12 @@ if (array_key_exists('submit', $_POST)) {
 <!-- container -->
     <div id="container" class="two_columns">
         <div class="container_12">
-        
-            <?php require_once('inc/page-title.php'); ?>
+
+ <div class="page_title" style="margin-bottom: 2px;">
+                <h1><?php the_title(); ?></h1>
+            </div>        
+<div class="clearfix"></div>
+            <?php wp_nav_menu(array('menu'=>'foundationnav','container_class'=>'foundation_nav')); ?>
             
             <div class="content without_sidebar">
             
diff --git a/theme/style.css b/theme/style.css
index 5756886..f22ce1c 100644
--- a/theme/style.css
+++ b/theme/style.css
@@ -242,7 +242,70 @@ a:visited {
 }
 
 
+/* Foundation Navigation Menu */
+/* ========================================================================== */
+
+#foundation h1, h2, h3, h4{
+    color: #8c5f93;
+}
+.foundation_nav{
+    background: #fff repeat-x;
+    padding: 0px 0;
+    margin-top: 7px;
+    margin-bottom: 40px;
+    margin-left: 40px;
+    margin-right: -7px;
+    font-size: 14px;
+    line-height: normal;
+}
 
+.foundation_nav ul {
+    list-style: none;
+    margin: 0;
+    padding: 0 0px;
+}
+
+.foundation_nav ul li {
+    display: inline;
+    margin: 0 3% 0 0;
+}
+
+.foundation_nav a {
+    color: #8c5f93;
+    text-decoration: none;
+    padding: 4px 30px;
+    -moz-border-radius: 7px;
+    -webkit-border-radius: 7px;
+    border-radius: 7px;
+    outline: 0;
+}
+
+.foundation_nav a:hover {
+    text-decoration: underline;
+}
+.foundation_nav a:focus {
+    background: #8c5f93;
+    color: #fff;
+}
+
+.foundation_nav a:active, .foundation_nav li.current-menu-item a, .foundation_nav li.current-page-ancestor a 
{
+    text-decoration: none;
+    background: #8c5f93;
+    color: #fff;
+    -moz-box-shadow: inset 0 -1px 0 rgba(100%,100%,100%, 0.4), inset 0 1px 3px rgba(0,0,0,0.4);
+    -webkit-box-shadow: inset 0 -1px 0 rgba(100%,100%,100%, 0.4), inset 0 1px 3px rgba(0,0,0,0.4);
+    box-shadow: inset 0 -1px 0 rgba(100%,100%,100%, 0.4), inset 0 1px 3px rgba(0,0,0,0.4);
+}
+
+.foundation_nav li.selected a {
+    font-weight: bold;
+}
+.foundation_nav li a span.home {
+    background: url("images/top_bar-item-home.png") no-repeat;
+    padding-left: 18px;
+}
+
+/* ========================================================================== */
 /* Page Title */
 /* ========================================================================== */
 


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