-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
34 lines (31 loc) · 1003 Bytes
/
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
<?php $post_class = has_post_thumbnail() ? 'has-thumbnail' : ''; ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $post_class ); ?>>
<header class="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php dw_kido_posted_on(); ?>
</div>
<?php endif; ?>
</header>
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-thumbnail">
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_post_thumbnail(); ?></a>
</div>
<?php endif; ?>
<?php if ( is_search() ) : ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<?php else : ?>
<div class="entry-content">
<?php the_content( '<span>continue reading »</span>' ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'dw-kido' ),
'after' => '</div>',
) );
?>
</div>
<?php endif; ?>
</article>