-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
36 lines (35 loc) · 1.26 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
<?php
/**
* @package Graphy
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php graphy_header_meta(); ?>
<?php if ( has_post_thumbnail() && ! is_search()): ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
</div>
<?php endif; ?>
</header><!-- .entry-header -->
<?php if (
(
'content' == get_theme_mod( 'graphy_content' )
&& ! ( is_search() || is_archive() )
)
|| ( 'quote' === get_post_format() )
|| ( 'video' === get_post_format() )
) :
?>
<div class="entry-content">
<?php the_content( __( '<span class="continue-reading">Continue reading →</span>', 'graphy' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'graphy' ), 'after' => '</div>', ) ); ?>
</div><!-- .entry-content -->
<?php else : ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e( '<span class="continue-reading">Continue reading →</span>', 'graphy' ); ?></a>
</div><!-- .entry-summary -->
<?php endif; ?>
</article><!-- #post-## -->