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.
Merge branch 'origin/feature/multi-boilerplate-fixes' into develop
Conflicts: setup.py
- Loading branch information
Showing
22 changed files
with
271 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
0.3 (2015-01-26) | ||
================ | ||
|
||
* multi-boilerplate support | ||
new requirement: aldryn-boilerplates (needs configuration) | ||
|
||
* removed ``feature`` plugin style by default. Add it to the ``GALLERY_STYLES`` setting to restore | ||
old behaviour |
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,6 +1,5 @@ | ||
include LICENSE.txt | ||
recursive-include aldryn_gallery/templates * | ||
recursive-include aldryn_gallery/boilerplates * | ||
recursive-include aldryn_gallery/locale * | ||
recursive-include aldryn_gallery/migrations * | ||
recursive-include aldryn_gallery/static * | ||
recursive-exclude * *.pyc |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ates/aldryn_gallery/standard/gallery.html → ...ryn_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
4 changes: 4 additions & 0 deletions
4
...allery/boilerplates/bootstrap3/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,4 @@ | ||
{# Slide for a filer.Image instance #} | ||
<div class="item{% if forloop.first %} active{% endif %}"> | ||
<img src="{{ image.url }}" alt="{{ image.default_alt_text|default:image.label }}" /> | ||
</div> |
7 changes: 5 additions & 2 deletions
7
...plates/aldryn_gallery/standard/slide.html → ...ldryn_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
3 changes: 3 additions & 0 deletions
3
...llery/boilerplates/bootstrap3/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 %} |
1 change: 1 addition & 0 deletions
1
aldryn_gallery/boilerplates/legacy/static/js/addons/cl.gallery.min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
aldryn_gallery/boilerplates/legacy/static/js/libs/class.min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
aldryn_gallery/boilerplates/legacy/templates/aldryn_gallery/base.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,19 @@ | ||
{% load static sekizai_tags %} | ||
|
||
<div class="plugin plugin-gallery plugin-gallery-{{ instance.style }}" id="plugin-gallery-{{ instance.pk }}"> | ||
{% block content_gallery %}{% endblock %} | ||
</div> | ||
|
||
{% addtoblock "js" %}<script src="{% static "js/libs/class.min.js" %}"></script>{% endaddtoblock %} | ||
{% addtoblock "js" %}<script src="{% static "js/addons/cl.gallery.min.js" %}"></script>{% endaddtoblock %} | ||
{% addtoblock "js" %} | ||
<script> | ||
jQuery(window).load(function () { | ||
new Cl.Gallery('#plugin-gallery-{{ instance.pk }}', { | ||
'engine': '{{ instance.engine }}', | ||
'duration': {{ instance.duration }}, | ||
'timeout': {{ instance.timeout }} | ||
}); | ||
}); | ||
</script> | ||
{% endaddtoblock %} |
25 changes: 25 additions & 0 deletions
25
aldryn_gallery/boilerplates/legacy/templates/aldryn_gallery/plugins/feature/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,25 @@ | ||
{% extends "aldryn_gallery/plugins/standard/gallery.html" %} | ||
{% load i18n cms_tags shuffle %} | ||
|
||
{% block content_gallery %} | ||
<div class="wrapper"> | ||
<p class="trigger-previous"><a href="#{% trans "previous" %}">{% trans "previous" %}</a></p> | ||
<ul class="viewport"> | ||
{% 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 %} | ||
</ul> | ||
<p class="trigger-next"><a href="#{% trans "next" %}">{% trans "next" %}</a></p> | ||
</div> | ||
<nav> | ||
{% for slide in slides %} | ||
<a href="#{{ forloop.counter }}">{{ forloop.counter }}</a> | ||
{% endfor %} | ||
</nav> | ||
{% endblock content_gallery %} |
7 changes: 7 additions & 0 deletions
7
aldryn_gallery/boilerplates/legacy/templates/aldryn_gallery/plugins/feature/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,7 @@ | ||
<li class="item"{% if image %} style="background-image:url({{ image.url }});"{% endif %}> | ||
{% if instance.content %} | ||
<div class="item-content"> | ||
{{ instance.content|safe }} | ||
</div> | ||
{% endif %} | ||
</li> |
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
aldryn_gallery/boilerplates/legacy/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,25 @@ | ||
{% extends "aldryn_gallery/base.html" %} | ||
{% load i18n cms_tags shuffle %} | ||
|
||
{% block content_gallery %} | ||
<div class="wrapper"> | ||
<p class="trigger-previous"><a href="#{% trans "previous" %}">{% trans "previous" %}</a></p> | ||
<ul class="viewport"> | ||
{% 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 %} | ||
</ul> | ||
<p class="trigger-next"><a href="#{% trans "next" %}">{% trans "next" %}</a></p> | ||
</div> | ||
<nav> | ||
{% for slide in slides %} | ||
<a href="#{{ forloop.counter }}">{{ forloop.counter }}</a> | ||
{% endfor %} | ||
</nav> | ||
{% endblock content_gallery %} |
16 changes: 16 additions & 0 deletions
16
aldryn_gallery/boilerplates/legacy/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,16 @@ | ||
<li class="item"> | ||
{% with link=instance.get_link %} | ||
{% 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 %} | ||
<div class="item-content"> | ||
{{ instance.content|safe }} | ||
</div> | ||
{% endif %} | ||
</li> |
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
Oops, something went wrong.