File: /home/mmickelson/martyknows.com/wp-content/themes/depo-masthead/index.php
<?php
/**
* @package WordPress
* @subpackage DePo Masthead
*/
get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php $post = $posts[0]; // Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if ( is_category() ) { ?>
<h2 class="pagetitle"><?php printf( __( 'Archive for the ‘%s’ Category', 'depo-masthead' ), single_cat_title( '', false ) ); ?></h2>
<?php /* If this is a tag archive */ } elseif ( is_tag() ) { ?>
<h2 class="pagetitle"><?php printf( __( 'Posts Tagged ‘%s’', 'depo-masthead' ), single_tag_title( '', false ) ); ?></h2>
<?php /* If this is a daily archive */ } elseif ( is_day() ) { ?>
<h2 class="pagetitle"><?php printf( _x( 'Archive for %s|Daily archive page', 'depo-masthead' ), get_the_time( __( 'F jS, Y', 'depo-masthead' ) ) ); ?></h2>
<?php /* If this is a monthly archive */ } elseif ( is_month() ) { ?>
<h2 class="pagetitle"><?php printf( _x( 'Archive for %s|Monthly archive page', 'depo-masthead' ), get_the_time( __( 'F, Y', 'depo-masthead' ) ) ); ?></h2>
<?php /* If this is a yearly archive */ } elseif ( is_year() ) { ?>
<h2 class="pagetitle"><?php printf( _x( 'Archive for %s|Yearly archive page', 'depo-masthead' ), get_the_time( __( 'Y', 'depo-masthead' ) ) ); ?></h2>
<?php /* If this is an author archive */ } elseif ( is_author() ) { ?>
<h2 class="pagetitle"><?php _e( 'Author Archive', 'depo-masthead' ); ?></h2>
<?php /* If this is a paged archive */ } elseif ( isset( $_GET['paged'] ) && !empty( $_GET['paged'] ) ) { ?>
<h2 class="pagetitle"><?php _e( 'Blog Archives', 'depo-masthead' ); ?></h2>
<?php } ?>
<?php if ( is_search() ) : ?>
<h2 class="pagetitle"><?php printf( __( 'Search for “%s”', 'depo-masthead' ), get_search_query() ); ?></h2>
<?php endif; ?>
<?php while ( have_posts() ) : the_post(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<p class="postmetadata"><?php the_tags( '', ', ', '<br />' ); ?></p>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( __( 'Permanent Link to %s', 'depo-masthead' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></h2>
<small><?php printf( __( 'In %1$s on %2$s at %3$s', 'depo-masthead' ), get_the_category_list( __( ', ', 'depo-masthead' ) ), '<strong>' . get_the_time( get_option( 'date_format' ) ) . '</strong>', '<strong>' . get_the_time() . '</strong>' ); ?></small>
<div class="entry">
<?php the_content( __( 'Read the rest of this entry »', 'depo-masthead' ) ); ?>
<?php wp_link_pages(); ?>
<?php edit_post_link( __( 'Edit this entry.', 'depo-masthead' ), '<p>', '</p>' ); ?>
</div>
</div>
<div id="showcomments" class="archive"><div class="divider"></div><a href="<?php the_permalink(); ?>#comments">▶ <?php comments_number( __( 'Comment', 'depo-masthead' ), __( 'View 1 Comment', 'depo-masthead' ), __( 'View % Comments', 'depo-masthead' ) ); ?></a></div>
<?php endwhile; ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div class="navigation">
<div class="previous">
<?php previous_posts_link( '<span class="arrow">«</span> <span class="link"><span class="before">' . __( 'Older', 'depo-masthead' ) . '</span><span class="title">' . __( 'Entries', 'depo-masthead' ) . '</span></span>' ); ?>
</div>
<div class="next">
<?php next_posts_link( '<span class="link"><span class="after">' . __( 'Newer', 'depo-masthead' ) . '</span><span class="title">' . __( 'Entries', 'depo-masthead' ) . '</span></span> <span class="arrow">»</span>' ); ?>
</div>
<div class="clear"></div>
</div>
<?php endif; ?>
<?php else : ?>
<h2 class="pagetitle"><?php _e( 'Nothing Found', 'depo-masthead' ); ?></h2>
<div class="post" style="text-align: center;">
<?php get_search_form(); ?>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>