/
content.php
50 lines (42 loc) · 1.57 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
<?php
/**
* @package Inggo-Sela
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php sela_post_thumbnail(); ?>
<header class="entry-header ">
<?php if ( is_single() ) : ?>
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php else : ?>
<?php the_title( '<h1 class="entry-title"><a href=" ' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
<?php endif; ?>
</header><!-- .entry-header -->
<div class="entry-body">
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php sela_entry_meta(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'sela' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'sela' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<?php endif; ?>
<?php if ( 'post' == get_post_type() ) : ?>
<footer class="entry-meta">
<?php sela_footer_entry_meta(); ?>
</footer><!-- .entry-meta -->
<?php endif; ?>
</div><!-- .entry-body -->
</article><!-- #post-## -->