This repository has been archived by the owner on Jan 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
18 changes: 18 additions & 0 deletions
18
aldryn_gallery/templates/aldryn_gallery/plugins/standard/gallery.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
2 changes: 2 additions & 0 deletions
2
aldryn_gallery/templates/aldryn_gallery/plugins/standard/image_slide.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}"> |
18 changes: 18 additions & 0 deletions
18
aldryn_gallery/templates/aldryn_gallery/plugins/standard/slide.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
3 changes: 3 additions & 0 deletions
3
aldryn_gallery/templates/aldryn_gallery/plugins/standard/slide_folder.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% for image in instance.folder.files %} | ||
{% include slide_template %} | ||
{% endfor %} |