mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
Compare commits
No commits in common. "6806031931b3fbe1e6bb7cbbf3e5fe4c238aec15" and "f1dd6da7d499b569d3eb3114fd9037fb01e0819e" have entirely different histories.
6806031931
...
f1dd6da7d4
@ -95,7 +95,6 @@ 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="<% if $ImageURL %>$ImageURL<% else %>$Image.FocusFill($SlideWidth,$SlideHeight).URL<% end_if %>"
|
||||
loading="lazy"
|
||||
src="{$EmptyImgSrc}"
|
||||
data-lazy-src="<% if $ImageURL %>$ImageURL<% else %>$Image.FocusFill($SlideWidth,$SlideHeight).URL<% end_if %>"
|
||||
alt="<% if $Headline %>$Headline.XML<% end_if %>"
|
||||
/>
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user