forked from WPChill/decode-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-single.php
145 lines (125 loc) · 7.32 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
/**
* @package Decode
*/
?>
<?php if ( has_post_format( 'quote' ) ) : ?>
<?php tha_entry_before(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php tha_entry_top(); ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'decode' ) ); ?>
</div>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'decode' ), 'after' => '</div>' ) ); ?>
<footer class="entry-footer">
<?php if ( get_theme_mod( 'show_author_section', false ) == true ) : ?>
<section class="author-section cf">
<div class="author-image"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )?>" rel="author"><?php echo get_avatar( get_the_author_meta( 'ID' ), 250 ); ?></a></div>
<div class="author-text">
<div class="author-name"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )?>" rel="author"><?php echo get_the_author_meta( 'display_name' ); ?></a></div>
<?php if ( get_the_author_meta( 'user_url' ) ) echo '<div class="author-site"><a href="' . get_the_author_meta( 'user_url' ) . '" rel="me">' . __( 'Website', 'decode' ) . '</a></div>'; ?>
<?php if ( get_the_author_meta( 'google_profile' ) ) echo '<a href="' . esc_url( get_the_author_meta( 'google_profile' ) . '?rel=author' ) . '" class="screen-reader-text"></a>'; ?>
<div class="author-bio"><?php echo get_the_author_meta( 'description' ); ?></div>
</div>
</section>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'decode' ), '<div class="edit-link">', '</div>' ); ?>
<div class="entry-meta">
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
<p class="categories"><?php _e( 'Categorized in: ', 'decode' ) . the_category( ', ' ); ?></p>
<p class="date"><?php decode_posted_on(); ?></p>
</div>
</footer><!-- .entry-footer -->
<?php tha_entry_bottom(); ?>
</article><!-- #post-<?php the_ID(); ?> -->
<?php tha_entry_after(); ?>
<?php elseif ( has_post_format( 'link' ) ): ?>
<?php tha_entry_before(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php tha_entry_top(); ?>
<header class="entry-header">
<?php if ( has_post_thumbnail() && get_theme_mod( 'show_featured_images_on_singles', false ) == true ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
<div class="entry-title"><h2><?php decode_print_post_title() ?><?php if (get_theme_mod( 'link_post_title_arrow', false ) == true ) echo '<span class="link-title-arrow">→</span>'; ?></h2></div>
<?php if ( get_theme_mod( 'entry_date_position', 'below' ) == 'above' ) : ?>
<div class="entry-meta">
<p class="date"><?php decode_posted_on(); ?></p>
</div><!-- .entry-meta -->
<?php endif; ?>
</header>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'decode' ) ); ?>
</div>
<footer class="entry-footer">
<?php if ( get_theme_mod( 'show_author_section', false ) == true ) : ?>
<section class="author-section cf">
<div class="author-image"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )?>" rel="author"><?php echo get_avatar( get_the_author_meta( 'ID' ), 250 ); ?></a></div>
<div class="author-text">
<div class="author-name"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )?>" rel="author"><?php echo get_the_author_meta( 'display_name' ); ?></a></div>
<?php if ( get_the_author_meta( 'user_url' ) ) echo '<div class="author-site"><a href="' . get_the_author_meta( 'user_url' ) . '" rel="me">' . __( 'Website', 'decode' ) . '</a></div>'; ?>
<?php if ( get_the_author_meta( 'google_profile' ) ) echo '<a href="' . esc_url( get_the_author_meta( 'google_profile' ) . '?rel=author' ) . '" class="screen-reader-text"></a>'; ?>
<div class="author-bio"><?php echo get_the_author_meta( 'description' ); ?></div>
</div>
</section>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'decode' ), '<div class="edit-link">', '</div>' ); ?>
<div class="entry-meta">
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
<p class="categories"><?php _e( 'Categorized in: ', 'decode' ) . the_category( ', ' ); ?></p>
<?php if ( get_theme_mod( 'entry_date_position', 'below' ) == 'below' ) : ?>
<p class="date"><?php decode_posted_on(); ?></p>
<?php endif; ?>
</div>
</footer><!-- .entry-footer -->
<?php tha_entry_bottom(); ?>
</article>
<?php tha_entry_after(); ?>
<?php else : ?>
<?php tha_entry_before(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php tha_entry_top(); ?>
<header class="entry-header">
<?php if ( has_post_thumbnail() && get_theme_mod( 'show_featured_images_on_singles', false ) == true ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
<div class="entry-title"><h2><?php the_title(); ?></h2></div>
<?php if ( get_theme_mod( 'entry_date_position', 'below' ) == 'above' ) : ?>
<div class="entry-meta">
<p class="date"><?php decode_posted_on(); ?></p>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'decode' ) ); ?>
</div>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'decode' ), 'after' => '</div>' ) ); ?>
<footer class="entry-footer">
<?php if ( get_theme_mod( 'show_author_section', false ) == true ) : ?>
<section class="author-section cf">
<div class="author-image"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )?>" rel="author"><?php echo get_avatar( get_the_author_meta( 'ID' ), 250 ); ?></a></div>
<div class="author-text">
<div class="author-name"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )?>" rel="author"><?php echo get_the_author_meta( 'display_name' ); ?></a></div>
<?php if ( get_the_author_meta( 'user_url' ) ) echo '<div class="author-site"><a href="' . get_the_author_meta( 'user_url' ) . '" rel="me">' . __( 'Website', 'decode' ) . '</a></div>'; ?>
<?php if ( get_the_author_meta( 'google_profile' ) ) echo '<a href="' . esc_url( get_the_author_meta( 'google_profile' ) . '?rel=author' ) . '" class="screen-reader-text"></a>'; ?>
<div class="author-bio"><?php echo get_the_author_meta( 'description' ); ?></div>
</div>
</section>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'decode' ), '<div class="edit-link">', '</div>' ); ?>
<div class="entry-meta">
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
<p class="categories"><?php _e( 'Categorized in: ', 'decode' ) . the_category( ', ' ); ?></p>
<?php if ( get_theme_mod( 'entry_date_position', 'below' ) == 'below' ) : ?>
<p class="date"><?php decode_posted_on(); ?></p>
<?php endif; ?>
</div>
</footer><!-- .entry-footer -->
<?php tha_entry_bottom(); ?>
</article><!-- #post-<?php the_ID(); ?> -->
<?php tha_entry_after(); ?>
<?php endif; ?>