Permalink
Browse files

configuration options

  • Loading branch information...
1 parent 52f0917 commit 7f82c3c010fa4835df7c3500042631f744c385d7 @fivethreeo committed Sep 14, 2011
Showing with 12 additions and 2 deletions.
  1. +12 −2 cmsplugin_filer_gallery/templates/cmsplugin_filer_gallery/gallery.html
@@ -8,6 +8,11 @@
//<![CDATA[
(function ($) {
var config = {{ orbit_config|safe }}
+
+ config.bulletThumbs = false // thumbnails for the bullets
+ config.bulletThumbLocation = ''
+ config.afterSlideChange = function(){}
+
$(document).ready(function () {
$('#filer-gallery-{{ instance.pk }}').orbit(config);
});
@@ -18,6 +23,11 @@
<div id="filer-gallery-{{ instance.pk }}">
{% for image in instance.gallery.galleryimage_set.all %}
- <img src="{% thumbnail image.image size %}" alt="{{ image.title }}" />
+ <img src="{% thumbnail image.image size %}" alt="{{ image.title }}" {% if instance.captions %}data-caption="#filer-gallery-caption-{{ image.pk }}"{% endif %} />
{% endfor %}
-</div>
+</div>
+{% if instance.captions %}
+ {% for image in instance.gallery.galleryimage_set.all %}
+ <span class="orbit-caption" id="filer-gallery-caption-{{ image.pk }}">{{ image.title }}</span>
+ {% endfor %}
+{% endif %}

0 comments on commit 7f82c3c

Please sign in to comment.