]> git.mxchange.org Git - friendica-addons.git/blobdiff - showmore/showmore.php
Showmore: Ignore addon for screen readers
[friendica-addons.git] / showmore / showmore.php
index f7d65317f8a5bf172b93b3285913c4483fae1c71..277c29ced5c380a9af00976d68ab3b6761d1c5ec 100644 (file)
@@ -8,7 +8,6 @@
  *
  */
 use Friendica\Core\Hook;
-use Friendica\Core\L10n;
 use Friendica\DI;
 use Friendica\Util\Strings;
 
@@ -133,9 +132,9 @@ function showmore_prepare_body(\Friendica\App $a, &$hook_data)
 
        if ($found) {
                $rnd = Strings::getRandomHex(8);
-               $hook_data['html'] = '<span id="showmore-teaser-' . $rnd . '" class="showmore-teaser" style="display: block;">' . $shortened . " " .
+               $hook_data['html'] = '<span id="showmore-teaser-' . $rnd . '" class="showmore-teaser" style="display: block;" aria-hidden="true">' . $shortened . " " .
                        '<span id="showmore-wrap-' . $rnd . '" style="white-space:nowrap;" class="showmore-wrap fakelink" onclick="openClose(\'showmore-' . $rnd . '\'); openClose(\'showmore-teaser-' . $rnd . '\');" >' . DI::l10n()->t('show more') . '</span></span>' .
-                       '<div id="showmore-' . $rnd . '" class="showmore-content" style="display: none;">' . $hook_data['html'] . '</div>';
+                       '<div id="showmore-' . $rnd . '" class="showmore-content" style="display: none;" aria-hidden="false">' . $hook_data['html'] . '</div>';
        }
 }