63 lines
1.5 KiB
PHP
63 lines
1.5 KiB
PHP
<?php
|
|
// Copyright 2026 Umbra Tools (umbratools.com)
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<div class="content-area">
|
|
<main id="primary" class="site-main">
|
|
|
|
<?php
|
|
if (have_posts()) :
|
|
|
|
if (is_home() && !is_front_page()) :
|
|
?>
|
|
<header>
|
|
<h1 class="page-title"><?php single_post_title(); ?></h1>
|
|
</header>
|
|
<?php
|
|
endif;
|
|
|
|
while (have_posts()) :
|
|
the_post();
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
<?php if (has_post_thumbnail()) : ?>
|
|
<div class="post-thumbnail">
|
|
<a href="<?php the_permalink(); ?>">
|
|
<?php the_post_thumbnail(); ?>
|
|
</a>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<header class="entry-header">
|
|
<h2 class="entry-title">
|
|
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
|
</h2>
|
|
</header>
|
|
|
|
<div class="entry-summary">
|
|
<?php the_excerpt(); ?>
|
|
</div>
|
|
</article>
|
|
|
|
<?php
|
|
endwhile;
|
|
|
|
the_posts_navigation();
|
|
|
|
else :
|
|
?>
|
|
<p class="no-posts"><?php esc_html_e('No posts found.', 'bd-murphy'); ?></p>
|
|
<?php
|
|
endif;
|
|
?>
|
|
|
|
</main>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|