[gnome-web-www] only display custom-posted applications if exists
- From: Vinicius Scopel Depizzol <vdepizzol src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-web-www] only display custom-posted applications if exists
- Date: Wed, 28 Sep 2011 03:27:06 +0000 (UTC)
commit c085acd9711c8cdbc7385e68b4ff2e24a86459d4
Author: Vinicius Depizzol <vdepizzol gmail com>
Date: Wed Sep 28 00:26:56 2011 -0300
only display custom-posted applications if exists
theme/page-applications.php | 24 ++++++++++++++----------
1 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/theme/page-applications.php b/theme/page-applications.php
index 6753965..6dd60a8 100644
--- a/theme/page-applications.php
+++ b/theme/page-applications.php
@@ -30,6 +30,18 @@ require_once("header.php"); ?>
<?php the_content(); ?>
+ <?php
+
+ $original_query = clone $wp_query;
+
+ $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
+ get_query_var('page');
+ query_posts(array('post_type' => 'projects', 'meta_key' => 'is_featured', 'posts_per_page' => 10, 'paged' => $paged));
+
+ if ( have_posts() ):
+
+ ?>
+
<hr class="top_shadow" />
<div class="grid_3 alpha">
@@ -38,16 +50,6 @@ require_once("header.php"); ?>
<div class="grid_9 omega">
- <?php
-
- $original_query = clone $wp_query;
-
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- get_query_var('page');
- query_posts(array('post_type' => 'projects', 'meta_key' => 'is_featured', 'posts_per_page' => 10, 'paged' => $paged));
-
- ?>
-
<div class="applications_featured">
<?php while ( have_posts() ) : the_post(); ?>
<div class="item">
@@ -120,6 +122,8 @@ require_once("header.php"); ?>
</div>
+ <?php endif; ?>
+
</div>
<?php $footer_art = 'applications'; ?>
<?php require_once("footer_art.php"); ?>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]