Routing added on maps
This commit is contained in:
parent
e737bcab38
commit
9a2e507c24
3 changed files with 55 additions and 11 deletions
|
|
@ -662,10 +662,12 @@ $siteHeaderTitle = $headerTitles[array_rand($headerTitles)];
|
|||
<video controls controlsList="nodownload" oncontextmenu="return false" preload="metadata" src="<?=h($url)?>"<?= $posterUrl !== '' ? ' poster="'.h($posterUrl).'"' : '' ?>></video>
|
||||
<?php
|
||||
$map = pathinfo($name, PATHINFO_FILENAME)."_map.png";
|
||||
$mapPath = $config['videos_dir']."/".$map;
|
||||
$mapUrl = "/" . ltrim((string)$config['public_videos'], "/") . "/" . rawurlencode($map) . (is_file($mapPath) ? "?v=" . filemtime($mapPath) : "");
|
||||
$hideMap = !empty($hiddenMapOutputs[$name]);
|
||||
if(!$hideMap && is_file($config['videos_dir']."/".$map)):
|
||||
if(!$hideMap && is_file($mapPath)):
|
||||
?>
|
||||
<a class="map-image-link" href="<?=h("/" . ltrim((string)$config['public_videos'], "/") . "/" . rawurlencode($map))?>"><img class="map-image" src="<?=h("/" . ltrim((string)$config['public_videos'], "/") . "/" . rawurlencode($map))?>" alt="Map"></a>
|
||||
<a class="map-image-link" href="<?=h($mapUrl)?>"><img class="map-image" src="<?=h($mapUrl)?>" alt="Map"></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="video-info">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue