mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
Compare commits
2 Commits
f1dd6da7d4
...
6806031931
Author | SHA1 | Date | |
---|---|---|---|
6806031931 | |||
ea290f8358 |
@ -95,6 +95,7 @@ class BaseElementEx extends DataExtension
|
||||
$page = $el->getPage();
|
||||
if ($page) {
|
||||
$el->setField('Title', $page->getField('Title'));
|
||||
$el->setField('ShowTitle', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user