Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (35 sloc) 1.93 KB
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article class="post" id="post-<?php the_ID(); ?>">
<?php include (TEMPLATEPATH . '/frag-social.php'); ?>
<div class="entry">
<header>
<p class="post-meta"><time><?php the_time('j F Y'); ?></time> | <span class="author">Por <?php the_author_posts_link() ?></span><!-- <a rel="author" href="<?php the_author_meta( 'jabber' ); ?>" target="_blank" ><img src="http://www.google.com/images/icons/ui/gprofile_button-16.png" width="12" height="12"></a> --></p>
<h1><?php if ( !is_single() ) { echo '<a href="'; the_permalink(); echo '" rel="bookmark">'; } ?><?php the_title(); ?><?php if ( !is_single() ) { echo '</a>'; } ?></h1>
<?php if ( function_exists( 'btn_horz_fblike' ) ) : ?>
<?php btn_horz_fblike(); ?><br />
<?php endif; ?>
</header>
<?php if ( function_exists( 'the_post_thumbnail' ) ) the_post_thumbnail( array(250,9999), array( 'class' => ' alignleft' )); ?>
<?php the_content( 'Leia mais...' ); ?>
<?php if ( is_single() ) : ?>
<?php if ( function_exists( 'related_posts' ) ) { related_posts(); } ?>
<?php endif; ?>
<hr />
<p class="categories">Categorias: <?php the_category( ', ' ) ?></p>
<?php if ( the_tags( '<p class="tags">Tags: ', ', ', '</p>' ) ); ?>
</div> <!-- end .entry -->
</article> <!-- end #post-<?php the_ID(); ?> --> <div id="end-post"></div>
<?php if ( is_single() ) : ?>
<?php incrementPostViews( get_the_ID() ); ?>
<?php comments_template(); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php if ( is_home() || is_404() || is_category() || is_tag() || is_search() || is_author() ) : ?>
<nav>
<span><?php next_posts_link( '&laquo; Posts anteriores' ); ?></span>
<span><?php previous_posts_link( 'Posts recentes &raquo;' ); ?></span>
</nav>
<?php endif; ?>
<?php else: ?>
<?php include (TEMPLATEPATH . '/frag-noposts.php'); ?>
<?php endif; ?>