-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·50 lines (40 loc) · 1.52 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
42
43
44
45
46
47
48
49
50
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Starkers
* @since Starkers 3.1
*/
get_header(); ?>
<main id="content" class="container">
<section class="row">
<div class="col-sm-8">
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<figure>
<?php the_post_thumbnail( 'post-thumb', array( 'class' => 'img-responsive' ) ); ?>
</figure>
</a>
<a href="<?php the_permalink(); ?>" title="Saiba mais sobre: <?php the_title(); ?>"><h2><?php the_title(); ?></h2></a>
<span class="date"><?php the_time('F j, Y'); ?> <?php the_time('g:i a'); ?></span>
<span class="author"><?php _e( 'Publicado por', 'angolanos' ); ?> <?php the_author_posts_link(); ?></span>
<span class="comments"><?php comments_number( '0 comentário', '1 comentário', '% comentários' ); ?></span>
<?php the_content(); ?>
<?php the_tags( __( 'Tags: ', 'angolanos' ), ', ', '<br>'); ?>
<p><?php the_category(', '); ?></p>
<p><?php the_author(); ?></p>
<?php comments_template(); ?>
</article>
<?php endwhile; ?>
<?php else: ?>
<article>
<h1><?php _e( 'Desculpe, nenhum post encontrado.', 'angolanos' ); ?></h1>
</article>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</section> <!-- row -->
</main> <!-- #content -->
<?php get_footer(); ?>