From 8d73ed7b84ac641b5466ee89e97dbe9cb41ec42c Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 23 Jan 2024 17:26:44 +0100 Subject: [PATCH] Correction for Social networks label names including caps --- template-components/post-infos-capsule.css | 6 +++--- template-components/post-infos-capsule.php | 17 +++++------------ 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/template-components/post-infos-capsule.css b/template-components/post-infos-capsule.css index 0768e97..c7a6359 100644 --- a/template-components/post-infos-capsule.css +++ b/template-components/post-infos-capsule.css @@ -32,17 +32,17 @@ filter: brightness(1.4); } } - .share-button--facebook { + .share-button--Facebook { &:before { background-image: url('../resources/img/graphic-assets/icone-social-facebook.svg'); } } - .share-button--twitter-x { + .share-button--Twitter-X { &:before { background-image: url('../resources/img/graphic-assets/icone-social-twitter-x.svg'); } } - .share-button--linkedin { + .share-button--Linkedin { &:before { background-image: url('../resources/img/graphic-assets/icone-social-linkedin.svg'); } diff --git a/template-components/post-infos-capsule.php b/template-components/post-infos-capsule.php index e109912..c5352f6 100644 --- a/template-components/post-infos-capsule.php +++ b/template-components/post-infos-capsule.php @@ -13,29 +13,22 @@ if (!function_exists('build_share_urls')) { $linkedInUrl = 'https://www.linkedin.com/feed/?shareActive=true&text=' . $postTitle . ' ' . $postUrl; return array( - 'facebook' => $facebookUrl, - 'twitter-x' => $twitterUrl, - 'linkedin' => $linkedInUrl + 'Facebook' => $facebookUrl, + 'Twitter-X' => $twitterUrl, + 'Linkedin' => $linkedInUrl ); } } $shareUrls = build_share_urls($postID); - - ?>