forked from ColorlibHQ/Sparkling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-page.php
55 lines (50 loc) · 1.4 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
46
47
48
49
50
51
52
53
54
55
<?php
/**
* The template used for displaying page content in page.php
*
* @package sparkling
*/
?>
<?php
if ( is_page_template( 'page-fullwidth.php' ) )
the_post_thumbnail( 'sparkling-featured-fullwidth', array( 'class' => 'single-featured' ));
else
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();
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 if ( get_edit_post_link() ) : ?>
<footer class="entry-footer">
<?php
edit_post_link(
sprintf(
/* translators: %s: Name of current post */
esc_html__( 'Edit %s', 'sparkling' ),
the_title( '<span class="screen-reader-text">"', '"</span>', false )
),
'<i class="fa fa-pencil-square-o"></i><span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
<?php endif; ?>
</article><!-- #post-## -->
</div>