42 lines
925 B
PHP
42 lines
925 B
PHP
<?php
|
|
|
|
/**
|
|
* The template for displaying archive pages for the dbmod post type
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h1 class="archive-title"><?php echo post_type_archive_title('', false); ?></h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<?php if (have_posts()) : ?>
|
|
<?php while (have_posts()) : the_post(); ?>
|
|
<div class="col-md-4 mb-4">
|
|
<?php get_template_part('template-parts/content', 'dbmod'); ?>
|
|
</div>
|
|
<?php endwhile; ?>
|
|
|
|
<div class="col-12">
|
|
<?php
|
|
the_posts_pagination(array(
|
|
'mid_size' => 2,
|
|
'prev_text' => __('Précédent', 'carhop'),
|
|
'next_text' => __('Suivant', 'carhop'),
|
|
));
|
|
?>
|
|
</div>
|
|
|
|
<?php else : ?>
|
|
<div class="col-12">
|
|
<?php get_template_part('template-parts/content', 'none'); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<?php get_footer(); ?>
|