-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-single.php
31 lines (28 loc) · 1.38 KB
/
content-single.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
<?php
/**
* @package SemPress
* @since SemPress 1.0.0
*/
?>
<article <?php sempress_post_id(); ?> <?php post_class(); ?><?php sempress_semantics( 'post' ); ?> itemref="site-publisher">
<header class="entry-header">
<h1 class="entry-title p-name" itemprop="name headline"><a href="<?php the_permalink(); ?>" class="u-url url" title="<?php printf( esc_attr__( 'Permalink to %s', 'sempress' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark" itemprop="url"><?php the_title(); ?></a></h1>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php sempress_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary p-summary" itemprop="description">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<?php sempress_the_post_thumbnail( '<div class="entry-media">', '</div>' ); ?>
<div class="entry-content e-content" itemprop="description articleBody">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'sempress' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'sempress' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<?php get_template_part( 'entry', 'footer' ); ?>
</article><!-- #post-<?php the_ID(); ?> -->