@@ -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;">'.
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user