From ec27937ade419ab02aa7e40a22e0289f337014cc Mon Sep 17 00:00:00 2001 From: markseu Date: Wed, 30 Aug 2023 21:27:13 +0200 Subject: [PATCH] Updated core, text description without footnotes --- system/extensions/core.php | 6 ++++-- system/extensions/update-current.ini | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/system/extensions/core.php b/system/extensions/core.php index 846fa9c0..0fcb9d3f 100644 --- a/system/extensions/core.php +++ b/system/extensions/core.php @@ -2,7 +2,7 @@ // Core extension, https://github.com/annaesvensson/yellow-core class YellowCore { - const VERSION = "0.8.115"; + const VERSION = "0.8.116"; const RELEASE = "0.8.22"; public $content; // content files public $media; // media files @@ -2398,7 +2398,9 @@ public function createTextDescription($text, $lengthMax = 0, $removeHtml = true, $lengthMax = 0; } if ($lengthMax<=0 || !$elementFound) break; - if ($hiddenLevel>0 || preg_match("/aria-hidden=\"true\"/i", $elementAttributes)) { + if ($hiddenLevel>0 || + preg_match("/aria-hidden=\"true\"/i", $elementAttributes) || + preg_match("/role=\"doc-noteref\"/i", $elementAttributes)) { if (!is_string_empty($elementName) && is_string_empty($elementEnd) && !in_array(strtolower($elementName), $elementsVoid)) { if (is_string_empty($elementStart)) { ++$hiddenLevel; diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini index fa8e0e25..534ca7bd 100755 --- a/system/extensions/update-current.ini +++ b/system/extensions/update-current.ini @@ -1,11 +1,11 @@ # Datenstrom Yellow update settings Extension: Core -Version: 0.8.115 +Version: 0.8.116 Description: Core functionality of your website. DocumentationUrl: https://github.com/annaesvensson/yellow-core DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/main/downloads/core.zip -Published: 2023-05-24 13:27:21 +Published: 2023-08-30 21:11:09 Developer: Anna Svensson Tag: feature system/extensions/core.php: core.php, create, update