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 diff --git a/css/itk_video.css b/css/itk_video.css index 1d93086..8def0b6 100644 --- a/css/itk_video.css +++ b/css/itk_video.css @@ -25,4 +25,9 @@ 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..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 . '"'; }