REFACTOR revue-header to more genral post-header

This commit is contained in:
Nonimart 2025-06-18 16:27:51 +02:00
parent 314834485f
commit 79bc9a260c
2 changed files with 2 additions and 3 deletions

View File

@ -2,8 +2,7 @@
<div class="page--single-articles" data-revue-id="<?php echo get_the_ID(); ?>"> <div class="page--single-articles" data-revue-id="<?php echo get_the_ID(); ?>">
<?php if (have_posts()) : ?> <?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?> <?php while (have_posts()) : the_post(); ?>
<?php get_template_part('template-parts/revues/revue-header'); ?> <?php get_template_part('template-parts/post-header'); ?>
<div class="content-wrapper"> <div class="content-wrapper">
<div class="sidebar"> <div class="sidebar">

View File

@ -10,7 +10,7 @@ $articles = get_field('articles', $current_issue->ID);
<div class="page--single-revue" data-revue-id="<?php echo get_the_ID(); ?>"> <div class="page--single-revue" data-revue-id="<?php echo get_the_ID(); ?>">
<?php if (have_posts()) : ?> <?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?> <?php while (have_posts()) : the_post(); ?>
<?php get_template_part('template-parts/revues/revue-header'); ?> <?php get_template_part('template-parts/post-header'); ?>
<div class="content-wrapper"> <div class="content-wrapper">