[gnomeweb-wp] started to put news in the home page
- From: Vinicius Scopel Depizzol <vdepizzol src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnomeweb-wp] started to put news in the home page
- Date: Tue, 5 Apr 2011 22:35:20 +0000 (UTC)
commit 08bb380c8b1e3545ffafd355252ccf1cdb72cfe8
Author: Vinicius Depizzol <vdepizzol gmail com>
Date: Tue Apr 5 19:35:09 2011 -0300
started to put news in the home page
wp-content/themes/gnome-grass/page-home.php | 32 ++++++++++++++++++++++----
1 files changed, 27 insertions(+), 5 deletions(-)
---
diff --git a/wp-content/themes/gnome-grass/page-home.php b/wp-content/themes/gnome-grass/page-home.php
index 14f8c39..e71d3db 100644
--- a/wp-content/themes/gnome-grass/page-home.php
+++ b/wp-content/themes/gnome-grass/page-home.php
@@ -49,12 +49,34 @@ require_once("header.php"); ?>
<hr />
- <div class="grid_4 alpha">
- <h4>Celebrate the 3.0 release!</h4>
- </div>
-
- <div class="grid_4">
+ <div class="grid_8 alpha">
<h4>Latest news</h4>
+
+
+ <div class="news_list">
+
+ <?php
+
+ query_posts(array('post_type' => 'post', 'posts_per_page' => 3));
+
+ while ( have_posts() ) : the_post();
+ ?>
+ <div class="news">
+ <span class="date">
+ <?php the_date(); ?>
+ </span>
+
+ <a href="<?php the_permalink(); ?>">
+ <strong><?php the_title(); ?></strong><br />
+ <?php echo strip_tags(get_the_excerpt()); ?>
+ </a>
+ </div>
+ <?php
+ $i++;
+ endwhile;
+ ?>
+ </div>
+
</div>
<div class="grid_4 omega">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]