56 lines
1.5 KiB
PHP
56 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying series archive pages
|
|
*/
|
|
|
|
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>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="site-container">
|
|
<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>
|
|
</header>
|
|
<div class="entry-summary">
|
|
<?php the_excerpt(); ?>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
<?php
|
|
$count++;
|
|
endwhile;
|
|
|
|
the_posts_navigation();
|
|
else :
|
|
echo '<p>' . esc_html__( 'No posts found in this series.', 'wisdom1' ) . '</p>';
|
|
endif;
|
|
?>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|