FEATURE Introducing new tab template part compoonents

This commit is contained in:
Nonimart 2025-06-24 16:21:24 +02:00
parent 0b8599b618
commit bbe045980f

View File

@ -1,13 +1,16 @@
<?php get_header(); ?> <?php
get_header();
$revueID = get_field('related_revue', get_the_ID());
?>
<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/post-header'); ?> <?php get_template_part('template-parts/post-header'); ?>
<div class="content-wrapper">
<?php get_template_part('template-parts/articles/article-toolbar'); ?> <?php get_template_part('template-parts/articles/article-toolbar'); ?>
<div class="content-wrapper" data-active-tab="article">
<aside class="sidebar"> <aside class="sidebar">
<div class="search-field"> <div class="search-field">
<input type="text" placeholder="Rechercher"> <input type="text" placeholder="Rechercher">
@ -17,9 +20,19 @@
</aside> </aside>
<div class="content-area"> <div class="content-area">
<?php get_template_part('template-parts/articles/article-informations', null, array(
'revueID' => $revueID
)); ?>
<?php get_template_part('template-parts/revues/table-matiere-revue', null, array(
'revueID' => $revueID
)); ?>
<?php get_template_part('template-parts/articles/article-content', null, array( <?php get_template_part('template-parts/articles/article-content', null, array(
'ID' => get_the_ID() 'ID' => get_the_ID()
)); ?> )); ?>
</div> </div>
</div> </div>