{% extends 'wfbo/_layout.html.twig' %} {% block wfbo_title %}Popup Banners{% endblock %} {% block wfbo_content %} {% for flash in app.flashes('success') %} {% endfor %} {% for flash in app.flashes('error') %} {% endfor %}

Pops up on the player home page. After a player closes it, it pops up again 1 hour later. With no End date it keeps showing until disabled. Several active banners share one popup the player can swipe through.

+ Add New
{% if banners is empty %}

No popup banners added yet.

{% else %}
{% for banner in banners %} {% set status = banner.status(now) %} {% endfor %}
Image Title Duration Link Sort Status Actions
{{ banner.title }} {{ banner.title }} {% if banner.startsAt is null and banner.endsAt is null %} Always on {% elseif banner.endsAt is null %} From {{ banner.startsAt|date('M j, Y g:i A') }} {% elseif banner.startsAt is null %} Until {{ banner.endsAt|date('M j, Y g:i A') }} {% else %} {{ banner.startsAt|date('M j, Y g:i A') }} – {{ banner.endsAt|date('M j, Y g:i A') }} {% endif %} {% if banner.linkUrl %} {{ banner.linkUrl }} {% else %}—{% endif %} {{ banner.sortOrder }} {{ status }}
Edit
{% endif %}
{% endblock %}