diff --git a/template-parts/authors/authors-list.php b/template-parts/authors/authors-list.php index 282f8c0..5a01e83 100644 --- a/template-parts/authors/authors-list.php +++ b/template-parts/authors/authors-list.php @@ -2,19 +2,54 @@ $postId = $args['postId']; $componentTitle = 'Auteur·e·s de l\'article'; $authors = get_field('authors', $postId); +$has_main_author = get_field('has_main_author', $postId); +$main_author = get_field('main_author', $postId); + +$show_author_status = $has_main_author && $main_author ? true : false; + +$has_publication_direction = get_field('has_publication_direction', $postId); +$publication_directors = get_field('publication_directors', $postId); + ?>

- + + $main_author->ID, + 'show_author_status' => $show_author_status, + 'author_status' => 'main-author', + ) + ); ?> + + $author->ID, + 'show_author_status' => $show_author_status, + 'author_status' => 'author', ) ); ?> - + +

+ + + $publication_director->ID, + 'show_author_status' => $show_author_status, + 'author_status' => 'publication-director', + ) + ); ?> + +
\ No newline at end of file