{% load wagtailimages_tags wagtailcore_tags my %} {% if request.user_agent.is_pc and bg_desktop %}
{% for media in bg_desktop %} {% include 'cms/blocks/common/bg-slide.html' with rendition=rendition_desktop %} {% endfor %} {% if slider %} Left Right {% endif %} {% if layer %}
{% endif %}
{% endif %} {% if not request.user_agent.is_pc and bg_mobile %}
{% for media in bg_mobile %} {% include 'cms/blocks/common/bg-slide.html' with rendition=rendition_mobile %} {% endfor %} {% if slider %} Left Right {% endif %}
{% endif %}