Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Last active December 15, 2015 09:59
Show Gist options
  • Save claudiosanches/5242839 to your computer and use it in GitHub Desktop.
Save claudiosanches/5242839 to your computer and use it in GitHub Desktop.
Odin com resumos e redes sociais
<article <?php post_class(); ?>>
<header class="entry-header">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo __( 'Link Permanente para ', 'odin' ) . get_the_title(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
<div class="entry-meta">
<span class="sep"><?php _e( 'Por ', 'odin' ); ?></span>
<span class="author vcard">
<a class="url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo esc_attr( __( 'Ver todos os posts de ', 'odin') . get_the_author() ); ?>" rel="author"><?php echo get_the_author(); ?></a>
</span>
<span class="sep"><?php _e( ' | Publicado em ', 'odin' ); ?></span>
<time class="entry-date" datetime="<?php echo get_the_date( 'c' ); ?>"><?php echo get_the_date(); ?></time>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php // if ( has_post_thumbnail() ) the_post_thumbnail( 'thumbnail' ); ?>
<?php echo odin_excerpt( '', '40' ); ?>
<a href="<?php the_permalink(); ?>" title="<?php _e( 'Continue lendo', 'odin' ) ?>"><?php _e( 'Continue lendo <span class="meta-nav">&rarr;</span>', 'odin' ) ?></a>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'P&aacute;ginas:', 'odin' ) . '</span>', 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php echo odin_socialite_horizontal( get_the_title(), get_permalink(), wp_get_attachment_url( get_post_thumbnail_id( $post->ID ), 'thumbnail' ) ); ?>
<span><?php _e( 'Publicado em: ', 'odin' ); the_category(', '); ?></span>
<?php the_tags( '<span>' . __( ' e marcado ', 'odin' ), ', ', '</span>' ); ?>
<?php if ( comments_open() && ! post_password_required() ) : ?>
<span class="sep"> | </span>
<?php comments_popup_link( __( 'Comentar', 'odin' ), __( '1 Coment&aacute;rio', 'odin' ), __( '% Coment&aacute;rios', 'odin' ) ); ?>
<?php endif; ?>
<?php get_template_part( 'share' ); ?>
</footer><!-- #entry-meta -->
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment