diff --git a/README.md b/README.md index 353ad7a..f433cd1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ No third-party accounts. No subscriptions. No limits. Just a free, open-source p - **5 visual templates**: Dark, Light, Minimal, Colorful, Glassmorphism - **Custom accent color**: Native WordPress color picker to match your brand -- **Social media icons**: Instagram, YouTube, TikTok, LinkedIn, Twitter/X, Facebook, GitHub, Pinterest, Twitch, Snapchat (SVG icons displayed automatically) +- **Social media icons**: Instagram, YouTube, TikTok, LinkedIn, Twitter/X, Facebook, GitHub, Pinterest, Twitch, Snapchat, WhatsApp, Bluesky, Mastodon, plus Blog and RSS links (SVG icons displayed automatically) - **Click tracking**: Built-in analytics with daily charts and per-link stats, right inside your WordPress admin - **Standalone page**: No theme header/footer, works with any WordPress theme - **Zero external dependencies**: Everything hosted on your server. No CDN, no cookies, no third-party tracking. GDPR friendly by design. @@ -44,10 +44,14 @@ Set your profile photo (via WordPress Media Library), display name, bio (max 160 ### Social networks -Enter the URL for each social network you use. Only filled networks are displayed as icons on your page. Supports Instagram, YouTube, LinkedIn, TikTok, Twitter/X, Facebook, GitHub, Pinterest, Twitch, and Snapchat. +Enter the URL for each social network you use. Only filled networks are displayed as icons on your page. Instagram, YouTube, LinkedIn, TikTok, Twitter/X, Facebook, GitHub, Pinterest, Twitch, Snapchat, WhatsApp, Bluesky, Mastodon, plus Blog and RSS. ![Social networks](screenshots/admin-socials.png) +The icons then show up on the public page: + +![Social icons on the public page](screenshots/socials-icons.png) + ### Add a link Add links with a name, URL, optional icon, and position. Icons include globe, blog, contact, podcast, newsletter, music, video, shop, and link. diff --git a/biolinks.php b/biolinks.php index 00c2a8d..de4c77a 100644 --- a/biolinks.php +++ b/biolinks.php @@ -5,7 +5,7 @@ * Plugin Name: BioLinks * Plugin URI: https://github.com/JeremieSamson/biolinks * Description: Self-hosted link in bio page with 5 templates, click tracking, and analytics. - * Version: 1.1.10 + * Version: 1.1.11 * Author: Jérémie Samson * Author URI: https://nomadesurrails.fr * License: GPLv2 or later @@ -21,7 +21,7 @@ exit; } -define('BIOLINKS_VERSION', '1.1.10'); +define('BIOLINKS_VERSION', '1.1.11'); define('BIOLINKS_PATH', plugin_dir_path(__FILE__)); define('BIOLINKS_URL', plugin_dir_url(__FILE__)); diff --git a/includes/icons.php b/includes/icons.php index aa5ce49..db795f4 100644 --- a/includes/icons.php +++ b/includes/icons.php @@ -17,25 +17,10 @@ 'twitch' => '', 'snapchat' => '', 'whatsapp' => '', -]; - -const BIOLINKS_SOCIAL_DOMAINS = [ - 'instagram.com' => 'instagram', - 'youtube.com' => 'youtube', - 'youtu.be' => 'youtube', - 'linkedin.com' => 'linkedin', - 'tiktok.com' => 'tiktok', - 'twitter.com' => 'twitter', - 'x.com' => 'twitter', - 'facebook.com' => 'facebook', - 'fb.com' => 'facebook', - 'github.com' => 'github', - 'pinterest.com' => 'pinterest', - 'pin.it' => 'pinterest', - 'twitch.tv' => 'twitch', - 'snapchat.com' => 'snapchat', - 'wa.me' => 'whatsapp', - 'whatsapp.com' => 'whatsapp', + 'bluesky' => '', + 'mastodon' => '', + 'blog' => '', + 'rss' => '', ]; const BIOLINKS_GENERIC_ICONS = [ @@ -50,7 +35,7 @@ 'link' => '', ]; -const BIOLINKS_SOCIAL_KEYS = ['instagram', 'youtube', 'linkedin', 'tiktok', 'twitter', 'facebook', 'github', 'pinterest', 'twitch', 'snapchat', 'whatsapp']; +const BIOLINKS_SOCIAL_KEYS = ['instagram', 'youtube', 'linkedin', 'tiktok', 'twitter', 'facebook', 'github', 'pinterest', 'twitch', 'snapchat', 'whatsapp', 'bluesky', 'mastodon', 'blog', 'rss']; const BIOLINKS_SOCIAL_LABELS = [ 'instagram' => 'Instagram', @@ -64,6 +49,10 @@ 'twitch' => 'Twitch', 'snapchat' => 'Snapchat', 'whatsapp' => 'WhatsApp', + 'bluesky' => 'Bluesky', + 'mastodon' => 'Mastodon', + 'blog' => 'Blog', + 'rss' => 'RSS', ]; function biolinks_generic_labels(): array diff --git a/readme.txt b/readme.txt index 1f3c0dc..6b09c81 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: link in bio, social links, bio page, link page, click tracking Requires at least: 5.9 Tested up to: 7.1 Requires PHP: 8.0 -Stable tag: 1.1.10 +Stable tag: 1.1.11 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -20,7 +20,7 @@ No third-party accounts. No subscriptions. No limits. Just a free, open-source p * **5 visual templates**: Dark, Light, Minimal, Colorful, Glassmorphism * **Custom accent color**: Native WordPress color picker to match your brand -* **Social media icons**: Instagram, YouTube, TikTok, LinkedIn, Twitter/X, Facebook, GitHub, Pinterest, Twitch, Snapchat (SVG icons displayed automatically) +* **Social media icons**: Instagram, YouTube, TikTok, LinkedIn, Twitter/X, Facebook, GitHub, Pinterest, Twitch, Snapchat, WhatsApp, Bluesky, Mastodon, plus Blog and RSS links (SVG icons displayed automatically) * **Click tracking**: Built-in analytics with daily charts and per-link stats inside your WordPress admin * **Standalone page**: No theme header/footer, works with any WordPress theme * **Zero external dependencies**: Everything hosted on your server. No CDN, no cookies, no third-party tracking. GDPR friendly by design @@ -80,6 +80,10 @@ Yes. The bio page is a standard WordPress page and works with all major caching == Changelog == += 1.1.11 = +* Add Bluesky, Mastodon, Blog and RSS as social network options. +* Housekeeping: remove an unused internal constant left over from the old link icon auto detection. + = 1.1.10 = * Fix: admin JavaScript strings (media picker, chart labels, import button) were hardcoded in French and could not be translated. They now go through the translation system. * Fix: the dashboard widget tooltip was hardcoded in English and is now translatable. @@ -143,6 +147,9 @@ Yes. The bio page is a standard WordPress page and works with all major caching == Upgrade Notice == += 1.1.11 = +Adds Bluesky, Mastodon, Blog and RSS to the social networks section. + = 1.1.10 = Fixes untranslatable admin strings: the media picker and import button no longer show French text on English sites. diff --git a/screenshots/admin-socials.png b/screenshots/admin-socials.png index 99de3a5..bbc2668 100644 Binary files a/screenshots/admin-socials.png and b/screenshots/admin-socials.png differ diff --git a/screenshots/screenshot-2.png b/screenshots/screenshot-2.png index 99de3a5..bbc2668 100644 Binary files a/screenshots/screenshot-2.png and b/screenshots/screenshot-2.png differ diff --git a/screenshots/socials-icons.png b/screenshots/socials-icons.png new file mode 100644 index 0000000..815d3e5 Binary files /dev/null and b/screenshots/socials-icons.png differ