-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
81 lines (76 loc) · 2.61 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* The template for displaying single pages.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Unfold
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
get_header();
?>
<main id="site-content" role="main" class="site-content">
<div class="single">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="post-title">
<h1><?php the_title(); ?></h1>
</div>
<div class="post-img mb-4">
<?php
if(has_post_thumbnail()){
the_post_thumbnail('full');
}
?>
</div>
<div class="post-content">
<?php the_content(); ?>
</div>
<div class="section-inner">
<?php
wp_link_pages(
array(
'before' => '<nav class="post-nav-links bg-light-background" aria-label="' . esc_attr__( 'Page', 'unfoldx' ) . '"><span class="label">' . __( 'Pages:', 'unfoldx' ) . '</span>',
'after' => '</nav>',
'link_before' => '<span class="page-number">',
'link_after' => '</span>',
)
);
edit_post_link();
?>
</div>
<div class="post-comments">
<?php
/*
* Output comments wrapper if it's a post, or if comments are open,
* or if there's a comment number – and check for password.
*/
if ( ( is_single() || is_page() ) && ( comments_open() || get_comments_number() ) && ! post_password_required() ) {
?>
<div class="comments-wrapper">
<?php comments_template(); ?>
</div><!-- .comments-wrapper -->
<?php
}
?>
</div>
</article>
<?php
}
}
?>
</div>
</div>
</div>
</div>
</main><!-- #site-content -->
<?php get_footer(); ?>