description
For the version 01.06, the last version compatible with DNN 5, I added a function to collapse all the albums, this feature is very handy when you have a long list of albums.
you only need edit ViewLightbox.ascx file, and use the "jquery Collapse" you can download from http://webcloud.se/code/jQuery-Collapse/
This is the code:
<script src="http://webcloud.se/code/jQuery-Collapse/jquery.collapse-0.9.2.min.js"></script>
<asp:Repeater ID="rptGallery" runat="server">
<ItemTemplate>
<div class="wns_lightbox_wrapper wns-showlater">
<a class="EditAlbumLink" href='<%#GetEditUrl(DataBinder.Eval(Container.DataItem, "LightboxId"))%>'><img src="" alt='<%=Me.GetLocalizedString("EditImage.Alt")%>' title='<%=Me.GetLocalizedString("EditImage.Alt")%>' class="wns-image EditImage" /></a>
<a class="ReorderLink" href='<%#GetReorderUrl(DataBinder.Eval(Container.DataItem, "LightboxId"))%>'><img src="" alt='<%=Me.GetLocalizedString("OrderImage.Alt")%>' title='<%=Me.GetLocalizedString("OrderImage.Alt")%>' class="wns-image OrderImage" /></a>
<div class="collapse<%#Server.HtmlDecode(DataBinder.Eval(Container.DataItem, "LightboxId"))%>">
<h3><%#Server.HtmlDecode(DataBinder.Eval(Container.DataItem, "GalleryName"))%></h3>
<div class="Normal">
<p class="Normal wns_lightbox_description"><%#Server.HtmlDecode(DataBinder.Eval(Container.DataItem, "GalleryDescription").ToString)%></p>
<%#Me.GetImageFiles(DataBinder.Eval(Container.DataItem, "LightboxId"), DataBinder.Eval(Container.DataItem, "GalleryFolder"), DataBinder.Eval(Container.DataItem, "GalleryName"))%>
</div>
</div>
<script language="javascript" type="text/javascript">
$(".collapse<%#Server.HtmlDecode(DataBinder.Eval(Container.DataItem, "LightboxId"))%>").collapse({show: function(){
this.animate({
opacity: 'toggle',
height: 'toggle'
}, 300);
},
hide : function() {
this.animate({
opacity: 'toggle',
height: 'toggle'
}, 300);
}
});
</script>
</div>
</ItemTemplate>
</asp:Repeater>