2021-07-25 07:16:35 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The default archive page template.
|
|
|
|
*
|
|
|
|
* @author Recovery Dharma NYC
|
|
|
|
* @since 1.0.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace WP_RDNYC;
|
|
|
|
|
|
|
|
get_header(); ?>
|
2021-07-28 12:20:00 -04:00
|
|
|
<main class="rdnyc-single-outer">
|
2021-07-25 07:16:35 -04:00
|
|
|
|
2021-07-28 16:39:40 -04:00
|
|
|
<div class="content">
|
2021-07-28 12:20:00 -04:00
|
|
|
<?php if (!is_singular()) : ?>
|
2021-07-28 16:39:40 -04:00
|
|
|
<h1 class="fw-light text-gray-300 mb-4 border-bottom border-dashed border-gray-600">
|
|
|
|
<?php if (is_archive()) : get_the_archive_title();
|
|
|
|
else : single_post_title();
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</h1>
|
2021-07-28 12:20:00 -04:00
|
|
|
<?php endif; ?>
|
2021-07-25 07:16:35 -04:00
|
|
|
|
2021-07-28 16:39:40 -04:00
|
|
|
<?php
|
|
|
|
if ( have_posts() ) :
|
|
|
|
while ( have_posts() ) :
|
|
|
|
the_post();
|
|
|
|
echo get_template_part( 'content-templates/content', 'article' );
|
|
|
|
endwhile;
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php if (!is_singular()) : ?>
|
|
|
|
<nav class="d-flex justify-content-between" aria-label="Page navigation">
|
|
|
|
<div class="nav-previous alignleft"><?php next_posts_link( '← Older' ); ?></div>
|
|
|
|
<div class="nav-next alignright"><?php previous_posts_link( 'Newer →' ); ?></div>
|
|
|
|
</nav>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</div>
|
2021-07-25 07:16:35 -04:00
|
|
|
|
|
|
|
</main>
|
|
|
|
<?php
|
|
|
|
get_footer('', array('frontpage'=>false));
|