forked from jmhdez/Decode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-link.php
More file actions
53 lines (48 loc) · 2.27 KB
/
Copy pathcontent-link.php
File metadata and controls
53 lines (48 loc) · 2.27 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
<?php
/**
*
* The template for displaying link post formats.
*
* @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; ?>
<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>
<?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 ( get_theme_mod( 'enable_comments', true ) == true && ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<div class="comments-link <?php echo get_theme_mod( 'enable_comments', '' ); ?>"><?php comments_popup_link( __( 'Leave a comment', 'decode' ), __( '1 Comment', 'decode' ), __( '% Comments', 'decode' ) ); ?></div>
<?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 _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(); ?>