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

@ -545,6 +545,7 @@ h1 {
.thumb { .thumb {
max-width: 700px; max-width: 700px;
height: auto;
} }
.format { .format {

View file

@ -1,8 +1,7 @@
<h1 class="logobis"> <h1 class="logobis">
<a class="logocompatible" href="{base_url}"> <a class="logocompatible" href="{base_url}">
<span class="logocompatiblemask"> <span class="logocompatiblemask">
<img src="{base_url}/img/logocompatiblemask.png" width="447" height="107" {html_image file='img/logocompatiblemask.png' path_prefix={base_url}|cat:'/' alt=$config->appName}
alt="{$config->appName}"/>
</span> </span>
</a> </a>
</h1> </h1>

View file

@ -1,7 +1,8 @@
{extends file='page.tpl'} {extends file='page.tpl'}
{block name='main'} {block name='main'}
<div><img class="logo" src="{base_url}/img/logo.png" <div>
alt="{$config->appName}" width="328" height="284"></div> {html_image file='img/logo.png' path_prefix={base_url}|cat:'/' alt=$config->appName class="logo"}
</div>
<form action="{path_for name="info"}"> <form action="{path_for name="info"}">
<label class="labelurl" for="url"> <label class="labelurl" for="url">
{t}Copy here the URL of your video (YouTube, Dailymotion, etc.){/t} {t}Copy here the URL of your video (YouTube, Dailymotion, etc.){/t}

View file

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