forked from PHPSP/phpsp-blog-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
executable file
·41 lines (39 loc) · 1.51 KB
/
single.php
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
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header();
the_post();
?>
<section class="content cat sing">
<div class="row-fluid">
<div class="span8">
<article itemtype="http://schema.org/Article" itemscope>
<h2><?php the_title(); ?></h2>
<time itemprop="dateCreated" datetime="<?php the_time('Y-m-d\TH:i'); ?>"><?php echo ucfirst(strtolower(get_the_time('l, j \d\e F, Y'))); ?></time>
<div class="author">By <span itemprop="author"><?php the_author(); ?> </span></div>
<?php the_tags( '<p class="tags"><small>Tags: ', ', ', '</small></p>'); ?>
<div class="excerpt"><?php the_content(); ?></div>
</article>
<?php
if ( get_the_author_meta( 'description' ) ) : ?>
<div id="entry-author-info" class="single-author-info">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
</div><!-- #author-avatar -->
<div id="author-description">
<h2><?php printf( __( 'Sobre %s', 'twentyten' ), get_the_author() ); ?></h2>
<div><?php the_author_meta( 'description' ); ?></div>
</div><!-- #author-description -->
</div><!-- #entry-author-info -->
<?php endif; ?>
<?php comments_template(); ?>
</div>
<?php get_sidebar(); ?>
</div>
</section>
<?php get_footer(); ?>