Compare commits

...

4 Commits

Author SHA1 Message Date
Nonimart
ac4be1164a FEATURE Commenting authors import now replaced by the carhop homonymous function
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-23 16:44:53 +01:00
Nonimart
c1d9f4720f FEATURE Organising Authors filter list by last name 2026-03-23 16:36:57 +01:00
Nonimart
33759696e7 STYLE Passing the thumbnail overlay style for the cards 2026-03-23 16:36:40 +01:00
Nonimart
53e1a20259 Organising Authors filter list by last name 2026-03-23 16:36:18 +01:00
3 changed files with 12 additions and 5 deletions

View File

@ -8,7 +8,7 @@ require_once(__DIR__ . '/includes/logos.php');
require_once(__DIR__ . '/includes/article-columns.php'); require_once(__DIR__ . '/includes/article-columns.php');
require_once(__DIR__ . '/includes/revues-columns.php'); require_once(__DIR__ . '/includes/revues-columns.php');
require_once(__DIR__ . '/includes/revue.php'); require_once(__DIR__ . '/includes/revue.php');
require_once(__DIR__ . '/includes/auteurs.php'); // require_once(__DIR__ . '/includes/auteurs.php'); ### TO DELETE THE FILE BEACAUSE NOW IN CARHOP THEME
require_once(__DIR__ . '/includes/article.php'); require_once(__DIR__ . '/includes/article.php');
require_once(__DIR__ . '/includes/api.php'); require_once(__DIR__ . '/includes/api.php');
require_once(__DIR__ . '/includes/renderPostsDatas.php'); require_once(__DIR__ . '/includes/renderPostsDatas.php');

View File

@ -25,7 +25,10 @@ $articles = new WP_Query($query_args);
$post_count = $articles->post_count; $post_count = $articles->post_count;
$authors = get_posts(array( $authors = get_posts(array(
'post_type' => 'auteurs', 'post_type' => 'auteurs',
'posts_per_page' => -1 'posts_per_page' => -1,
'order' => 'ASC',
'meta_key' => 'last_name',
'orderby' => 'meta_value',
)); ));
$thematiques = get_terms(array( $thematiques = get_terms(array(
@ -96,8 +99,9 @@ $thematiques = get_terms(array(
<?php get_template_part('template-parts/components/cards/post-card', null, array( <?php get_template_part('template-parts/components/cards/post-card', null, array(
'ID' => get_the_ID(), 'ID' => get_the_ID(),
'showTags' => false, 'showTags' => false,
'has_thumbnail_overlay' => true,
)); ?> )); ?>
<?php <?php
// get_template_part('template-parts/articles/card-article', null, array( // get_template_part('template-parts/articles/card-article', null, array(
// 'date' => get_the_date(), // 'date' => get_the_date(),
// 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(), // 'ThumbnailFocalPosition' => safe_get_thumbnail_focal_point_css(),

View File

@ -6,7 +6,10 @@ $revues = new WP_Query(array(
$post_count = $revues->post_count; $post_count = $revues->post_count;
$authors = get_posts(array( $authors = get_posts(array(
'post_type' => 'auteurs', 'post_type' => 'auteurs',
'posts_per_page' => -1 'posts_per_page' => -1,
'order' => 'ASC',
'meta_key' => 'last_name',
'orderby' => 'meta_value',
)); ));
$thematiques = get_terms(array( $thematiques = get_terms(array(
@ -73,7 +76,7 @@ $thematiques = get_terms(array(
<?php if ($revues->have_posts()) : ?> <?php if ($revues->have_posts()) : ?>
<?php while ($revues->have_posts()) : $revues->the_post(); ?> <?php while ($revues->have_posts()) : $revues->the_post(); ?>
<?php <?php
//CODE TO DELETE BEACAUSE CARD HAS BEEN UPDATED WITH CARHOP POOST_CARD MODEL //CODE TO DELETE BEACAUSE CARD HAS BEEN UPDATED WITH CARHOP POOST_CARD MODEL
// get_template_part('template-parts/revues/card-revue', null, array( // get_template_part('template-parts/revues/card-revue', null, array(