site_vitrine/theme/page.php

54 lines
1.4 KiB
PHP

<?php
/**
* Page Template
*
* @package Navier_Instruments
*/
get_header();
?>
<div class="page-header">
<div class="container">
<?php the_title('<h1 class="page-title">', '</h1>'); ?>
</div>
</div>
<div class="page-content">
<div class="container">
<?php
while (have_posts()) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if (has_post_thumbnail()) : ?>
<div class="post-thumbnail" style="margin-bottom: var(--spacing-2xl);">
<?php the_post_thumbnail('large'); ?>
</div>
<?php endif; ?>
<div class="entry-content">
<?php
the_content();
wp_link_pages(array(
'before' => '<div class="page-links">' . esc_html__('Pages:', 'navier-instruments'),
'after' => '</div>',
));
?>
</div>
</article>
<?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;
?>
</div>
</div>
<?php
get_footer();