-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.php
35 lines (35 loc) · 1.05 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
<?php get_header(); ?>
<main class="post">
<div class="container">
<div class="row">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="col-xs-12 col-sm-10 offset-sm-1">
<div class="card post">
<?php get_featured_image(); ?>
<div class="card-body">
<h1 class="post-title" itemprop="name headline"><?php the_title(); ?></h1>
<hr>
<div class="post-content" itemprop="articleBody">
<?php the_content(); ?>
</div>
</div>
<div class="card-footer">
<div class="post-date date">
<time datetime="<?php the_time('Y-m-d\TH:i:sP') ?>" itemprop="datePublished">
Published <?php the_time('F jS, Y') ?>
</time>
<?php
if(is_user_logged_in()){
echo edit_post_link('edit').'<br> by '.get_the_author();
}
?>
</div>
</div>
</div>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
</div>
</div>
</main>
<?php get_footer(); ?>