From a00f861075638f3cda865f3c631ed50923513b6d Mon Sep 17 00:00:00 2001 From: Frank Hochmuth Date: Sun, 3 Mar 2024 18:18:02 +0100 Subject: [PATCH] Emoticons are now also readable for screen readers --- fp-plugins/emoticons/plugin.emoticons.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fp-plugins/emoticons/plugin.emoticons.php b/fp-plugins/emoticons/plugin.emoticons.php index 2a32a80..26796b4 100644 --- a/fp-plugins/emoticons/plugin.emoticons.php +++ b/fp-plugins/emoticons/plugin.emoticons.php @@ -19,13 +19,15 @@ $plugin_emoticons = array( ':heart_eyes:' => '😍', ':sunglasses:' => '😎', ':laughing:' => '😆', + ':joy:' => '😂', ':neutral_face:' => '😐', ':flushed:' => '😳', + ':hushed:' => '😮', ':dizzy_face:' => '😵', ':cry:' => '😢', ':persevere:' => '😣', ':worried:' => '😟', - ':hushed:' => '😮', + ':angry:' => '😠', ':mag:' => '🔍', ':hot_beverage:' => '☕', ':exclamation:' => '❗', @@ -54,7 +56,8 @@ function plugin_emoticons_filter ($emostring) { foreach ($plugin_emoticons as $text => $emoticon) { $emostring = str_replace( $text, - $emoticon, + // Is better for screen readers + '' . $emoticon . '', $emostring ); }