Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions css/itk_video.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@
text-align: center;
transform: translateY(-50%);
top: 50%;

& strong {
cursor: pointer;
text-decoration: underline;
}
}
2 changes: 1 addition & 1 deletion src/Plugin/Field/FieldFormatter/VideoFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<strong>Accept cookies</strong> to view this video:');
$blockedText = $this->t('<strong onclick=":js">Accept cookies</strong> to view this video:', [':js' => 'javascript:CookieConsent.renew();']);
if ($fieldValue->title) {
$blockedText .= '<br>"' . $fieldValue->title . '"';
}
Expand Down
Loading