Compare commits
3 Commits
07ce23752a
...
6ed5634638
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ed5634638 | ||
|
|
c8276ba10d | ||
|
|
cd4c76fcfa |
|
|
@ -60,3 +60,16 @@ function get_archive_page_subtitle_html($post_type)
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function hasPostTypeNumerotation($post_type)
|
||||||
|
{
|
||||||
|
switch ($post_type) {
|
||||||
|
case 'analyses-etudes':
|
||||||
|
case 'expositions':
|
||||||
|
case 'outils-pedagogiques':
|
||||||
|
case 'recherches':
|
||||||
|
case 'revues':
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,19 +24,8 @@ $current_post_type = $args['current_post_type'] ?? get_post_type();
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php foreach ($posts as $post) : ?>
|
<?php foreach ($posts as $post) : ?>
|
||||||
|
<?php get_template_part('template-parts/components/post-card', null, array(
|
||||||
<div class="post-card post-card--analyses-etudes">
|
'ID' => get_the_ID(),
|
||||||
<div class="latest-parution__item">
|
)); ?>
|
||||||
|
|
||||||
<?php get_template_part('template-parts/components/content-meta', null, array(
|
|
||||||
'current_post_type' => $current_post_type,
|
|
||||||
'current_post_id' => $post->ID
|
|
||||||
)); ?>
|
|
||||||
<a href="<?php echo get_the_permalink($post->ID); ?>">
|
|
||||||
<?php echo get_the_post_thumbnail($post->ID, 'medium'); ?>
|
|
||||||
<h3><?php echo get_the_title($post->ID); ?></h3>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -76,8 +76,6 @@ $types = get_terms(array(
|
||||||
<option value="date_asc"><?php _e('Numéros anciens en premier', 'dynamiques'); ?></option>
|
<option value="date_asc"><?php _e('Numéros anciens en premier', 'dynamiques'); ?></option>
|
||||||
<option value="title_asc"><?php _e('Par ordre alphabétique', 'dynamiques'); ?></option>
|
<option value="title_asc"><?php _e('Par ordre alphabétique', 'dynamiques'); ?></option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user