- Thumbnail URL

This commit is contained in:
Ty Clifford
2026-06-03 02:45:54 -04:00
parent 749862bb21
commit b8ebc17dcd
+2 -3
View File
@@ -77,7 +77,6 @@ render_head('Videos — TyClifford.com', '
<div class="empty-state">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
<p>no videos in the catalogue yet</p>
<a href="admin/index.php" class="btn btn-secondary btn-sm">Go to Admin →</a>
</div>
</div>
<?php else: ?>
@@ -90,10 +89,10 @@ render_head('Videos — TyClifford.com', '
$vdur = (int)$v['duration'];
$created = substr($v['created_at'], 0, 10);
?>
<a class="cat-thumb" href="../index.php?v=<?= urlencode($vslug) ?>" title="<?= h($vtitle) ?>">
<a class="cat-thumb" href="https://tyclifford.com/player/?v=<?= urlencode($vslug) ?>" title="<?= h($vtitle) ?>">
<div class="cat-thumb-img">
<?php if ($vthumb): ?>
<img src="<?= h('../' . MEDIA_URL . $vthumb) ?>" alt="<?= h($vtitle) ?>" loading="lazy">
<img src="<?= h(MEDIA_URL . $vthumb) ?>" alt="<?= h($vtitle) ?>" loading="lazy">
<?php else: ?>
<div class="no-thumb">NO THUMBNAIL</div>
<?php endif; ?>