-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
67 lines (55 loc) · 2.17 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
<?php
get_header();
?>
<div class="page container-fluid">
<div class="content">
<?php
page_banner(array(
'title' => "Galleries",
'subtitle' => "From North Park"
));
?>
<div class="container" style="padding-top:3rem">
<?php
$num_posts = 0;
while (have_posts()) {
the_post();
?>
<div class="post-item row">
<div class="col-md-5">
<a href="<?php the_permalink(); ?>">
<img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title() . ' image' ?>" class="feature-image img-fluid" />
</a>
</div>
<div class="col-md-7" style="padding-left:2rem">
<h2 class="headline headline--medium headline--post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="metabox">
<p>Author: <?php the_author_posts_link() ?> on <?php the_time('n.j.y'); ?> in category: <?php echo get_the_category_list(', '); ?>.</p>
</div>
<div class="excerpt">
<p>
<?php if (has_excerpt()) {
echo get_the_excerpt();
} else {
echo wp_trim_words(get_the_content(), 40);
} ?> <a href="<?php the_permalink(); ?>" class="nu gray"> read more</a></p>
</div>
</div>
</div>
<hr class="post-break">
<?php
$num_posts++;
}
if ($num_posts >= 10) {
echo "<div class='pagination'>";
echo "<h4 class='text-center'>Page Links</h4>";
echo "<div class='page-links'>";
echo paginate_links();
echo "</div>";
echo "</div>";
}
?>
</div>
</div>
</div>
<?php get_footer() ?>