Source

cmsplugin-photologue / cmsplugin_photologue / templates / plugins / cmsplugin_photologue / photologue_gallery.html

The cms-2.X branch has multiple heads

Full commit
tehfink 7f81044 






















tehfink 7252b7f 















tehfink 7f81044 
{% if text_enabled %}

    <span class="photo-gallery{% if css %} {{ css }}{% endif %}">

        <a href="{{ gallery.get_absolute_url }}">

            <span>{{ gallery.title }}</span>

            {% for photo in gallery.sample|slice:sample_size %}

            <div class="gallery-photo">

                <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/>

            </div>

            {% endfor %}

        </a>

    </span>

{% else %}

    <div class="photo-gallery{% if css %} {{ css }}{% endif %}">

        <h2><a href="{{ gallery.get_absolute_url }}">{{ gallery.title }}</a></h2>

        {% for photo in gallery.sample|slice:sample_size %}

        <div class="gallery-photo">

            <a href="{{ photo.get_absolute_url }}"><img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/></a>

        </div>

        {% endfor %}

    </div>

{% endif %}