Permalink
Browse files

add orbit slider

  • Loading branch information...
1 parent 4096672 commit 2cb66e07d21671ab4551b1691f6abc549ed6fac7 @fivethreeo committed Sep 14, 2011
@@ -0,0 +1,22 @@
+{% load adminmedia sekizai_tags %}
+{% addtoblock "js" %}<script type="text/javascript" src="{% admin_media_prefix %}js/jquery.min.js"></script>{% endaddtoblock %}
+{% addtoblock "js" %}<script type="text/javascript" src="{% admin_media_prefix %}filer_gallery/orbit/orbit-1.2.3.js"></script>{% endaddtoblock %}
+{% addtoblock "css %}<script type="text/javascript" src="{% admin_media_prefix %}filer_gallery/orbit/orbit-1.2.3.css"></script>{% endaddtoblock %}
+{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}cmsplugin_filer_gallery/cmsplugin_filer_gallery.css" media="all" />{% endaddtoblock %}
+{% addtoblock "js" %}
+<script type="text/javascript">
+//<![CDATA[
+jQuery(document).ready(function ($) {
+ $('#filer-gallery-{{ instance.pk }}').orbit();
+});
+//]]>
+</script>
+{% endaddtoblock %}
+</script>
+{% endaddtoblock %}
+
+<div id="filer-gallery-{{ instance.pk }}">
+ {% for image in instance.gallery.galleryimage_set.all %}
+ <img src="{% thumbnail image.image 300x200 %}" alt="{{ image.title }}" />
+ {% endfor %}
+</div>

0 comments on commit 2cb66e0

Please sign in to comment.