Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
Riccardo Di Dato
2017-07-13 19:46:05 +02:00
parent 865ad9c9c2
commit 68ace88aef
2 changed files with 2 additions and 2 deletions
@@ -14,7 +14,7 @@ class MediaLocalVideo extends MediaRenderer{
}
$loaderSize = self::$SIZES[self::SIZE_BIG];
$hideControls = array_key_exists("hideControls", $opt) && $opt["hideControls"];
$hideControls = array_key_exists("hideControls", $opt) && $opt["hideControls"]===true;
return '<div style="position:relative;" class="videoContainerForImageAppend"><img class="poster" src="'.GUIHandler::getBaseUrl().'/images/loading.gif" style="width:'.$loaderSize["width"].'px;height:'.$loaderSize["height"].'px;" />'.
'<video class="localVideo" width="'.$size["width"].'" preload="auto" '.($hideControls?"":"controls").' style="visibility:hidden;">'.
+1 -1
View File
@@ -174,7 +174,7 @@ catch (Exception $ex){
<?php
$media = DaoMediaHandler::getMainMediaFromModel($articolo);
if(!is_null($media)){?>
<div class="newsImage"><?php $media->renderMedia(["hideControls"=>($i==0)]);?></div>
<div class="newsImage"><?php $media->renderMedia(["hideControls"=>($i!=0)]);?></div>
<?php }?>
<div class="newsTitle"><?php echo $stringTitolo;?></div>
</a>