-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent-page.php
executable file
·45 lines (36 loc) · 1.3 KB
/
content-page.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
<?php
/**
* Displays a single page
*
* @package influence
* @since influence 1.0
* @license GPL 2.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>>
<?php if( has_post_thumbnail() ) : ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'influence' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
<?php the_post_thumbnail() ?>
</a>
</div>
<?php endif; ?>
<div class="post-text">
<h1 class="entry-title"><?php the_title(); ?></h1>
<?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>', 'influence' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'influence' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<?php if ( comments_open() || '0' != get_comments_number() ) : ?>
<div id="single-comments-wrapper">
<?php comments_template( '', true ); ?>
</div><!-- #single-comments-wrapper -->
<?php endif; ?>
</div>
</article><!-- #post-<?php the_ID(); ?> -->