Permalink
Browse files

Merge branch 'master' of github.com:jkohlbach/quick-framework

  • Loading branch information...
2 parents 4705e25 + 1152e6f commit 27a98e5c21727889b983dd15202e55a13905f3a6 @jkohlbach committed May 10, 2011
Showing with 48 additions and 2 deletions.
  1. +46 −0 archive.php
  2. +1 −1 category.php
  3. +1 −1 tag.php
View
@@ -0,0 +1,46 @@
+<?php
+/*******************************************************************************
+** The template for displaying category page
+**
+** @package Quick-Framework
+** @subpackage Quick
+*******************************************************************************/
+get_header(); ?>
+<div id="container">
+
+ <div id="content">
+
+ <?php
+ if (have_posts())
+ the_post();
+ ?>
+ <h1 class="page-title">
+ <?php if ( is_day() ) : ?>
+ <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
+ <?php elseif ( is_month() ) : ?>
+ <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ); ?>
+ <?php elseif ( is_year() ) : ?>
+ <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ); ?>
+ <?php else : ?>
+ <?php _e( 'Blog Archives', 'twentyten' ); ?>
+ <?php endif; ?>
+ </h1>
+
+ <?php
+ rewind_posts();
+
+ if (have_posts()) : while (have_posts()) : the_post();
+
+ the_title('<h2>','</h2>');
+ the_excerpt();
+
+ endwhile; endif;
+ ?>
+
+ </div><!-- #content -->
+
+ <?php get_sidebar(); ?>
+
+ </div><!-- #container -->
+
+<?php get_footer(); ?>
View
@@ -21,7 +21,7 @@
if (have_posts()) : while (have_posts()) : the_post();
- the_title('<h2>','</h2>');
+ the_title('<h2><a href="' . get_permalink() . '">', '</a></h2>');
the_excerpt();
endwhile; endif;
View
@@ -21,7 +21,7 @@
if (have_posts()) : while (have_posts()) : the_post();
- the_title('<h2>','</h2>');
+ the_title('<h2><a href="' . get_permalink() . '">', '</a></h2>');
the_excerpt();
endwhile; endif;

0 comments on commit 27a98e5

Please sign in to comment.