From 9d62fb254435ee73059e7d756cb902296ae107f2 Mon Sep 17 00:00:00 2001 From: Kim Nguyen Date: Thu, 8 Dec 2022 15:57:18 -0500 Subject: [PATCH] Remove old lightgallery helpers. --- config/theme.ini | 3 --- helper/DetectTracks.php | 17 ----------------- helper/OutputTrack.php | 32 -------------------------------- 3 files changed, 52 deletions(-) delete mode 100644 helper/DetectTracks.php delete mode 100644 helper/OutputTrack.php diff --git a/config/theme.ini b/config/theme.ini index 097070bf..b5599499 100644 --- a/config/theme.ini +++ b/config/theme.ini @@ -7,9 +7,6 @@ theme_link = "https://github.com/omeka-s-themes/foundation-s" author_link = "https://omeka.org" omeka_version_constraint = "^4.0.0" -helpers[] = DetectTracks -helpers[] = OutputTrack - [config] elements.stylesheet.name = "stylesheet" elements.stylesheet.attributes.id = "stylesheet" diff --git a/helper/DetectTracks.php b/helper/DetectTracks.php deleted file mode 100644 index 2c2e8737..00000000 --- a/helper/DetectTracks.php +++ /dev/null @@ -1,17 +0,0 @@ -extension() == "vtt") { - return true; - } - } - return false; - } -} \ No newline at end of file diff --git a/helper/OutputTrack.php b/helper/OutputTrack.php deleted file mode 100644 index 7a6c0660..00000000 --- a/helper/OutputTrack.php +++ /dev/null @@ -1,32 +0,0 @@ -source(); - $trackSrc = $file->originalUrl(); - - if ($originalName == "$videoName.vtt") { - $kind = $file->value('dcterms:type'); - $language = $file->value('dcterms:language'); - $label = $file->displayTitle(); - - if (!$kind) { - $kind = 'subtitles'; - } - - if ($language == '') { - $language = $this->getView()->siteSetting('locale'); - } - - $html .= '{"src": "{' . $trackSrc . '", "kind":"' . $kind . '", "srclang": "' . $language . '", "label": "' . $label . '", "default": "true"},'; - } - - return $html; - } -} \ No newline at end of file