From 5ea778d8f2f51af6f04eb35a4d9e81d644b1e7ae Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 12 Jul 2009 19:39:38 -0400 Subject: [PATCH] breaking out page content into partials --- index.php | 57 +++---------------------- partials/index-blog-post.inc | 20 +++++++++ partials/index-comic-post.inc | 26 ++++++++++++ partials/nav.inc | 26 ++++++++++++ partials/single-blog-post.inc | 20 +++++++++ partials/single-comic-post.inc | 21 +++++++++ single.php | 78 ++++++++-------------------------- 7 files changed, 137 insertions(+), 111 deletions(-) create mode 100644 partials/index-blog-post.inc create mode 100644 partials/index-comic-post.inc create mode 100644 partials/nav.inc create mode 100644 partials/single-blog-post.inc create mode 100644 partials/single-comic-post.inc diff --git a/index.php b/index.php index ccc4906..eb97783 100644 --- a/index.php +++ b/index.php @@ -15,34 +15,7 @@
- -
-
- -
- -
-
- -
  • ', multiple) ?>
- -

- -

-
- -
- -
- -
- -
-
-
- +
@@ -56,30 +29,12 @@ '&paged=' . $paged ); - + while ($wp_query->have_posts()) { - $wp_query->the_post() ?> -
-
-

- -

- -
- -
-
- -
- -

-
-
- + $wp_query->the_post(); + include(dirname(__FILE__) . '/partials/index-blog-post.inc'); + } +?>