Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 78 lines (59 sloc) 3.201 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php $curauth = get_userdata( get_the_author_meta('ID'));?>
<article class="post" id="post-<?php the_ID(); ?>">

<?php include (TEMPLATEPATH . '/frag-social.php'); ?>
<div class="content">
<header>
<p class="post-meta"><time><?php the_time('j F Y'); ?></time>, por <span class="author"><?php the_author_posts_link() ?></span>

<?php if (!empty($curauth->twitter)): ?>
<a rel="me" href="<?php echo $curauth->twitter; ?>" target="_blank" class="twitter-icon" >&nbsp;</a>
<?php endif; ?>

<?php if (!empty($curauth->facebook)): ?>
<a rel="me" href="<?php echo $curauth->facebook; ?>" target="_blank" class="facebook-icon" >&nbsp;</a>
<?php endif; ?>

<?php if (!empty($curauth->jabber)): ?>
<a rel="me" href="<?php echo $curauth->jabber; ?>" target="_blank" class="googleplus-icon" >&nbsp;</a>
<?php endif; ?>
</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(); ?>
<?php endif; ?>
</header>

<?php
if ( function_exists( 'the_post_thumbnail' ) )
the_post_thumbnail( array(250,9999), array( 'class' => ' alignright' ));

if ( !is_single() ) :
the_content('Continue lendo &raquo;'); ?>
<p class="categories">Categorias: <?php the_category( ', ' ) ?></p>
<?php else :
the_content(); ?>
<p class="categories">Categorias: <?php the_category( ', ' ) ?></p><div id="end-post"></div>
<?php if ( is_option_setted('webprofile_feedburner') ): ?>
<form class="feedburner" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=<?php theme_webprofile_feedburner(); ?>', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
<label>Receba nossos posts em seu e-mail:</label>
<input type="text" placeholder="Endereço de email" name="email"/>
<input type="submit" value="Assinar" />
<input type="hidden" value="<?php theme_webprofile_feedburner(); ?>" name="uri"/><input type="hidden" name="loc" value="pt_BR"/>
</form>
<?php endif;

if ( function_exists( 'related_posts' ) )
related_posts();

endif;

if ( the_tags( '<p class="tags">Tags: ', ', ', '</p>' ) ); ?>


</div>

</article> <!-- end #post-<?php the_ID(); ?> -->

<?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; ?>
Something went wrong with that request. Please try again.