forked from anabelle/Foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single.php
executable file
·42 lines (31 loc) · 1.18 KB
/
content-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
<?php
/**
* Content Single
*
* Loop content in single post template (single.php)
*
* @package WordPress
* @subpackage Foundation, for WordPress
* @since Foundation, for WordPress 4.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<hgroup>
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'foundation' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<h6><?php _e('Written by', 'foundation' );?> <?php the_author_link(); ?> on <?php the_time(get_option('date_format')); ?></h6>
</hgroup>
</header>
<?php if ( has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>" class="th" title="<?php the_title_attribute(); ?>" ><?php the_post_thumbnail(); ?></a>
<?php endif; ?>
<?php the_content(); ?>
<footer>
<p><?php wp_link_pages(); ?></p>
<h6><?php _e('Posted Under:', 'foundation' );?> <?php the_category(', '); ?></h6>
<?php the_tags('<span class="radius secondary label">','</span><span class="radius secondary label">','</span>'); ?>
<?php get_template_part('author-box'); ?>
<?php comments_template(); ?>
</footer>
</article>
<hr />