-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
45 lines (38 loc) · 968 Bytes
/
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
<?php
declare(strict_types=1);
/**
* Project: wordpress-skeleton-theme
*
* @author Thilo Ratnaweera <thilo.ratnaweera@netbrothers.de>
* @copyright © 2024 NetBrothers GmbH.
* @license GPLv3
*/
?>
<?php get_header(); ?>
<div id="content-container">
<main>
<h1><?php _e('Latest Blog Posts', 'nb-wordpress-skeleton-theme'); ?></h1>
<?php
if (have_posts()) {
?>
<div class="gallery-container">
<?php
while (have_posts()) {
// move iterator
the_post();
// print post preview
include __DIR__ . '/partials/post-preview.php';
}
?>
</div>
<?php
} else {
?>
<p><?php _e('Sorry, no posts matched your criteria.', 'nb-wordpress-skeleton-theme'); ?></p>
<?php
}
?>
</main>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>