[gnomeweb-wp] created 404 page, edited bits of CSS and made watercolor background repeat horizontally for large re



commit c2a125b09778064282ad8e13ac146b882df7c5f3
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Sun Aug 29 00:08:36 2010 -0300

    created 404 page, edited bits of CSS and made watercolor background repeat horizontally for large resolutions

 .../sitepress-multilingual-cms/sitepress.class.php |    5 +-
 wp-content/themes/gnome-grass/404.php              |   43 ++++++++++++++++++++
 wp-content/themes/gnome-grass/footer_art.php       |   12 +++--
 .../themes/gnome-grass/images/footer_arts/404.png  |  Bin 0 -> 3463 bytes
 .../gnome-grass/images/waterbrush-body-bg.jpg      |  Bin 24223 -> 30633 bytes
 wp-content/themes/gnome-grass/style.css            |    2 +-
 wp-content/themes/gnome-grass/text.css             |    3 +-
 7 files changed, 56 insertions(+), 9 deletions(-)
---
diff --git a/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php b/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php
index 1798df1..a7b4e96 100644
--- a/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php
+++ b/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php
@@ -158,6 +158,7 @@ class SitePress{
             /* preWP3 compatibility  - start */
             if(ICL_PRE_WP3){            
                 add_action('admin_print_scripts-edit-pages.php', array($this,'restrict_manage_pages'));
+
             }
             /* preWP3 compatibility  - endif */
             
@@ -4540,12 +4541,12 @@ class SitePress{
     }
     
     function _allow_calling_template_file_directly(){
-        if(is_404()){  
+        if(is_404()){
             global $wp_query, $wpdb;
-            $wp_query->is_404 = false;
             $parts = parse_url(get_bloginfo('home'));
             $req = str_replace($parts['path'], '', $_SERVER['REQUEST_URI']);
             if(file_exists(ABSPATH . $req) && !is_dir(ABSPATH . $req)){
+                $wp_query->is_404 = false;
                 header('HTTP/1.1 200 OK');
                 include ABSPATH . $req;
                 exit;
diff --git a/wp-content/themes/gnome-grass/404.php b/wp-content/themes/gnome-grass/404.php
new file mode 100644
index 0000000..76cf1bc
--- /dev/null
+++ b/wp-content/themes/gnome-grass/404.php
@@ -0,0 +1,43 @@
+<?php
+/**
+ * @package GNOME Website
+ * @subpackage Grass Theme
+ */
+
+require_once("header.php"); ?>
+
+    <!-- container -->
+    <div id="container" class="two_columns">
+        <div class="container_12">
+            
+            <div class="content without_sidebar">
+                
+                <div class="grid_10 prefix_1 suffix_1 alpha omega">
+                        <h1><?php _e( 'Ooooops. Something is not here.', 'grass' ); ?></h1>
+                        
+                        <p class="main_feature"><?php _e( 'The page you tried to access was not found.', 'grass' ); ?></p>
+                        
+                        <hr />
+                        
+                        <div class="grid_5 alpha">
+                            <p><?php _e( 'For now, you may want to go to the home page to start from beginning or try your luck in the search form bellow.', 'grass'); ?></p>
+                            <?php get_search_form(); ?>
+                        </div>
+                        
+                        <div class="grid_5 omega">
+                            <p>If you think there is a bug in some link around GNOME website, please, we ask you to <a href="https://bugzilla.gnome.org/enter_bug.cgi?product=website&component=www.gnome.org";>report a bug</a>. Thank you.</p>
+                        </div>
+                </div>
+                
+                <div class="clear"></div>
+            </div>
+            <?php $footer_art = '404'; ?>
+            <?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/footer_art.php b/wp-content/themes/gnome-grass/footer_art.php
index 53da3fe..2e2e7f8 100644
--- a/wp-content/themes/gnome-grass/footer_art.php
+++ b/wp-content/themes/gnome-grass/footer_art.php
@@ -1,11 +1,13 @@
             <!-- footer artwork -->
             <?php
             
-            $footer = get_post_meta($post->ID, 'footer_art');
-            if(count($footer) > 0) {
-                $footer_art = $footer[0];
-            } else {
-                $footer_art = 'default';
+            if(!isset($footer_art)) {
+                $footer = get_post_meta($post->ID, 'footer_art');
+                if(count($footer) > 0) {
+                    $footer_art = $footer[0];
+                } else {
+                    $footer_art = 'default';
+                }
             }
             
             ?>
diff --git a/wp-content/themes/gnome-grass/images/footer_arts/404.png b/wp-content/themes/gnome-grass/images/footer_arts/404.png
new file mode 100644
index 0000000..db43c03
Binary files /dev/null and b/wp-content/themes/gnome-grass/images/footer_arts/404.png differ
diff --git a/wp-content/themes/gnome-grass/images/waterbrush-body-bg.jpg b/wp-content/themes/gnome-grass/images/waterbrush-body-bg.jpg
index ebee2f6..a76e9f4 100644
Binary files a/wp-content/themes/gnome-grass/images/waterbrush-body-bg.jpg and b/wp-content/themes/gnome-grass/images/waterbrush-body-bg.jpg differ
diff --git a/wp-content/themes/gnome-grass/style.css b/wp-content/themes/gnome-grass/style.css
index efddc79..0edc2c4 100644
--- a/wp-content/themes/gnome-grass/style.css
+++ b/wp-content/themes/gnome-grass/style.css
@@ -15,7 +15,7 @@ Description: The original theme for the GNOME Project website.
 /* ========================================================================== */
 
 html {
-    background: white url("images/waterbrush-body-bg.jpg") top center no-repeat;
+    background: white url("images/waterbrush-body-bg.jpg") top center repeat-x;
 }
 body {
     
diff --git a/wp-content/themes/gnome-grass/text.css b/wp-content/themes/gnome-grass/text.css
index 9476891..0b88486 100644
--- a/wp-content/themes/gnome-grass/text.css
+++ b/wp-content/themes/gnome-grass/text.css
@@ -13,6 +13,7 @@ hr {
     border-top-width: 1px;
     clear: both;
     height: 0;
+    margin: 20px 0;
 }
 h1, h2, h3, h4, h5, h6, dt {
     font-family: 'Droid Serif', 'DejaVu Serif', Cambria, Georgia, serif;
@@ -55,7 +56,7 @@ ul {
 li {
     margin-left:30px;
 }
-dl,dt,hr,h1,h2,h3,h4,h5,h6,pre,table,address,fieldset {
+dl,dt,h1,h2,h3,h4,h5,h6,pre,table,address,fieldset {
     margin: 0.8em 0 0.4em;
 }
 p, dd, .action_box, ul, ol {



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