silverstripe-webpack/app/templates/Site/Widgets/BannerWidget.ss

9 lines
277 B
Scheme
Raw Normal View History

2020-08-14 00:36:26 +02:00
<img src="$Image.FocusFill(432,315).URL" alt="$Title" />
2019-12-12 17:04:57 +01:00
<% 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 %>