-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontent.php
37 lines (36 loc) · 1.04 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
<?php
/**
* Default template for displaying content
* @package sampression framework v 1.0
* @theme naya 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php sampression_the_title() ?>
<div class="entry-meta">
<?php sampression_post_meta(); ?>
</div>
</header>
<div class="entry-content">
<?php
sampression_post_thumbnail();
if( is_search() ) :
the_excerpt();
else :
if( is_single() || !sampression_get_the_excerpt() ) {
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
} else {
the_excerpt();
}
endif;
?>
</div>
<?php sampression_readmore_link() ?>
</article>