[gnomeweb-wp] fix use of links in the banner



commit 8599d4ca275f990f91ce4a005517e8afafb6f89a
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Tue Apr 5 19:18:21 2011 -0300

    fix use of links in the banner

 wp-content/themes/gnome-grass/page-home.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/wp-content/themes/gnome-grass/page-home.php b/wp-content/themes/gnome-grass/page-home.php
index 3594fa7..14f8c39 100644
--- a/wp-content/themes/gnome-grass/page-home.php
+++ b/wp-content/themes/gnome-grass/page-home.php
@@ -13,7 +13,6 @@ require_once("header.php"); ?>
     $temp_query = clone $wp_query;
     
     query_posts(array('post_type' => 'banner', 'posts_per_page' => 1));
-    $home_link = get_post_meta($post->ID, 'link', true);
     
     ?>
 
@@ -21,9 +20,10 @@ require_once("header.php"); ?>
     <div id="home_banner">
         <?php
         while ( have_posts() ) : the_post();
-        if($home_link != '') {echo '<a href="'.$home_link.'">'; }
+        $home_link = get_post_meta($post->ID, 'link', true);
+        if($home_link != '') { echo '<a href="'.$home_link.'">'; }
         the_post_thumbnail(array(940, 320), array('alt' => get_the_excerpt($post->ID), 'title' => get_the_title($post->ID)));
-        if($home_link != '') {echo '</a>'; }
+        if($home_link != '') { echo '</a>'; }
         endwhile;
         ?>
     </div>



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