Generate <img> tags with Smarty

This commit is contained in:
Pierre Rudloff 2022-02-06 19:17:05 +01:00
parent ce9b4d9a48
commit d9ba01f017
4 changed files with 6 additions and 5 deletions

View file

@ -7,7 +7,7 @@
{t params=['@title' => $title]}You are going to download @title.{/t}
</p>
{if isset($video->thumbnail)}
<img itemprop="thumbnailUrl" class="thumb" src="{$video->thumbnail}" alt=""/>
{html_image file=$video->thumbnail itemprop="thumbnailUrl" class="thumb"}
{/if}
{if isset($video->description)}
<meta itemprop="description" content="{$video->description|escape}"/>