{% load wagtailimages_tags wagtailcore_tags my my_amp %} {% if request.user_agent.is_pc and bg_desktop %}
{% if amp and bg_desktop.0 %} {% include 'cms/blocks/common/bg-slide.html' with media=bg_desktop.0 rendition=rendition_desktop %} {% else %} {% for media in bg_desktop %} {% include 'cms/blocks/common/bg-slide.html' with rendition=rendition_desktop %} {% endfor %} {% if slider %} {% amp_img %} Left {% endamp_img %} {% amp_img %} Right {% endamp_img %} {% endif %} {% 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 %} {% amp_img %} Left {% endamp_img %} {% amp_img %} Right {% endamp_img %} {% endif %}
{% endif %}