Skip to content

Commit

Permalink
Updated core, text description without footnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
markseuffert committed Aug 30, 2023
1 parent 4ea3ac0 commit ec27937
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions system/extensions/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions system/extensions/update-current.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ec27937

Please sign in to comment.