Compare commits

..

2 Commits

Author SHA1 Message Date
6806031931 IMPR: HTML5 lazy loading 2023-08-02 14:51:19 +02:00
ea290f8358 [IMPR] Display first element title automatically 2023-06-20 19:26:20 +02:00
2 changed files with 3 additions and 2 deletions

View File

@ -95,6 +95,7 @@ class BaseElementEx extends DataExtension
$page = $el->getPage();
if ($page) {
$el->setField('Title', $page->getField('Title'));
$el->setField('ShowTitle', true);
}
}
}

View File

@ -12,8 +12,8 @@
<% if $Image || $ImageURL %>
<span class="img">
<img class="carousel__img"
src="{$EmptyImgSrc}"
data-lazy-src="<% if $ImageURL %>$ImageURL<% else %>$Image.FocusFill($SlideWidth,$SlideHeight).URL<% end_if %>"
src="<% if $ImageURL %>$ImageURL<% else %>$Image.FocusFill($SlideWidth,$SlideHeight).URL<% end_if %>"
loading="lazy"
alt="<% if $Headline %>$Headline.XML<% end_if %>"
/>
</span>