forked from ColorlibHQ/Sparkling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-page.php
34 lines (31 loc) · 1 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
<?php
/**
* The template used for displaying page content in page.php
*
* @package sparkling
*/
?>
<?php the_post_thumbnail( 'sparkling-featured', array( 'class' => 'single-featured' )); ?>
<div class="post-inner-content">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header page-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'sparkling' ),
'after' => '</div>',
) );
?>
<?php
// Checks if this is homepage to enable homepage widgets
if ( is_front_page() ) :
get_sidebar( 'home' );
endif;
?>
</div><!-- .entry-content -->
<?php edit_post_link( esc_html__( 'Edit', 'sparkling' ), '<footer class="entry-footer"><i class="fa fa-pencil-square-o"></i><span class="edit-link">', '</span></footer>' ); ?>
</article><!-- #post-## -->
</div>