wp-73k/index.php

45 lines
1.2 KiB
PHP
Raw Normal View History

2019-05-23 12:30:31 -04:00
<?php
/**
* The default archive page template.
2019-05-23 12:30:31 -04:00
*
* @author Adam Piontek
2019-05-23 12:30:31 -04:00
* @since 1.0.0
*/
namespace WP_73k;
2019-05-23 12:30:31 -04:00
get_header(); ?>
2021-07-06 09:45:09 -04:00
<main class="container d-flex justify-content-center">
2021-07-06 15:31:46 -04:00
<div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 pb-2 mb-4 mt-3">
<?php if (is_archive()) { ?>
<h1 class="text-gray-300 fst-italic mb-4 tek-border-bottom-gray-dashed"><?= get_the_archive_title(); ?></h1>
2021-07-06 15:31:46 -04:00
<?php
}
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
echo get_template_part( 'content-templates/content', 'article' );
}
?>
<nav class="d-flex justify-content-between" aria-label="Page navigation">
<div class="nav-previous alignleft"><?php next_posts_link( '&larr; Older' ); ?></div>
<div class="nav-next alignright"><?php previous_posts_link( 'Newer &rarr;' ); ?></div>
</nav>
<?php
2021-07-06 15:31:46 -04:00
}
?>
2021-07-06 15:31:46 -04:00
<!-- ?php // if ( !is_active_sidebar( 'sidebar' ) ) : ? -->
2021-07-06 15:31:46 -04:00
<!-- <aside class="w-full lg:w-2/6 bg-white border-gray-400 border-2 p-8"> -->
<!-- ?php // dynamic_sidebar( 'sidebar' ); ? -->
2021-07-06 15:31:46 -04:00
<!-- </aside> -->
<!-- ?php // endif; ? -->
2021-07-09 12:29:48 -04:00
2021-07-04 18:16:33 -04:00
</div>
2021-07-06 09:45:09 -04:00
</main>
<?php
get_footer();