-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcontent-single.php
More file actions
92 lines (80 loc) · 2.57 KB
/
content-single.php
File metadata and controls
92 lines (80 loc) · 2.57 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/**
* The template used for displaying single content in single.php
*
* @package WallPress
* @since WallPress 1.0.3
*/
?>
<div id="item-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="item-inner">
<?php if( has_post_format( 'gallery') ) echo wallpress_gallery(); ?>
<?php
if(has_post_format('audio')) {
echo '<div class="audio-player">';
echo '<div class="audio-player-thumb">';
the_post_thumbnail();
echo '</div>';
wallpress_audio_player( get_the_ID() );
echo '</div>';
} ?>
<div class="item-main">
<?php if(
! has_post_format( 'gallery' ) &&
! has_post_format( 'link' ) &&
! has_post_format( 'image' ) &&
! has_post_format( 'quote' ) &&
! has_post_format( 'status' ) &&
! has_post_format( 'video' ) &&
! has_post_format( 'chat' ) &&
! has_post_format( 'audio' ) &&
! has_post_format( 'aside ' )
) : ?>
<div class="item-thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<?php endif; ?>
<h1 class="item-title"><?php the_title(); ?></h1>
<div class="item-meta meta-top clearfix">
<span class="item-author">
<?php _e( 'By', 'dw-wallpress' );?>
<?php the_author_posts_link(); ?>
</span>
<?php
$categories_list = get_the_category_list( __( ', ', 'dw-wallpress' ) );
if ( $categories_list ):
?>
<span class="item-category">
<?php
printf( __( '<span class="%1$s">in</span> %2$s', 'dw-wallpress' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
$show_sep = true;
?>
</span>
<?php endif; ?>
<span class="item-date">
<?php _e( 'on', 'dw-wallpress' ); ?>
<?php the_time( get_option('date_format') ); ?>
</span>
</div>
<?php if( has_post_format( 'image') ) : ?>
<div class="item-thumbnail">
<?php the_post_thumbnail('full'); ?>
</div>
<?php endif; ?>
<div class="item-content">
<?php the_content( '' ); ?>
<?php wp_link_pages( array( 'before' => '<div class="item-link-pages"><span> ' . __( 'Pages:', 'dw-wallpress' ) . '</span>', 'after' => '</div>' ) ); ?>
</div>
<div class="post-meta meta-bottom clear">
<?php $tags_list = get_the_tag_list( '', __( ', ', 'nex' ) ); ?>
<?php if ( $tags_list ): ?>
<span class="tags"><?php printf( __( '<span class="%1$s">Tagged:</span> %2$s', 'nex' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?></span>
<?php endif; ?>
</div>
<div class="item-comments">
<?php comments_template( '', true ); ?>
</div>
</div>
</div>
</div>
<!-- #item-<?php the_ID(); ?> -->