Find file
Fetching contributors…
Cannot retrieve contributors at this time
91 lines (70 sloc) 2.71 KB
<?php
/**
*
* This is the default page template for displaying the main index page
*
*/
get_header(); ?>
<div id="content" class="clearfix">
<div id="main" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="clearfix">
<h2>
<a href="<?php the_permalink() ?>"
rel="bookmark"
title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h2>
<p class="meta">
<?php edit_post_link('','',' '); ?>
Posted by <?php the_author_posts_link(); ?> <?php basis_fuzzy_time(); ?>
</p>
</header> <!-- end article header -->
<section class="post_content">
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail', array('class' => 'left')); ?>
</a>
<?php endif; ?>
<?php the_content('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
</section> <!-- end article section -->
<footer>
<?php if (has_category()) : ?>
<p class="cats">Categories: <?php the_category(', '); ?></p>
<?php else : ?>
<p class="cats">Categories: [this post has no categories]</p>
<?php endif; ?>
<?php if (has_tag()) : ?>
<p class="tags">Tags: <?php the_tags(', '); ?></p>
<?php else : ?>
<p class="tags">Tags: [this post has not been tagged]</p>
<?php endif; ?>
</footer> <!-- end article footer -->
</article> <!-- end article -->
<?php endwhile; ?>
<?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
<?php page_navi(); // use the page navi function ?>
<?php } else { // if it is disabled, display regular wp prev & next links ?>
<nav class="wp-prev-next clearfix">
<ul>
<li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
<li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
</ul>
</nav>
<?php } ?>
<?php else : ?>
<article id="post-not-found">
<header>
<h2>Not Found</h2>
</header>
<section class="post_content">
<p>Sorry, but the requested resource was not found on this site.</p>
</section>
<footer>
</footer>
</article>
<?php endif; ?>
</div> <!-- end #main -->
<?php get_sidebar(); // sidebar 1 ?>
</div> <!-- end #content -->
<?php get_footer(); ?>