Compare commits

...

5 Commits

Author SHA1 Message Date
Nonimart
e4299c020f REFACTOR Moving the authors-list from dynamiques theme to carhop-theme
Some checks failed
continuous-integration/drone/push Build is failing
2026-03-20 17:14:56 +01:00
Nonimart
374db271fb REFACTOR Using the post card classes to extend card functionnalities 2026-03-20 17:14:25 +01:00
Nonimart
9a15512554 REFACTOR Starting to test to use the post-card instead of card-articles 2026-03-20 17:14:08 +01:00
Nonimart
ba4f2c4132 REFACTOR Moving component from dynamique theme to carhop theme 2026-03-20 17:13:41 +01:00
Nonimart
cd0675b0a3 REFACTOR Moving component from dynamique theme to carhop theme 2026-03-20 17:13:24 +01:00
6 changed files with 16 additions and 72 deletions

View File

@ -23,7 +23,7 @@ Chaque parution propose un dossier thématique nourri de contributions plurielle
<!-- #### EXPLORE TAGS #### -->
<?php
$block_content = '<!-- wp:dynamiques-blocks/explore-tags /-->';
$block_content = '<!-- wp:carhop-blocks/explore-tags /-->';
echo do_blocks($block_content);
?>

View File

@ -1,50 +0,0 @@
.explore-tags {
@apply bg-carhop-purple-100 py-24 px-4 md:px-12 xl:px-24;
&.alignfull {
@apply !my-0;
}
.inner {
@apply max-w-screen-2xl mx-auto;
@apply lg:flex gap-16 xl:gap-32;
}
&__subtitle {
br {
display: none;
}
@screen lg {
br {
display: block;
}
}
}
.tag-list {
@apply flex gap-6 flex-wrap;
&__tag {
@apply text-lg font-normal border border-primary p-4 h-fit flex items-center gap-2;
svg {
transition: transform 0.3s ease-in-out;
@apply w-8 h-8;
circle {
@apply fill-primary stroke-transparent;
}
path {
@apply stroke-white;
}
}
&:hover {
@apply bg-primary text-white;
svg {
transform: rotate(90deg);
circle {
@apply fill-white;
}
path {
@apply stroke-primary;
}
}
}
}
}
}

View File

@ -1,12 +0,0 @@
.authors-list {
@apply mb-20;
&__title {
@apply text-3xl font-medium mb-4 uppercase;
}
&__article-title {
@apply mb-8 underline underline-offset-8 decoration-1 opacity-90;
}
.author-card {
@apply mb-8;
}
}

View File

@ -88,20 +88,25 @@ $thematiques = get_terms(array(
</div>
<ul class="post-grid__list">
<?php if ($articles->have_posts()) : ?>
<?php while ($articles->have_posts()) : $articles->the_post(); ?>
<?php get_template_part('template-parts/articles/card-article', null, array(
'date' => get_the_date(),
'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
'image' => get_the_post_thumbnail_url(),
'link' => get_the_permalink(),
<?php get_template_part('template-parts/components/cards/post-card', null, array(
'ID' => get_the_ID(),
'showAuthors' => true,
'showTags' => false,
)); ?>
<?php
// get_template_part('template-parts/articles/card-article', null, array(
// 'date' => get_the_date(),
// 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),
// 'image' => get_the_post_thumbnail_url(),
// 'link' => get_the_permalink(),
// 'ID' => get_the_ID(),
// 'showAuthors' => true,
// ));
?>
<?php endwhile; ?>
<?php endif; ?>
</ul>

View File

@ -13,7 +13,7 @@ $authors = get_field('authors', $ID);
?>
<a href="<?php echo $link; ?>" class="post-card post-card--article <?php echo $cover ? 'has-cover' : ''; ?>">
<a href="<?php echo $link; ?>" class="post-card post-card--article post-card--has-numerotation <?php echo $cover ? 'has-cover post-card--has-cover post-card--has-thumbnail' : ''; ?>">
<?php if ($cover) : ?>
<div class="post-card__cover">
@ -25,6 +25,7 @@ $authors = get_field('authors', $ID);
?>
</div>
<?php endif; ?>
<div class="post-card__content">
<div class="content-meta">
<span class="content-meta__type content-meta__type--article">Article</span>

View File

@ -1,5 +1,5 @@
<!-- #### EXPLORE TAGS #### -->
<?php
$block_content = '<!-- wp:dynamiques-blocks/explore-tags /-->';
$block_content = '<!-- wp:carhop-blocks/explore-tags /-->';
echo do_blocks($block_content);
?>