Compare commits

..

No commits in common. "f41f32207fbbd1aa3ae1593a43b86a1d168c5043" and "4264f17a595907046824ec6238a0465447725cbf" have entirely different histories.

5 changed files with 8 additions and 46 deletions

View File

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

View File

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

View File

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

View File

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