Compare commits
No commits in common. "f41f32207fbbd1aa3ae1593a43b86a1d168c5043" and "4264f17a595907046824ec6238a0465447725cbf" have entirely different histories.
f41f32207f
...
4264f17a59
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@
|
||||||
@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';
|
||||||
|
|
@ -111,7 +110,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 ############ */
|
||||||
|
|
|
||||||
|
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$postType = get_post_type();
|
$postType = get_post_type();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -27,17 +28,10 @@ $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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 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>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user