Migrate theme templates to Bootstrap 5 components and grids

This commit is contained in:
Adolfo Reyna
2026-03-12 23:56:36 -04:00
parent 75a2173dc2
commit c2c018ff6f
7 changed files with 301 additions and 221 deletions

View File

@@ -5,41 +5,51 @@
get_header(); ?>
<div class="category-header">
<div class="site-container">
<h1 class="category-title">Archive: <?php single_cat_title(); ?></h1>
<?php if ( category_description() ) : ?>
<div class="category-description"><?php echo category_description(); ?></div>
<div class="bg-light py-5 border-bottom mb-5">
<div class="container text-center">
<h1 class="display-5 fw-bold mb-3">Archive: <?php single_cat_title(); ?></h1>
<?php if (category_description()): ?>
<div class="lead text-muted mx-auto w-75"><?php echo category_description(); ?></div>
<?php endif; ?>
</div>
</div>
<div class="site-container">
<div class="container mb-5">
<main id="primary" class="site-main">
<div class="insights-grid">
<div class="row g-4">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
if (have_posts()):
while (have_posts()):
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'insight-card' ); ?>>
<header class="entry-header">
<?php the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?>
</header>
<div class="col-md-6 col-lg-4 d-flex align-items-stretch">
<article id="post-<?php the_ID(); ?>" <?php post_class('card w-100 border-0 shadow-sm h-100'); ?>>
<div class="card-body d-flex flex-column">
<header class="entry-header mb-3">
<?php the_title('<h3 class="card-title h5 fw-bold"><a href="' . esc_url(get_permalink()) . '" class="text-dark text-decoration-none stretched-link">', '</a></h3>'); ?>
</header>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
</article>
<div class="card-text text-muted flex-grow-1">
<?php the_excerpt(); ?>
</div>
</div>
</article>
</div>
<?php
endwhile;
the_posts_navigation();
else :
echo '<p>' . esc_html__( 'No posts found in this category.', 'wisdom1' ) . '</p>';
echo '</div>'; // close row
the_posts_navigation(array(
'screen_reader_text' => 'Posts navigation',
'prev_text' => '<span class="btn btn-outline-primary">&larr; Older Posts</span>',
'next_text' => '<span class="btn btn-outline-primary">Newer Posts &rarr;</span>',
'class' => 'd-flex justify-content-between my-5'
));
else:
echo '<div class="col-12"><div class="alert alert-info text-center">' . esc_html__('No posts found in this category.', 'wisdom1') . '</div></div></div>'; // close row and alert
endif;
?>
</div>
</main>
</div>

View File

@@ -1,11 +1,12 @@
<footer id="colophon" class="site-footer">
<div class="site-info">
<p>&copy; <?php echo date( 'Y' ); ?> <?php bloginfo( 'name' ); ?></p>
</div><!-- .site-info -->
</footer><!-- #colophon -->
<footer id="colophon" class="site-footer bg-dark text-white py-4 mt-auto">
<div class="container text-center">
<p class="mb-0 opacity-75">&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?></p>
</div><!-- .container -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>
</html>

View File

@@ -3,81 +3,100 @@
* The front page template file.
*/
get_header();
get_header();
$hero_bg = get_theme_mod( 'hero_background_image', get_template_directory_uri() . '/assets/images/hero-default.png' );
$hero_bg = get_theme_mod('hero_background_image', get_template_directory_uri() . '/assets/images/hero-default.png');
?>
<section class="hero-section" style="background-image: url('<?php echo esc_url( $hero_bg ); ?>'); background-size: cover; background-position: center;">
<div class="hero-content">
<h1 class="hero-headline"><?php echo get_theme_mod( 'hero_headline', 'Ancient Wisdom for a Modern World.' ); ?></h1>
<p class="hero-subheadline"><?php echo get_theme_mod( 'hero_subheadline', 'A collection of biblical insights curated for the thoughtful leader.' ); ?></p>
<a href="#primary" class="cta-button"><?php echo get_theme_mod( 'hero_cta_text', 'Start Reading' ); ?></a>
<section class="hero-section text-white d-flex align-items-center position-relative"
style="background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('<?php echo esc_url($hero_bg); ?>'); background-size: cover; background-position: center; min-height: 80vh;">
<div class="container text-center py-5">
<h1 class="display-3 fw-bold mb-4 font-serif">
<?php echo get_theme_mod('hero_headline', 'Ancient Wisdom for a Modern World.'); ?></h1>
<p class="lead fw-normal mb-5 w-75 mx-auto font-sans">
<?php echo get_theme_mod('hero_subheadline', 'A collection of biblical insights curated for the thoughtful leader.'); ?>
</p>
<a href="#primary"
class="btn btn-primary btn-lg px-5 py-3 rounded-pill text-uppercase fw-bold shadow-sm"><?php echo get_theme_mod('hero_cta_text', 'Start Reading'); ?></a>
</div>
</section>
<div class="site-container">
<div class="container my-5 py-4">
<main id="primary" class="site-main">
<header class="section-header">
<h2 class="section-title">Seek Truth. Lead with Grace.</h2>
<p class="section-subtitle">Explorations into the heart of the Kingdom.</p>
<header class="text-center mb-5">
<h2 class="display-5 fw-bold font-serif mb-3">Seek Truth. Lead with Grace.</h2>
<p class="lead text-muted font-sans font-italic">Explorations into the heart of the Kingdom.</p>
</header>
<div class="insights-grid">
<div class="row g-4 mb-5">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
if (have_posts()):
while (have_posts()):
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'insight-card' ); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<div class="post-thumbnail">
<div class="col-md-6 col-lg-4 d-flex align-items-stretch">
<article id="post-<?php the_ID(); ?>" <?php post_class('card w-100 border-0 shadow-sm overflow-hidden h-100'); ?>>
<?php if (has_post_thumbnail()): ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail( 'large' ); ?>
<?php the_post_thumbnail('large', array('class' => 'card-img-top img-fluid w-100', 'style' => 'height: 200px; object-fit: cover;')); ?>
</a>
</div>
<?php endif; ?>
<header class="entry-header">
<div class="entry-meta">
<span class="cat-links"><?php echo get_the_category_list( ', ' ); ?></span>
</div>
<?php the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?>
<div class="post-card-info">
<span class="post-date"><?php echo get_the_date(); ?></span>
<span class="dot-separator">•</span>
<span class="reading-time"><?php echo wisdom1_reading_time(); ?></span>
<span class="dot-separator">•</span>
<span class="comments-count"><?php comments_number( '0 comments', '1 comment', '% comments' ); ?></span>
</div>
</header>
<?php endif; ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
</article>
<div class="card-body d-flex flex-column p-4">
<header class="entry-header mb-3">
<div class="mb-2 text-uppercase small fw-bold text-muted tracking-wider">
<?php echo get_the_category_list(', '); ?>
</div>
<?php the_title('<h3 class="card-title h5 fw-bold lh-base"><a href="' . esc_url(get_permalink()) . '" class="text-dark text-decoration-none stretched-link">', '</a></h3>'); ?>
<div class="text-muted small mt-2 d-flex align-items-center flex-wrap gap-2">
<span><?php echo get_the_date(); ?></span>
<span>•</span>
<span><?php echo wisdom1_reading_time(); ?></span>
<span>•</span>
<span><?php comments_number('0 comments', '1 comment', '% comments'); ?></span>
</div>
</header>
<div class="card-text text-muted flex-grow-1">
<?php the_excerpt(); ?>
</div>
</div>
</article>
</div>
<?php
endwhile;
the_posts_navigation();
else :
echo '<p>' . esc_html__( 'No posts found.', 'wisdom1' ) . '</p>';
echo '</div>'; // close row
the_posts_navigation(array(
'screen_reader_text' => 'Posts navigation',
'prev_text' => '<span class="btn btn-outline-primary">&larr; Older Posts</span>',
'next_text' => '<span class="btn btn-outline-primary">Newer Posts &rarr;</span>',
'class' => 'd-flex justify-content-between my-5'
));
else:
echo '<div class="col-12"><div class="alert alert-info text-center">' . esc_html__('No posts found.', 'wisdom1') . '</div></div></div>';
endif;
?>
</div><!-- .insights-grid -->
</main><!-- #main -->
</div><!-- .site-container -->
</div><!-- .container -->
<section class="newsletter-strip">
<div class="newsletter-content">
<p class="newsletter-text">Receive weekly insights directly in your inbox.</p>
<form class="newsletter-form">
<input type="email" placeholder="Email address" class="newsletter-input">
<button type="submit" class="newsletter-submit">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</button>
<section class="bg-primary text-white py-5">
<div class="container text-center py-3">
<h3 class="h4 mb-4 font-serif">Receive weekly insights directly in your inbox.</h3>
<form class="d-flex justify-content-center mx-auto" style="max-width: 500px;">
<div class="input-group input-group-lg shadow-sm">
<input type="email" placeholder="Email address" class="form-control border-0 px-4" required>
<button type="submit" class="btn btn-dark px-4 border-0">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<line x1="5" y1="12" x2="19" y2="12"></line>
<polyline points="12 5 19 12 12 19"></polyline>
</svg>
</button>
</div>
</form>
</div>
</section>

View File

@@ -1,55 +1,72 @@
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap"
rel="stylesheet">
<!-- Alpine.js for lightweight interactivity -->
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.min.js"></script>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> x-data="{ searchOpen: false }">
<?php wp_body_open(); ?>
<div id="page" class="site">
<header id="masthead" class="site-header">
<div class="header-container">
<div class="site-branding">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="brand-mark">
<span class="logo-icon">W</span>
<span class="site-name">Wisdom for the Kingdom</span>
<body <?php body_class('bg-light'); ?> x-data="{ searchOpen: false }">
<?php wp_body_open(); ?>
<div id="page" class="site d-flex flex-column min-vh-100">
<header id="masthead" class="site-header sticky-top bg-white shadow-sm">
<nav class="navbar navbar-expand-lg navbar-light container py-3">
<a href="<?php echo esc_url(home_url('/')); ?>"
class="navbar-brand fw-bold fs-4 d-flex align-items-center">
<span class="text-primary me-2">W</span>
<span class="d-none d-sm-inline">Wisdom for the Kingdom</span>
</a>
</div>
<div class="nav-and-search">
<nav id="site-navigation" class="main-navigation">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#primary-menu-collapse" aria-controls="primary-menu-collapse" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="primary-menu-collapse">
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-1',
'menu_id' => 'primary-menu',
'container' => false,
'fallback_cb' => 'wisdom1_menu_fallback',
'menu_id' => 'primary-menu',
'menu_class' => 'navbar-nav mb-2 mb-lg-0 fw-medium',
'container' => false,
'fallback_cb' => 'wisdom1_menu_fallback',
// We're mostly mapping standard wp_nav_menu classes here.
// A full custom nav walker would be needed for perfect Bootstrap dropdowns,
// but standard ul/li works functionally with some styling tweaks.
)
);
?>
</nav>
<button
class="btn btn-outline-secondary ms-lg-3 rounded-circle p-2 d-flex align-items-center justify-content-center"
@click="searchOpen = !searchOpen" aria-label="Toggle search">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</button>
</div>
</nav>
<button class="search-toggle" @click="searchOpen = !searchOpen" aria-label="Toggle search">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
</button>
<!-- Search Overlay (Alpine.js) -->
<div class="search-overlay position-absolute w-100 bg-white border-bottom shadow-sm" x-show="searchOpen"
x-transition @click.away="searchOpen = false" style="display: none; top: 100%; z-index: 1050;">
<div class="container py-4">
<form role="search" method="get" class="d-flex" action="<?php echo esc_url(home_url('/')); ?>">
<input type="search" class="form-control form-control-lg me-2" placeholder="Search wisdom..."
value="<?php echo get_search_query(); ?>" name="s" x-ref="searchInput">
<button type="submit" class="btn btn-primary btn-lg px-4">Search</button>
</form>
</div>
</div>
</div>
<!-- Search Overlay -->
<div class="search-overlay" x-show="searchOpen" x-transition:enter="fade-in" x-transition:leave="fade-out" @click.away="searchOpen = false" style="display: none;">
<div class="site-container">
<form role="search" method="get" class="search-form-overlay" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input type="search" class="search-field-large" placeholder="Search wisdom..." value="<?php echo get_search_query(); ?>" name="s" x-ref="searchInput">
<button type="submit" class="search-submit-large">Search</button>
</form>
</div>
</div>
</header>
</header>

View File

@@ -6,44 +6,54 @@
get_header(); ?>
<div class="category-header">
<div class="site-container">
<h1 class="category-title"><?php echo is_home() ? 'The Library' : get_the_archive_title(); ?></h1>
<?php if ( get_the_archive_description() ) : ?>
<div class="category-description"><?php the_archive_description(); ?></div>
<div class="bg-light py-5 border-bottom mb-5">
<div class="container text-center">
<h1 class="display-4 fw-bold mb-3"><?php echo is_home() ? 'The Library' : get_the_archive_title(); ?></h1>
<?php if (get_the_archive_description()): ?>
<div class="lead text-muted mx-auto w-75"><?php the_archive_description(); ?></div>
<?php endif; ?>
</div>
</div>
<div class="site-container">
<div class="container mb-5">
<main id="primary" class="site-main">
<div class="insights-grid">
<div class="row g-4">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
if (have_posts()):
while (have_posts()):
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'insight-card' ); ?>>
<header class="entry-header">
<div class="entry-meta">
<?php echo get_the_category_list( ', ' ); ?>
</div>
<?php the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?>
</header>
<div class="col-md-6 col-lg-4 d-flex align-items-stretch">
<article id="post-<?php the_ID(); ?>" <?php post_class('card w-100 border-0 shadow-sm h-100'); ?>>
<div class="card-body d-flex flex-column">
<header class="entry-header mb-3">
<div class="entry-meta mb-2 small text-uppercase fw-bold text-muted">
<?php echo get_the_category_list(', '); ?>
</div>
<?php the_title('<h3 class="card-title h5 fw-bold"><a href="' . esc_url(get_permalink()) . '" class="text-dark text-decoration-none stretched-link">', '</a></h3>'); ?>
</header>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
</article>
<div class="card-text text-muted flex-grow-1">
<?php the_excerpt(); ?>
</div>
</div>
</article>
</div>
<?php
endwhile;
the_posts_navigation();
else :
echo '<p>' . esc_html__( 'No posts found.', 'wisdom1' ) . '</p>';
echo '</div>'; // close row
the_posts_navigation(array(
'screen_reader_text' => 'Posts navigation',
'prev_text' => '<span class="btn btn-outline-primary">&larr; Older Posts</span>',
'next_text' => '<span class="btn btn-outline-primary">Newer Posts &rarr;</span>',
'class' => 'd-flex justify-content-between my-5'
));
else:
echo '<div class="col-12"><div class="alert alert-info text-center">' . esc_html__('No posts found.', 'wisdom1') . '</div></div></div>';
endif;
?>
</div>
</main>
</div>

View File

@@ -5,61 +5,70 @@
get_header(); ?>
<main id="primary" class="site-main single-post-layout">
<?php
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header single-entry-header">
<div class="entry-meta">
<?php echo get_the_category_list( ', ' ); ?>
<span class="entry-date"><?php echo get_the_date(); ?></span>
</div>
<?php the_title( '<h1 class="entry-title single-title">', '</h1>' ); ?>
</header>
<?php if ( has_post_thumbnail() ) : ?>
<div class="post-thumbnail single-post-thumbnail">
<?php the_post_thumbnail( 'full' ); ?>
</div>
<?php endif; ?>
<div class="entry-content reading-container">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'wisdom1' ),
'after' => '</div>',
)
);
<main id="primary" class="site-main container my-5">
<div class="row">
<div class="col-lg-8 mx-auto">
<?php
while (have_posts()):
the_post();
?>
</div><!-- .entry-content -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header text-center mb-5">
<div class="entry-meta text-uppercase text-muted small fw-semibold mb-3">
<?php echo get_the_category_list(', '); ?>
<span class="mx-2">•</span>
<span class="entry-date"><?php echo get_the_date(); ?></span>
</div>
<?php the_title('<h1 class="entry-title display-4 fw-bold mb-4">', '</h1>'); ?>
</header>
<footer class="entry-footer">
<div class="entry-tags">
<?php the_tags( '<span class="tags-links">Related: ', ', ', '</span>' ); ?>
</div>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php if (has_post_thumbnail()): ?>
<div class="post-thumbnail mb-5">
<?php the_post_thumbnail('full', array('class' => 'img-fluid rounded shadow-sm')); ?>
</div>
<?php endif; ?>
<nav class="navigation post-navigation">
<div class="nav-links">
<div class="nav-previous"><?php previous_post_link( '%link', 'Previous: %title' ); ?></div>
<div class="nav-next"><?php next_post_link( '%link', 'Next: %title' ); ?></div>
</div>
</nav>
<div class="entry-content fs-5 lh-lg font-serif">
<?php
the_content();
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
wp_link_pages(
array(
'before' => '<div class="page-links mt-4"><strong>' . esc_html__('Pages:', 'wisdom1') . '</strong>',
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
endwhile; // End of the loop.
?>
<footer class="entry-footer mt-5 pt-4 border-top">
<div class="entry-tags">
<?php the_tags('<span class="badge bg-light text-dark text-decoration-none me-2 p-2">Related: ', '</span><span class="badge bg-light text-dark text-decoration-none p-2">', '</span>'); ?>
</div>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->
<nav class="navigation post-navigation mt-5" aria-label="Posts">
<div class="row justify-content-between g-4">
<div class="col-sm-6 text-start">
<?php previous_post_link('<div class="text-muted small text-uppercase fw-bold mb-1">Previous</div>%link', '%title', false, ''); ?>
</div>
<div class="col-sm-6 text-end">
<?php next_post_link('<div class="text-muted small text-uppercase fw-bold mb-1">Next</div>%link', '%title', false, ''); ?>
</div>
</div>
</nav>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if (comments_open() || get_comments_number()):
comments_template();
endif;
endwhile; // End of the loop.
?>
</div>
</div>
</main><!-- #main -->
<?php

View File

@@ -5,48 +5,62 @@
get_header(); ?>
<div class="category-header series-header">
<div class="site-container">
<span class="series-label">Devotional Series</span>
<h1 class="category-title"><?php single_term_title(); ?></h1>
<?php if ( term_description() ) : ?>
<div class="category-description"><?php echo term_description(); ?></div>
<div class="bg-light py-5 mb-5 border-bottom">
<div class="container text-center">
<span class="text-uppercase fw-bold text-primary small tracking-wide">Devotional Series</span>
<h1 class="display-4 fw-bold mt-2 mb-3"><?php single_term_title(); ?></h1>
<?php if (term_description()): ?>
<div class="lead text-muted w-75 mx-auto"><?php echo term_description(); ?></div>
<?php endif; ?>
</div>
</div>
<div class="site-container">
<div class="container mb-5">
<main id="primary" class="site-main">
<div class="series-steps-container">
<?php
if ( have_posts() ) :
$count = 1;
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'series-step-card' ); ?>>
<div class="step-number"><?php echo str_pad( $count, 2, '0', STR_PAD_LEFT ); ?></div>
<div class="step-content">
<header class="entry-header">
<?php the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?>
<div class="post-card-info">
<span class="reading-time"><?php echo wisdom1_reading_time(); ?></span>
<div class="row justify-content-center">
<div class="col-lg-8">
<?php
if (have_posts()):
$count = 1;
while (have_posts()):
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('card mb-4 border-0 shadow-sm'); ?>>
<div class="row g-0 align-items-center">
<div class="col-auto p-4 border-end d-none d-sm-flex align-items-center justify-content-center">
<span
class="fs-1 fw-bold text-black-50 opacity-25"><?php echo str_pad($count, 2, '0', STR_PAD_LEFT); ?></span>
</div>
<div class="col p-4">
<header class="entry-header mb-2">
<div class="d-flex justify-content-between align-items-baseline mb-2">
<span
class="badge bg-light text-dark text-uppercase small"><?php echo wisdom1_reading_time(); ?></span>
</div>
<?php the_title('<h3 class="card-title h4 fw-bold mb-0"><a href="' . esc_url(get_permalink()) . '" class="text-decoration-none text-dark stretched-link">', '</a></h3>'); ?>
</header>
<div class="card-text text-muted">
<?php the_excerpt(); ?>
</div>
</div>
</header>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
</div>
</article>
<?php
$count++;
endwhile;
</article>
<?php
$count++;
endwhile;
the_posts_navigation();
else :
echo '<p>' . esc_html__( 'No posts found in this series.', 'wisdom1' ) . '</p>';
endif;
?>
// Basic pagination structure compatible with Bootstrap
the_posts_navigation(array(
'screen_reader_text' => 'Posts navigation',
'prev_text' => '<span class="btn btn-outline-primary">&larr; Older Posts</span>',
'next_text' => '<span class="btn btn-outline-primary">Newer Posts &rarr;</span>',
'class' => 'd-flex justify-content-between my-5'
));
else:
echo '<div class="alert alert-info text-center">' . esc_html__('No posts found in this series.', 'wisdom1') . '</div>';
endif;
?>
</div>
</div>
</main>
</div>