-
Notifications
You must be signed in to change notification settings - Fork 44
[FINNA-3012] Renormalize displaying videos #3155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
Actually managed to break this somehow after yesterday... Fixing... Edit: fixed |
… has been marked as legacy and found in custom theme
…sted player height
|
@LuomaJuha Voitko mergetä uusimman dev:n? |
|
@EreMaijala dodi, nyt pitäis olla |
| // Template for using proper styles, when appending video viewer inside an element. | ||
| %iframe-centering-template { | ||
| height: $inline-video-player-desktop-height; | ||
| @media (max-width: $screen-md-max) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Käytä Bootstrapin media-helpereitä.
| @@ -0,0 +1,57 @@ | |||
| <?php | |||
| /** | |||
| * Component for opening or displaying proper video content. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Component for opening or displaying proper video content. | |
| * Component for opening or displaying video content. |
| * @param string description Text description inside the button. Default is format_Video translated. | ||
| */ | ||
|
|
||
| $inlineVideoPlayer = $this->inline ?? false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missä dokumentaatio inline-parametrille?
| ]; | ||
|
|
||
| if ($index === 0 && $inlineVideoPlayer) { | ||
| $buttonAttributes['class'] .= ' active-video'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aloittaako tämä toiston automaattisesti? Jos aloittaa, niin miksi? Jos ei, niin mikä tämän merkitys on?
| ?> | ||
| <button <?=$this->htmlAttributes($buttonAttributes);?> <?php if ($videoSources): ?>data-video-sources="<?=htmlspecialchars(json_encode($videoSources), ENT_QUOTES, 'UTF-8');?>"<?php endif;?>> | ||
| <?=$this->icon('video-play', 'video-play-icon');?> | ||
| <span class="video-desc"><?=$this->escapeHtml($this->truncate(ucfirst($description), 30))?></span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kuuluuko ucfirst tänne? Vai olisiko se ennemmin kutsujan tai driverin tms. asia?
Co-authored-by: Ere Maijala <[email protected]>
Co-authored-by: Ere Maijala <[email protected]>
Co-authored-by: Ere Maijala <[email protected]>
Co-authored-by: Ere Maijala <[email protected]>
Co-authored-by: Ere Maijala <[email protected]>
…irst out from button
Co-authored-by: Ere Maijala <[email protected]>
Removes 2 custom elements, adds a component like others
Removes displaying of videos inside popups, instead opens them in their respective windows
Fixes displaying if inline video is set to true
Use Lightbox instead of finna-popup
Checked that templates record-video-player and record-online-urls were modified in kavis templates. They have a locally managed player code.
#3307 Requires