From 4146802f08a297c3f2fc897e2bffbda332e3dc7d Mon Sep 17 00:00:00 2001 From: martinyde Date: Tue, 21 Apr 2026 14:21:12 +0200 Subject: [PATCH 1/4] Updated module --- css/itk_video.css | 6 ++++++ src/Plugin/Field/FieldFormatter/VideoFormatter.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/css/itk_video.css b/css/itk_video.css index 1d93086..34992ce 100644 --- a/css/itk_video.css +++ b/css/itk_video.css @@ -25,4 +25,10 @@ text-align: center; transform: translateY(-50%); top: 50%; + + & strong { + cursor: pointer; + text-decoration: underline; + } } + diff --git a/src/Plugin/Field/FieldFormatter/VideoFormatter.php b/src/Plugin/Field/FieldFormatter/VideoFormatter.php index 7bc924c..08d6879 100644 --- a/src/Plugin/Field/FieldFormatter/VideoFormatter.php +++ b/src/Plugin/Field/FieldFormatter/VideoFormatter.php @@ -194,7 +194,7 @@ private function applyCookieConsent(array $videoArray, Video $fieldValue): array if (!empty($requiredCookies) && isset($videoArray['iframe'])) { $videoArray['iframe'] = $this->consentifyOembed($videoArray['iframe'], $requiredCookies); - $blockedText = $this->t('Accept cookies to view this video:'); + $blockedText = '' . $this->t('Accept cookies') . ' to view this video:'; if ($fieldValue->title) { $blockedText .= '
"' . $fieldValue->title . '"'; } From 3402856a4ecdd2b35dc8d626242de7ef6bab9e87 Mon Sep 17 00:00:00 2001 From: martinyde Date: Tue, 21 Apr 2026 14:25:19 +0200 Subject: [PATCH 2/4] Updated Changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2965a3b..9b8b0d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## 1.0.1 + +- [PR-2](https://github.com/itk-dev/itk_video/pull/2) + + - Fix display of blocked text + +## 1.0.0 + - [PR-1](https://github.com/itk-dev/itk_video/pull/1) - Base functionality with a new itk_video field type From 879f67f97b040088bdbe42f8ab361f164600c621 Mon Sep 17 00:00:00 2001 From: martinyde Date: Tue, 21 Apr 2026 14:26:55 +0200 Subject: [PATCH 3/4] Updated styling --- css/itk_video.css | 1 - 1 file changed, 1 deletion(-) diff --git a/css/itk_video.css b/css/itk_video.css index 34992ce..8def0b6 100644 --- a/css/itk_video.css +++ b/css/itk_video.css @@ -31,4 +31,3 @@ text-decoration: underline; } } - From 4c4e240b80abb2a8cbc2ec911089407b943f9c4e Mon Sep 17 00:00:00 2001 From: martinyde Date: Tue, 21 Apr 2026 14:37:27 +0200 Subject: [PATCH 4/4] Updated formatter --- src/Plugin/Field/FieldFormatter/VideoFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/Field/FieldFormatter/VideoFormatter.php b/src/Plugin/Field/FieldFormatter/VideoFormatter.php index 08d6879..5590787 100644 --- a/src/Plugin/Field/FieldFormatter/VideoFormatter.php +++ b/src/Plugin/Field/FieldFormatter/VideoFormatter.php @@ -194,7 +194,7 @@ private function applyCookieConsent(array $videoArray, Video $fieldValue): array if (!empty($requiredCookies) && isset($videoArray['iframe'])) { $videoArray['iframe'] = $this->consentifyOembed($videoArray['iframe'], $requiredCookies); - $blockedText = '' . $this->t('Accept cookies') . ' to view this video:'; + $blockedText = $this->t('Accept cookies to view this video:', [':js' => 'javascript:CookieConsent.renew();']); if ($fieldValue->title) { $blockedText .= '
"' . $fieldValue->title . '"'; }