Skip to content

Commit c44ee24

Browse files
authored
Merge pull request #449 from BeAPI/add-share-bluesky
Add Bluesky share link
2 parents 90a2a9c + c719642 commit c44ee24

File tree

5 files changed

+31
-11
lines changed

5 files changed

+31
-11
lines changed

inc/Helpers/Formatting/Share.php

+11
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@ function get_share_link( string $name, string $link_to_share, array $share_attri
9292
'url' => $link_to_share,
9393
],
9494
],
95+
'bluesky' => [
96+
'attributes' => [
97+
'title' => __( 'Share on Bluesky', 'beapi-frontend-framework' ),
98+
'href' => 'https://bsky.app/intent/compose',
99+
'class' => 'share__link',
100+
],
101+
'icon' => 'social/bluesky',
102+
'params' => [
103+
'text' => $link_to_share,
104+
],
105+
],
95106
'email' => [
96107
'attributes' => [
97108
'title' => __( 'Share on Email', 'beapi-frontend-framework' ),

languages/beapi-frontend-framework.pot

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 BeAPI
1+
# Copyright (C) 2025 BeAPI
22
# This file is distributed under the .
33
msgid ""
44
msgstr ""
@@ -9,7 +9,7 @@ msgstr ""
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2024-06-28T07:38:00+00:00\n"
12+
"POT-Creation-Date: 2025-02-18T15:06:50+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.10.0\n"
1515
"X-Domain: beapi-frontend-framework\n"
@@ -108,6 +108,10 @@ msgid "Share on Instagram"
108108
msgstr ""
109109

110110
#: inc/Helpers/Formatting/Share.php:97
111+
msgid "Share on Bluesky"
112+
msgstr ""
113+
114+
#: inc/Helpers/Formatting/Share.php:108
111115
msgid "Share on Email"
112116
msgstr ""
113117

languages/fr_FR.mo

78 Bytes
Binary file not shown.

languages/fr_FR.po

+13-9
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ msgstr ""
55
"Project-Id-Version: Be API Frontend Framework 1.0.0\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/beapi-frontend-"
77
"framework\n"
8-
"POT-Creation-Date: 2024-06-28T07:38:00+00:00\n"
9-
"PO-Revision-Date: 2024-06-28 09:39+0200\n"
8+
"POT-Creation-Date: 2025-02-18T15:06:50+00:00\n"
9+
"PO-Revision-Date: 2025-02-18 16:08+0100\n"
1010
"Last-Translator: \n"
1111
"Language-Team: \n"
1212
"Language: fr\n"
1313
"MIME-Version: 1.0\n"
1414
"Content-Type: text/plain; charset=UTF-8\n"
1515
"Content-Transfer-Encoding: 8bit\n"
1616
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
17-
"X-Generator: Poedit 3.2.2\n"
17+
"X-Generator: Poedit 3.1.1\n"
1818
"X-Domain: beapi-frontend-framework\n"
1919

2020
#. Theme Name of the theme
@@ -111,6 +111,10 @@ msgid "Share on Instagram"
111111
msgstr "Partager sur Instagram"
112112

113113
#: inc/Helpers/Formatting/Share.php:97
114+
msgid "Share on Bluesky"
115+
msgstr "Partager sur Bluesky"
116+
117+
#: inc/Helpers/Formatting/Share.php:108
114118
msgid "Share on Email"
115119
msgstr "Partager par email"
116120

@@ -175,24 +179,24 @@ msgstr "Général"
175179
msgid ""
176180
"Could not register file \"%s\" as a block pattern (\"Slug\" field missing)"
177181
msgstr ""
178-
"Impossible de déclarer la composition de blocs à partir du fichier "
179-
"\"%s\" (Le champ \"Slug\" est manquant)"
182+
"Impossible de déclarer la composition de blocs à partir du fichier \"%s"
183+
"\" (Le champ \"Slug\" est manquant)"
180184

181185
#. translators: %1s: file name; %2s: slug value found.
182186
#: inc/Services/Editor_Patterns.php:138
183187
msgid ""
184188
"Could not register file \"%1$s\" as a block pattern (invalid slug \"%2$s\")"
185189
msgstr ""
186-
"Impossible de déclarer la composition de blocs à partir du fichier "
187-
"\"%1$s\" (Le slug \"%2$s\" n'est pas valide)"
190+
"Impossible de déclarer la composition de blocs à partir du fichier \"%1$s"
191+
"\" (Le slug \"%2$s\" n'est pas valide)"
188192

189193
#. translators: %1s: file name; %2s: slug value found.
190194
#: inc/Services/Editor_Patterns.php:155
191195
msgid ""
192196
"Could not register file \"%s\" as a block pattern (\"Title\" field missing)"
193197
msgstr ""
194-
"Impossible de déclarer la composition de blocs à partir du fichier "
195-
"\"%s\" (Le champ \"Title\" est manquant)"
198+
"Impossible de déclarer la composition de blocs à partir du fichier \"%s"
199+
"\" (Le champ \"Title\" est manquant)"
196200

197201
#: inc/Services/Menu.php:37
198202
msgid "Main menu"

src/img/icons/social/bluesky.svg

+1
Loading

0 commit comments

Comments
 (0)