Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
Merge 3fdeaca into 24e42d9
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalAngel committed Apr 27, 2016
2 parents 24e42d9 + 3fdeaca commit e5aab1b
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 3 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
0.3 (2015-01-26)
================
CHANGELOG
=========


0.4.0 (2015-01-26)
------------------

* Added compatibility for other boilerplates.


0.3.0 (2015-01-26)
------------------

* multi-boilerplate support
new requirement: aldryn-boilerplates (needs configuration)
Expand Down
2 changes: 1 addition & 1 deletion aldryn_gallery/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '0.3.1'
__version__ = '0.4.0'
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% load i18n cms_tags shuffle %}

<div id="gallery-{{ instance.pk }}" class="gallery-{{ instance.style }} {{ instance.extra_styles }}
{% if instance.engine == 'fade' %} gallery-fade{% endif %}
{% if instance.engine == 'slide' %} gallery-slide{% endif %}"
data-duration="{{ instance.duration }}"
data-timeout="{{ instance.timeout }}">

{% if instance.shuffle %}
{% for plugin in instance.child_plugin_instances|shuffle %}
{% render_plugin plugin %}
{% endfor %}
{% else %}
{% for plugin in instance.child_plugin_instances %}
{% render_plugin plugin %}
{% endfor %}
{% endif %}
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{# Slide for a filer.Image instance #}
<img src="{{ image.url }}" alt="{{ image.default_alt_text|default:image.label }}">
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{# Slide for a SlideCMSPlugin instance #}
{% with link=instance.get_link image=instance.image %}
{% if link %}
<a href="{{ link }}"{% if instance.target %} target="{{ instance.target }}"{% endif %}>
{% if image %}
<img src="{{ image.url }}" alt="{{ image.default_alt_text|default:image.label }}">
{% else %}
{{ instance.link_text }}
{% endif %}
</a>
{% elif image %}
<img src="{{ image.url }}" alt="{{ image.default_alt_text|default:image.label }}">
{% endif %}
{% endwith %}

{% if instance.content %}
{{ instance.content|safe }}
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% for image in instance.folder.files %}
{% include slide_template %}
{% endfor %}

0 comments on commit e5aab1b

Please sign in to comment.