-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent.php
34 lines (26 loc) · 1.02 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
<?php
if ( is_single() ) :
the_title( '<h1 class="title post-title">', '</h1>' );
?>
<div class="postbody cf"><?php the_content(); ?></div>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'minart' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screenread">' . __( 'Page', 'minart' ) . ' </span>%'
) );
else : ?>
<li <?php if ( has_post_thumbnail() ) : post_class('permalink perma-image'); else: post_class('permalink'); endif; ?>><a href="<?php the_permalink()?>" rel="bookmark">
<?php
if ( has_post_thumbnail() ) :
the_post_thumbnail();
endif; ?>
<?php $posttitle = get_the_title(); if( $posttitle != ''): ?>
<h2 class="perma-title<?php if ( has_post_thumbnail() ) : ?> perma-has-img<?php endif; ?>"><?php the_title(); ?></h2>
<?php elseif(! has_post_thumbnail()): ?>
<h2 class="perma-title"><?php the_date(); endif; ?></h2>
</a></li>
<?php endif;
?>