silverstripe-webpack/app/templates/Site/Widgets/BannerWidget.ss
2020-08-14 05:36:26 +07:00

9 lines
277 B
Scheme

<img src="$Image.FocusFill(432,315).URL" alt="$Title" />
<% if $Link %>
<% with $Link %>
<a href="$URL"<% if $OpenInNewWindow %> target="_blank"<% end_if %> class="stretched-link">
<span class="sr-only">$Up.Title</span>
</a>
<% end_with %>
<% end_if %>