More readable way to include HTML in translated strings

This commit is contained in:
Pierre Rudloff 2022-02-03 21:07:13 +01:00
parent bdf5554430
commit de74808459
7 changed files with 21 additions and 19 deletions

View file

@ -4,10 +4,7 @@
{include file="inc/logo.tpl"}
{if isset($video->title)}
{$title="<i>
<a href='{$video->webpage_url}'>
{$video->title}</a>
</i>"}
{include file='snippets/title.tpl' assign=title}
<p>
{t params=['@title'=>$title]}Videos extracted from @title:{/t}
</p>