{% load i18n pcart_core theme_tags %}
{% if settings.slider_toggle %}
{% for i in "1,5"|range %}
{% capture as slide_toggle silent %}slide{{ i }}_toggle{% endcapture %}
{% capture as slide_link silent %}slide{{ i }}_link{% endcapture %}
{% capture as slide_image silent %}slide{{ i }}_image.jpg{% endcapture %}
{% if settings|element:slide_toggle and settings|element:slide_toggle != '' %}
{% if settings|element:slide_link and settings|element:slide_link != '' %}{% endif %}
{% if settings|element:slide_link and settings|element:slide_link != '' %}{% endif %}
{% endif %}
{% endfor %}
{% if settings.slider_captions_toggle %}
{% for i in "1,5" %}
{% capture as slide_link silent %}slide{{ i }}_link{% endcapture %}
{% capture as caption1 silent %}slide{{ i }}_caption1{% endcapture %}
{% capture as caption2 silent %}slide{{ i }}_caption2{% endcapture %}
{% capture as caption3 silent %}slide{{ i }}_caption3{% endcapture %}