Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
c3487175f6
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
47 lines (35 sloc) 1.66 KB
<?php get_header(); ?>
<div id="main-content" class="span8">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<div class="post-header">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="post-content">
<?php the_content(); ?>
</div>
<div class="post-meta">
<?php the_date( 'F j, Y', '<span class="post-date"><i class="icon-calendar"></i>', '</span>' ); ?>
<span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="icon-user"></i><?php the_author_meta( 'display_name' ); ?></a></span>
<?php
// PHP Request: If the_tags is empty, do not generate the HTML. I don't want the labels and markup making empty space when there are no tags.
the_tags( '<span class="post-tags"><i class="icon-tags"></i>', ', ', '</span>' );
?>
</div>
</div>
<?php endwhile; else: ?>
<div class="navigation">
<span class="older"><?php next_posts_link(__('&laquo; Older','example')) ?></span> <span class="newer"><?php previous_posts_link(__('Newer &raquo;','example')) ?></span>
</div><!-- /.navigation -->
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<div id="aside-block" class="span3 offset1">
<?php if ( is_active_sidebar( 'sidebar' ) ) { ?>
<?php dynamic_sidebar( 'sidebar' ); ?>
<?php } else { ?>
<h1>Sidebar</h1>
<p>Go to Appearance > Widgets, and drag items into Sidebar to edit this area.</p>
<?php }; ?>
</div>
<?php get_footer(); ?>