Files
Umbra-Bookshelf/theme/home.php
bdm 5b5303186a Establish Umbra-Bookshelf as the successor repository
Continues the Bookshelf history. The three plugins tracked there are
consolidated into umbra-bookshelf/ and this repository becomes the canonical
home for the plugin and the theme.

  bd-bookshelf/  ->  theme/     separate artifact, name unchanged
  (root specs)   ->  umbra-bookshelf/spec/  aligned to Umbra Bookshelf
  old plugin zips -> archive/pre-umbra-releases/

Adds a repository README and drops the Bookshelf closure notice.
2026-10-18 19:56:26 -07:00

94 lines
3.9 KiB
PHP

<?php
// Copyright 2026 Umbra Tools (umbratools.com)
// SPDX-License-Identifier: Apache-2.0
/**
* Home / Blog Posts Page
*
* Template used for the static Posts Page in Settings > Reading.
*
* @package BD_Murphy
*/
get_header();
?>
<div class="page-container with-sidebar">
<div class="page-content">
<div class="blog-container">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e('Blog', 'bd-bookshelf'); ?></h1>
</header>
<div class="blog-list">
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('blog-entry'); ?>>
<div class="blog-entry-inner">
<?php if (has_post_thumbnail()) : ?>
<div class="blog-entry-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('blog-thumb'); ?>
</a>
</div>
<?php endif; ?>
<header class="blog-entry-header">
<h2 class="blog-entry-title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<div class="blog-entry-meta">
<span class="blog-entry-date"><?php bdm_posted_on(); ?></span>
<?php
$post_categories = get_the_category();
if (!empty($post_categories)) {
printf('<span class="blog-entry-category">%s</span>', esc_html($post_categories[0]->name));
}
if (get_theme_mod('show_read_time', true)) {
printf('<span class="blog-entry-readtime">%s</span>', bdm_display_reading_time());
}
?>
</div>
<?php if (has_tag()) : ?>
<div class="blog-entry-tags">
<?php the_tags('<span class="tags-label">' . esc_html__('Tags:', 'bd-bookshelf') . '</span> ', ', '); ?>
</div>
<?php endif; ?>
</header>
<div class="blog-entry-excerpt">
<?php the_excerpt(); ?>
</div>
</div>
</article>
<?php
endwhile;
the_posts_pagination(array(
'mid_size' => 2,
'prev_text' => esc_html__('Previous', 'bd-bookshelf'),
'next_text' => esc_html__('Next', 'bd-bookshelf'),
));
else :
?>
<p class="no-posts"><?php esc_html_e('No posts found.', 'bd-bookshelf'); ?></p>
<?php endif; ?>
</div>
</div>
</div>
<aside class="page-sidebar">
<?php if (is_active_sidebar('home-sidebar')) : ?>
<div class="home-sidebar">
<?php dynamic_sidebar('home-sidebar'); ?>
</div>
<?php endif; ?>
</aside>
</div>
<?php
get_footer();