-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
49 lines (49 loc) · 1.65 KB
/
single.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
<?php
/**
* Template Name: Default Post Layout (2-column)
*/
?>
<!doctype html>
<html lang="en">
<head itemscope itemtype="http://schema.org/WebPage">
<?php require_once(get_template_directory() . '/includes/meta.php'); ?>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/assets/css/style.css" />
<?php wp_head(); ?>
</head>
<body>
<?php get_header(); ?>
<div class="container">
<div class="row">
<div class="col-md-8">
<?php if (have_posts()): while (have_posts()): the_post(); ?>
<div class="card">
<div class="card-body">
<div class="post-title"><?php the_title('<h2 class="mb-4">', '</h2>'); ?></div>
<div class="post-content">
<?php the_content(); ?>
</div>
<div class="post-footer text-muted small">
<hr />
<ul class="list-inline">
<li class="list-inline-item"><span class="fa fa-user"></span> <?php the_author(); ?></li>
<li class="list-inline-item"><span class="fa fa-calendar"></span> <?php the_date(); ?></li>
<li class="list-inline-item"><?php the_tags('<span class="fa fa-tag"></span> '); ?></li>
</ul>
</div>
</div>
</div>
<?php endwhile; ?>
<?php the_posts_pagination(); ?>
<?php else: ?>
<p>No posts found.</p>
<?php endif; ?>
</div>
<div class="col-md-4">
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>
<?php wp_footer(); ?>
</body>
</html>