carhop__carhop-theme__DEV/single.php
Antoine M 67a20df2cc
All checks were successful
continuous-integration/drone/push Build is passing
FEATURE Big toolbar refactor to handle share like and cita buttons directly from carhop theme
2026-05-28 17:50:27 +02:00

49 lines
1.4 KiB
PHP

<?php get_header(); ?>
<?php
$postType = get_post_type();
?>
<div class="page-single page--single-<?php echo $postType; ?>" data-post-id="<?php echo get_the_ID(); ?>" data-post-type="<?php echo $postType; ?>">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('template-parts/components/posts/post-header'); ?>
<?php get_template_part('template-parts/components/posts/single-post-toolbar'); ?>
<div class="content-wrapper" data-active-tab="post">
<aside class="sidebar">
<?php get_template_part('template-parts/components/posts/post-tags'); ?>
</aside>
<div class="content-area">
<?php get_template_part('template-parts/components/posts/post-content', null, array(
'ID' => get_the_ID()
)); ?>
<?php get_template_part('template-parts/components/posts/post-authors', null, array(
'postId' => get_the_ID()
)); ?>
<?php get_template_part('template-parts/components/posts/post-informations', null, array(
'postId' => get_the_ID()
)); ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php if ($postType === 'analyses-etudes') : ?>
<?php get_template_part('template-parts/compositions/formulaire-commande-etude'); ?>
<?php endif; ?>
<?php echo do_blocks('<!-- wp:carhop-blocks/see-also /-->'); ?>
<?php echo do_blocks('<!-- wp:carhop-blocks/explore-tags /-->'); ?>
</div>
<?php
get_footer();