Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Bluesky share link #449

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions inc/Helpers/Formatting/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ function get_share_link( string $name, string $link_to_share, array $share_attri
'url' => $link_to_share,
],
],
'bluesky' => [
'attributes' => [
'title' => __( 'Share on Bluesky', 'beapi-frontend-framework' ),
'href' => 'https://bsky.app/intent/compose',
'class' => 'share__link',
],
'icon' => 'social/bluesky',
'params' => [
'text' => $link_to_share,
],
],
'email' => [
'attributes' => [
'title' => __( 'Share on Email', 'beapi-frontend-framework' ),
Expand Down
8 changes: 6 additions & 2 deletions languages/beapi-frontend-framework.pot
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 BeAPI
# Copyright (C) 2025 BeAPI
# This file is distributed under the .
msgid ""
msgstr ""
Expand All @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-06-28T07:38:00+00:00\n"
"POT-Creation-Date: 2025-02-18T15:06:50+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.10.0\n"
"X-Domain: beapi-frontend-framework\n"
Expand Down Expand Up @@ -108,6 +108,10 @@ msgid "Share on Instagram"
msgstr ""

#: inc/Helpers/Formatting/Share.php:97
msgid "Share on Bluesky"
msgstr ""

#: inc/Helpers/Formatting/Share.php:108
msgid "Share on Email"
msgstr ""

Expand Down
Binary file modified languages/fr_FR.mo
Binary file not shown.
22 changes: 13 additions & 9 deletions languages/fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ msgstr ""
"Project-Id-Version: Be API Frontend Framework 1.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/beapi-frontend-"
"framework\n"
"POT-Creation-Date: 2024-06-28T07:38:00+00:00\n"
"PO-Revision-Date: 2024-06-28 09:39+0200\n"
"POT-Creation-Date: 2025-02-18T15:06:50+00:00\n"
"PO-Revision-Date: 2025-02-18 16:08+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.2.2\n"
"X-Generator: Poedit 3.1.1\n"
"X-Domain: beapi-frontend-framework\n"

#. Theme Name of the theme
Expand Down Expand Up @@ -111,6 +111,10 @@ msgid "Share on Instagram"
msgstr "Partager sur Instagram"

#: inc/Helpers/Formatting/Share.php:97
msgid "Share on Bluesky"
msgstr "Partager sur Bluesky"

#: inc/Helpers/Formatting/Share.php:108
msgid "Share on Email"
msgstr "Partager par email"

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

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

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

#: inc/Services/Menu.php:37
msgid "Main menu"
Expand Down
1 change: 1 addition & 0 deletions src/img/icons/social/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading