forked from peiche/cover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
41 lines (36 loc) · 1.07 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
<?php
/**
* @package Cover
*/
?>
<?php
if ( has_post_thumbnail() ) {
$img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h2 class="entry-subtitle"><?php the_category( ', ' ) ?></h2>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<div class="entry-meta">
<?php cover_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-summary">
<?php
if ( has_excerpt() ) {
the_excerpt();
} else if ( strpos( $post->post_content, '<!--more-->' ) ) {
the_content( __( '', 'cover' ) );
} else {
the_excerpt();
}
?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'cover' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-summary -->
</article><!-- #post-## -->