-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-image.php
executable file
·55 lines (49 loc) · 1.88 KB
/
content-image.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
51
52
53
54
55
<?php
/**
* @package Spun
*/
$format = get_post_format();
$thumb = spun_get_image( get_the_ID(), 'single-post' );
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( '' != $thumb ) { ?>
<div class="single-post-thumbnail">
<?php echo $thumb; ?>
</div>
<?php } ?>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">', 'after' => '</div>', 'link_before' => '<span class="active-link">', 'link_after' => '</span>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="comments-link">
<a href="#comments-toggle">
<span class="tail"></span>
<?php echo comments_number( __( '+', 'spun' ), __( '1', 'spun' ), __( '%', 'spun' ) ); ?>
</a>
</span>
<?php endif; ?>
<div class="entry-meta-wrapper">
<span class="post-date">
<?php spun_posted_on(); ?>
</span>
<span class="entry-format">
<a href="<?php echo esc_url( get_post_format_link( $format ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'spun' ), get_post_format_string( $format ) ) ); ?>"><?php echo get_post_format_string( $format ); ?></a>
</span>
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'spun' ) );
if ( $tags_list ) :
?>
<span class="tags-links">
<?php printf( __( '%1$s', 'spun' ), $tags_list ); ?>
</span>
<?php endif; // End if $tags_list ?>
<?php edit_post_link( __( 'Edit', 'spun' ), '<span class="edit-link">', '</span>' ); ?>
</div>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->