Source

cmsplugin-tabslider / cmsplugin_tabslider / templates / cmsplugin_tabslider / slider.html

Konrad Rymczak 32940f4 
























{% load i18n sekizai_tags %}
{% load thumbnail %}
<div class="slider-wrapper theme-{{ tab.theme|default:"default" }}">
    <div id="nivoslider{{ tab.pk }}" class="nivoSlider"
        title="{{ tab.name|default:'' }}"
        {% if instance.height %}
        style="height: {{ instance.height }}px;"
        {% endif %}
        >
        {% for image in tab.images %}
        <img style="width:200px; height: 200px" id="nivo-slide{{ image.pk }}-image"
                src="{{ image.url }}"
                data-thumb="{% thumbnail image.image 64x64 %}"
                alt="{{ image.name|default:'' }}"
                {% if image.description %}title="#nivo_title_{{ image.pk }}"{% endif %}
                />
        {% endfor %}
    </div>
</div>
{% for image in tab.images %}
    {% if image.description %}
    <div id="nivo_title_{{ image.pk }}" class="nivo-html-caption">
        <strong>{{ image.description|default:''|safe }}</strong>
    </div>
    {% endif %}
{% endfor %}