Compare commits

..

No commits in common. "6ed5634638653b5783686a21fcf593e68684837f" and "07ce23752ac7b50d63d71240453a93398029dbe2" have entirely different histories.

3 changed files with 16 additions and 16 deletions

View File

@ -60,16 +60,3 @@ function get_archive_page_subtitle_html($post_type)
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;
}
}

View File

@ -24,8 +24,19 @@ $current_post_type = $args['current_post_type'] ?? get_post_type();
<?php endif; ?>
<?php foreach ($posts as $post) : ?>
<?php get_template_part('template-parts/components/post-card', null, array(
'ID' => get_the_ID(),
<div class="post-card post-card--analyses-etudes">
<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; ?>
</div>

View File

@ -76,6 +76,8 @@ $types = get_terms(array(
<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>
</select>
</div>