Compare commits
5 Commits
bb89b02555
...
e4299c020f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4299c020f | ||
|
|
374db271fb | ||
|
|
9a15512554 | ||
|
|
ba4f2c4132 | ||
|
|
cd0675b0a3 |
|
|
@ -23,7 +23,7 @@ Chaque parution propose un dossier thématique nourri de contributions plurielle
|
||||||
|
|
||||||
<!-- #### EXPLORE TAGS #### -->
|
<!-- #### EXPLORE TAGS #### -->
|
||||||
<?php
|
<?php
|
||||||
$block_content = '<!-- wp:dynamiques-blocks/explore-tags /-->';
|
$block_content = '<!-- wp:carhop-blocks/explore-tags /-->';
|
||||||
echo do_blocks($block_content);
|
echo do_blocks($block_content);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -88,20 +88,25 @@ $thematiques = get_terms(array(
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="post-grid__list">
|
<ul class="post-grid__list">
|
||||||
<?php if ($articles->have_posts()) : ?>
|
<?php if ($articles->have_posts()) : ?>
|
||||||
<?php while ($articles->have_posts()) : $articles->the_post(); ?>
|
<?php while ($articles->have_posts()) : $articles->the_post(); ?>
|
||||||
<?php get_template_part('template-parts/articles/card-article', null, array(
|
<?php get_template_part('template-parts/components/cards/post-card', 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(),
|
'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 endwhile; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -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) : ?>
|
<?php if ($cover) : ?>
|
||||||
<div class="post-card__cover">
|
<div class="post-card__cover">
|
||||||
|
|
@ -25,6 +25,7 @@ $authors = get_field('authors', $ID);
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="post-card__content">
|
<div class="post-card__content">
|
||||||
<div class="content-meta">
|
<div class="content-meta">
|
||||||
<span class="content-meta__type content-meta__type--article">Article</span>
|
<span class="content-meta__type content-meta__type--article">Article</span>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<!-- #### EXPLORE TAGS #### -->
|
<!-- #### EXPLORE TAGS #### -->
|
||||||
<?php
|
<?php
|
||||||
$block_content = '<!-- wp:dynamiques-blocks/explore-tags /-->';
|
$block_content = '<!-- wp:carhop-blocks/explore-tags /-->';
|
||||||
echo do_blocks($block_content);
|
echo do_blocks($block_content);
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue
Block a user