Compare commits

...

5 Commits

Author SHA1 Message Date
Antoine M
f41f32207f STYLE introducing component styling
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-24 15:31:37 +01:00
Antoine M
c4c65f4373 FEATURE Introduciong post ionformations and see-also block 2026-03-24 15:31:18 +01:00
Antoine M
7b20d47317 FEATURE Introduciong post ionformations and see-also block 2026-03-24 15:31:09 +01:00
Antoine M
d0f218e255 FEEDBACK Temp removing numerotation for carhop post types 2026-03-24 15:30:42 +01:00
Antoine M
7e06d2b5d6 FEATURE Handling post tag behaviour on click by replacing the url 2026-03-24 15:30:00 +01:00
5 changed files with 46 additions and 8 deletions

View File

@ -95,11 +95,11 @@ function hasPostTypeNumerotation($post_type)
{ {
switch ($post_type) { switch ($post_type) {
case 'articles': case 'articles':
case 'analyses-etudes': // case 'analyses-etudes':
case 'expositions': // case 'expositions':
case 'outils-pedagogiques': // case 'outils-pedagogiques':
case 'recherches': // case 'recherches':
case 'revues': // case 'revues':
return true; return true;
default: default:
return false; return false;

View File

@ -42,6 +42,7 @@
@import './components/post-grid.css'; @import './components/post-grid.css';
@import './components/card-analyse-etude.css'; @import './components/card-analyse-etude.css';
@import './components/post-header.css'; @import './components/post-header.css';
@import './components/post-informations.css';
@import './components/post-toolbar.css'; @import './components/post-toolbar.css';
@import './components/listen-article.css'; @import './components/listen-article.css';
@import './components/post-tag.css'; @import './components/post-tag.css';
@ -110,7 +111,7 @@
@import './blocks/wp-block-image.css'; @import './blocks/wp-block-image.css';
@import './blocks/wp-block-buttons.css'; @import './blocks/wp-block-buttons.css';
@import './blocks/explore-tags.css'; @import './blocks/explore-tags.css';
@import './blocks/see-also.css';
@import './blocks/variants.css'; @import './blocks/variants.css';
/* ########### LIBS ############ */ /* ########### LIBS ############ */

View File

@ -0,0 +1,31 @@
.see-also {
@apply bg-carhop-orange-50 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;
}
}
}
.post-list {
.post-card + .post-card {
@apply mt-6;
}
}
}
.is-website-carhop .explore-tags {
@apply bg-carhop-orange-50;
}

View File

@ -3,7 +3,6 @@
<?php <?php
$postType = get_post_type(); $postType = get_post_type();
?> ?>
@ -28,10 +27,17 @@ $postType = get_post_type();
<?php get_template_part('template-parts/components/posts/post-authors', null, array( <?php get_template_part('template-parts/components/posts/post-authors', null, array(
'postId' => get_the_ID() 'postId' => get_the_ID()
)); ?> )); ?>
<?php get_template_part('template-parts/components/posts/post-informations', null, array(
'postId' => get_the_ID()
)); ?>
</div> </div>
</div> </div>
<?php endwhile; ?> <?php endwhile; ?>
<?php endif; ?> <?php endif; ?>
<?php echo do_blocks('<!-- wp:carhop-blocks/see-also /-->'); ?>
<?php echo do_blocks('<!-- wp:carhop-blocks/explore-tags /-->'); ?> <?php echo do_blocks('<!-- wp:carhop-blocks/explore-tags /-->'); ?>
</div> </div>

View File

@ -11,7 +11,7 @@ if (empty($etiquettes)) return;
<ul class="tags-list"> <ul class="tags-list">
<?php foreach ($etiquettes as $etiquette) : ?> <?php foreach ($etiquettes as $etiquette) : ?>
<li class="post-tag"> <li class="post-tag">
<a href="<?php echo get_term_link($etiquette); ?>"><?php echo $etiquette->name; ?></a> <a href="<?php echo add_query_arg('etiquette', $etiquette->slug, get_post_type_archive_link('analyses-etudes')); ?>"><?php echo $etiquette->name; ?></a>
</li> </li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>