[gnomeweb-wp] - created style for action_button - added custom page template for one column with and without subme



commit 326c641508b83fcc5d3f5e466d88d3a0f8097334
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Sun Sep 12 01:57:34 2010 -0300

    - created style for action_button
    - added custom page template for one column with and without submenu by the side of the title
    - fixed css for submenu inside page_title

 wp-content/themes/gnome-grass/home.php             |    4 +-
 .../themes/gnome-grass/images/action_button-bg.png |  Bin 0 -> 172 bytes
 .../themes/gnome-grass/one-column-with-submenu.php |   56 ++++++++++++++++++++
 wp-content/themes/gnome-grass/one-column.php       |   32 +++++++++++
 wp-content/themes/gnome-grass/single-column.php    |   45 ----------------
 wp-content/themes/gnome-grass/style.css            |   33 +++++++++++-
 6 files changed, 120 insertions(+), 50 deletions(-)
---
diff --git a/wp-content/themes/gnome-grass/home.php b/wp-content/themes/gnome-grass/home.php
index 66e913e..67fe93c 100644
--- a/wp-content/themes/gnome-grass/home.php
+++ b/wp-content/themes/gnome-grass/home.php
@@ -1,7 +1,5 @@
 <?php
-/*
-Template Name: Single Column
-*/
+
 
 require_once("header.php"); ?>
 
diff --git a/wp-content/themes/gnome-grass/images/action_button-bg.png b/wp-content/themes/gnome-grass/images/action_button-bg.png
new file mode 100644
index 0000000..8c6133d
Binary files /dev/null and b/wp-content/themes/gnome-grass/images/action_button-bg.png differ
diff --git a/wp-content/themes/gnome-grass/one-column-with-submenu.php b/wp-content/themes/gnome-grass/one-column-with-submenu.php
new file mode 100644
index 0000000..71af7ad
--- /dev/null
+++ b/wp-content/themes/gnome-grass/one-column-with-submenu.php
@@ -0,0 +1,56 @@
+<?php
+/*
+Template Name: One Column with submenu in the title
+*/
+
+
+require_once("header.php"); ?>
+
+    <!-- container -->
+    <div id="container" class="two_columns">
+        <div class="container_12">
+        
+            <div class="page_title with_subpages_list">
+                <h1><?php the_title(); ?></h1>
+                
+                <ul class="subpages_list">
+                    <?php
+                    $parent_id  = $post->post_parent;
+                    $breadcrumbs = array();
+                    while ($parent_id) {
+                        $page = get_page($parent_id);
+                        $breadcrumbs[] = get_page($parent_id);
+                        $parent_id  = $page->post_parent;
+                    }
+                    $breadcrumbs = array_reverse($breadcrumbs);
+                    $first_page = $breadcrumbs[0];
+                    
+                    
+                    if($first_page->ID != '') {
+                        wp_list_pages(array('title_li' => '', 'depth' => 1, 'include' => $first_page->ID));
+                        wp_list_pages(array('title_li' => '', 'depth' => 1, 'child_of' => $first_page->ID));
+                    } else {
+                        wp_list_pages(array('title_li' => '', 'depth' => 1, 'include' => $post->ID));
+                        wp_list_pages(array('title_li' => '', 'depth' => 1, 'child_of' => $post->ID));
+                    }
+                    ?>
+                </ul>
+            </div>
+            
+            <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>
+            
+            <?php require_once("footer_art.php"); ?>
+        </div>
+    </div>
+    
+    <div class="clearfix"></div>
+    
+    <?php require_once("footer.php"); ?>
+</body>
+</html>
diff --git a/wp-content/themes/gnome-grass/one-column.php b/wp-content/themes/gnome-grass/one-column.php
new file mode 100644
index 0000000..972aee8
--- /dev/null
+++ b/wp-content/themes/gnome-grass/one-column.php
@@ -0,0 +1,32 @@
+<?php
+/*
+Template Name: One Column
+*/
+
+require_once("header.php"); ?>
+
+    <!-- container -->
+    <div id="container" class="two_columns">
+        <div class="container_12">
+        
+            <div class="page_title">
+                <h1><?php the_title(); ?></h1>
+            </div>
+            
+            <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>
+            
+            <?php require_once("footer_art.php"); ?>
+        </div>
+    </div>
+    
+    <div class="clearfix"></div>
+    
+    <?php require_once("footer.php"); ?>
+</body>
+</html>
diff --git a/wp-content/themes/gnome-grass/style.css b/wp-content/themes/gnome-grass/style.css
index 25a64b5..97e5ba6 100644
--- a/wp-content/themes/gnome-grass/style.css
+++ b/wp-content/themes/gnome-grass/style.css
@@ -198,6 +198,13 @@ a:visited {
 .page_title h1 a:hover {
     text-decoration: underline;
 }
+.page_title.with_subpages_list {
+    display: table-row;
+}
+.page_title.with_subpages_list h1 {
+    display: table-cell;
+    width: 100%;
+}
 
 /* -> subpages list */
 
@@ -236,8 +243,7 @@ a:visited {
    -webkit-border-radius: 4px;
    border-radius: 4px;
 }
-.page_title .subpages_list li a.active,
-.page_title .subpages_list li a.navTreeCurrentItem {
+.page_title .subpages_list li.current_page_item a {
    font-weight: bold;
 }
 
@@ -551,6 +557,29 @@ dl.icon_list dt img {
    margin: 0 10px 0 -58px;
 }
 
+
+/* -> Action Button */
+
+
+.action_button {
+    display: inline-block;
+    padding: 3px 12px;
+    border: 1px solid #ccc;
+    background: #ececec url(images/action_button-bg.png) center repeat-x;
+    -moz-border-radius: 15px;
+    -webkit-border-radius: 15px;
+    color: #2e3436;
+    text-shadow: 0 1px 0 #fff;
+    text-decoration: none;
+    -webkit-transition: background-position 200ms linear;
+    -moz-box-shadow: inset 0 1px 0 #fff;
+    -webkit-box-shadow: inset 0 1px 0 #fff;
+}
+.action_button:hover {
+    background-position: top;
+    color: #000;
+}
+
 /*
  * --> News list
  *



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