silverstripe-webpack/app/templates/Includes/SiteWideMessage.ss

32 lines
962 B
Scheme
Raw Normal View History

2020-05-24 09:04:07 +02:00
<div id="SiteWideMessage">
<div class="offline-message">
<div class="alert alert-fixed-top alert-danger alert-offline">
<div class="$DefaultContainer">
<b class="btn btn-danger btn-close" data-dismiss="alert" aria-label="Close">
<i class="fas fa-times"></i>
</b>
The Internet connection is missing right now, but you're able to browse previously opened pages offline.
</div>
</div>
</div>
2020-04-02 02:20:17 +02:00
2020-05-24 09:04:07 +02:00
<% if $SiteWideMessage %>
<div class="single-message">
<div class="alert alert-fixed-top alert-{$Type}">
<div class="$DefaultContainer">
<b class="btn btn-danger btn-close" data-dismiss="alert" aria-label="Close">
<i class="fas fa-times"></i>
</b>
{$Message}
</div>
</div>
</div>
<% end_if %>
2020-06-15 20:48:26 +02:00
<% if $URLSegment = 'home' %>
<% with $SiteConfig %>
<% include Site\Objects\NotificationsList %>
<% end_with %>
<% end_if %>
2020-05-24 09:04:07 +02:00
</div>