Compare commits
5 Commits
4264f17a59
...
f41f32207f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f41f32207f | ||
|
|
c4c65f4373 | ||
|
|
7b20d47317 | ||
|
|
d0f218e255 | ||
|
|
7e06d2b5d6 |
|
|
@ -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,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 ############ */
|
||||||
|
|
|
||||||
31
resources/css/blocks/see-also.css
Normal file
31
resources/css/blocks/see-also.css
Normal 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;
|
||||||
|
}
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user