From 993514c0c493a7621d174a5f98ba4ee72febe4e8 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 8 Apr 2026 15:39:17 +0200 Subject: [PATCH] FEATURE Refactor social buttons into a separate component for improved modularity and maintainability --- .../components/posts/post-header.php | 42 +++--------------- .../components/posts/social-buttons.php | 43 +++++++++++++++++++ 2 files changed, 48 insertions(+), 37 deletions(-) create mode 100644 template-parts/components/posts/social-buttons.php diff --git a/template-parts/components/posts/post-header.php b/template-parts/components/posts/post-header.php index f371e43..5d9c89d 100644 --- a/template-parts/components/posts/post-header.php +++ b/template-parts/components/posts/post-header.php @@ -19,6 +19,10 @@ $has_thumbnail_overlay = $args['has_thumbnail_overlay'] ?? false; $likes_count = get_post_likes_count($post_id); $citeReference = get_field('cite_reference', $post_id); + + + + ?> @@ -94,44 +98,8 @@ $citeReference = get_field('cite_reference', $post_id); + -
- - - - -
diff --git a/template-parts/components/posts/social-buttons.php b/template-parts/components/posts/social-buttons.php new file mode 100644 index 0000000..b03552f --- /dev/null +++ b/template-parts/components/posts/social-buttons.php @@ -0,0 +1,43 @@ + + + +
+ + + + + +
\ No newline at end of file