-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathcontent.php
64 lines (56 loc) · 2.5 KB
/
content.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
<?php
/**
*
* The template for displaying content on the blog page (usually index.php).
*
* @package Decode
*/
?>
<?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() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php if ( get_theme_mod( 'entry_date_position', 'below' ) == 'above' ) : ?>
<div class="entry-meta">
<p class="date"><?php decode_posted_on(); ?></p>
</div>
<?php endif; ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'decode' ) ); ?>
</div><!-- .entry-content -->
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'decode' ), 'after' => '</div>' ) ); ?>
<footer class="entry-footer">
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<?php if( get_theme_mod( 'show_leave_a_comment_link', true ) == true ): ?>
<div class="comments-link" data-customizer="leave-a-comment">
<?php comments_popup_link( __( 'Leave a comment', 'decode' ), __( '1 Comment', 'decode' ), __( '% Comments', 'decode' ) ); ?>
</div>
<?php else: ?>
<div class="comments-link">
<?php comments_popup_link( '', __( '1 Comment', 'decode' ), __( '% Comments', 'decode' ) ); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'decode' ), '<div class="edit-link">', '</div>' ); ?>
<div class="entry-meta">
<?php if ( get_theme_mod( 'show_tags', false ) == true ) : ?>
<p class="tags"><?php the_tags( __( 'Tagged as: ', 'decode' ),', ' ); ?></p>
<?php endif; ?>
<?php if ( get_theme_mod( 'show_categories', false ) == true ) : ?>
<p class="categories"><?php esc_html_e( 'Categorized in: ', 'decode' ) . the_category( ', ' ); ?></p>
<?php endif; ?>
<?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(); ?>