-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
55 lines (47 loc) · 1.89 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
<?php
/**
* page.php
*
* The template for displaying all pages.
*/
?>
<?php get_header(); ?>
<?php page_hero_heading() ?>
<div class="main-content blog-wrap" role="main">
<div class="container">
<div class="row">
<div class="col-md-8">
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- Article header -->
<header class="entry-header"> <?php
if (has_post_thumbnail() && !post_password_required()) :
?>
<figure class="entry-thumbnail"><?php the_post_thumbnail(); ?></figure>
<?php endif; ?>
<h1><?php the_title(); ?></h1>
</header> <!-- end entry-header -->
<!-- Article content -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div> <!-- end entry-content -->
<!-- Article footer -->
<footer class="entry-footer">
<?php
if (is_user_logged_in()) {
echo '<p>';
edit_post_link(__('Edit', 'fw'), '<span class="meta-edit">', '</span>');
echo '</p>';
}
?>
</footer> <!-- end entry-footer -->
</article>
<?php comments_template(); ?>
<?php endwhile; ?>
</div> <!-- end main-content -->
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>