-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathindex.php
89 lines (85 loc) · 2.51 KB
/
index.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
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="header">
<div class="container">
<div class="row">
<div class="col-md-12">
<h3 class="tagline">
<?php bloginfo( "description" ); ?>
</h3>
<h1 class="align-self-center display-1 text-center heading">
<?php bloginfo( "name" ); ?>
</h1>
</div>
</div>
</div>
</div>
<div class="posts">
<?php
while ( have_posts() ) :
the_post();
?>
<div class="post" <?php post_class(); ?>>
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="post-title">
<?php the_title(); ?>
</h2>
</div>
</div>
<div class="row">
<div class="col-md-4">
<p>
<strong><?php the_author(); ?></strong><br/>
<?php the_date(); ?>
</p>
<?php echo get_the_tag_list( "<ul class=\"list-unstyled\"><li>", "</li><li>", "</li></ul>" ); ?>
</div>
<div class="col-md-8">
<p>
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( "large", array("class"=>"img-fluid") );
}
?>
</p>
</div>
</div>
</div>
</div>
<?php
endwhile;
?>
<div class="container post-pagination">
<div class="row">
<div class="col-md-4"> </div>
<div class="col-md-8">
<?php
the_posts_pagination(array(
"screen_reader_text"=>' ',
"prev_text" => "New Posts",
"next_text" => "Old Posts"
));
?>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<div class="row">
<div class="col-md-12">
© LWHH - All Rights Reserved
</div>
</div>
</div>
</div>
<?php wp_footer(); ?>
</body>
</html>