Files
Bookshelf/bd-bookshelf/front-page.php
2026-10-18 19:01:01 -07:00

50 lines
1.3 KiB
PHP

<?php
// Copyright 2026 Umbra Tools (umbratools.com)
// SPDX-License-Identifier: Apache-2.0
/**
* Template Name: Home
*
* @package BD_Murphy
*/
get_header();
?>
<div class="home-container">
<div class="home-left-column">
<div class="home-content">
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
the_content();
endwhile;
wp_link_pages(array(
'before' => '<div class="page-links">' . esc_html__('Pages:', 'bd-bookshelf'),
'after' => '</div>',
));
else :
?>
<div class="no-content">
<h2><?php esc_html_e('Welcome', 'bd-bookshelf'); ?></h2>
<p><?php esc_html_e('Latest news and updates from the author.', 'bd-bookshelf'); ?></p>
</div>
<?php
endif;
?>
</div>
</div>
<aside class="home-right-column">
<?php if (is_active_sidebar('home-sidebar')) : ?>
<div class="home-sidebar">
<?php dynamic_sidebar('home-sidebar'); ?>
</div>
<?php endif; ?>
</aside>
</div>
<?php
get_footer();