From 9fe976e1155d4ce831b0d87ccb4d6581817dfd60 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 24 Feb 2026 17:27:19 +0100 Subject: [PATCH] REFACTOR Moving the card into the components subfolder --- .../cards/communique-presse-card.php | 26 --------------- .../cards/communique-presse-card.php | 33 +++++++++++++++++++ 2 files changed, 33 insertions(+), 26 deletions(-) delete mode 100644 template-parts/cards/communique-presse-card.php create mode 100644 template-parts/components/cards/communique-presse-card.php diff --git a/template-parts/cards/communique-presse-card.php b/template-parts/cards/communique-presse-card.php deleted file mode 100644 index 0a99354..0000000 --- a/template-parts/cards/communique-presse-card.php +++ /dev/null @@ -1,26 +0,0 @@ - - -
- 'communique-presse', - 'current_post_id' => $communique_id - )); ?> -

-
- - - | - - () - -
- - - -
\ No newline at end of file diff --git a/template-parts/components/cards/communique-presse-card.php b/template-parts/components/cards/communique-presse-card.php new file mode 100644 index 0000000..f36128a --- /dev/null +++ b/template-parts/components/cards/communique-presse-card.php @@ -0,0 +1,33 @@ + + +
+ 'communique-presse', + 'current_post_id' => $communique_id + )); ?> +
+
+

+
+ + + | + + () + +
+ +
+ $communique_file_url, + 'alt' => 'Télécharger le communiqué', + 'target' => '_blank', + )); ?> +
+
\ No newline at end of file