Skip to content

Conversation

@LuomaJuha
Copy link

@LuomaJuha LuomaJuha commented Feb 17, 2025

  • 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

@LuomaJuha LuomaJuha requested a review from EreMaijala February 17, 2025 16:02
@LuomaJuha
Copy link
Author

LuomaJuha commented Feb 18, 2025

Actually managed to break this somehow after yesterday... Fixing... Edit: fixed

@LuomaJuha LuomaJuha removed the request for review from EreMaijala February 18, 2025 14:44
@EreMaijala
Copy link

@LuomaJuha Voitko mergetä uusimman dev:n?

@LuomaJuha
Copy link
Author

@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) {

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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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;

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';

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>

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants