

Участок кода в lightbox.js, где задается нумерация:
//
// updateDetails()
// Display caption, image number, and bottom nav.
//
updateDetails: function() {
// if caption is not null
if (this.imageArray[this.activeImage][1] != ""){
this.caption.update(this.imageArray[this.activeImage][1]).show();
}
// if image is part of set display 'Image x of x'
if (this.imageArray.length > 1){
this.numberDisplay.update( LightboxOptions.labelImage + ' ' + (this.activeImage + 1) + ' ' + LightboxOptions.labelOf + ' ' + this.imageArray.length + '<a href="' + this.lightboxImage.src + '" style="font-size: 15px; color: red;" >' + ' Скачать фотографию' + '</a>').show();
}
//document.write('<a href="http://site.ru">' + 'Ссылка' + '</a>');
new Effect.Parallel(
[
new Effect.SlideDown(this.imageDataContainer, { sync: true, duration: this.resizeDuration, from: 0.0, to: 1.0 }),
new Effect.Appear(this.imageDataContainer, { sync: true, duration: this.resizeDuration })
],
{
duration: this.resizeDuration,
afterFinish: (function() {
// update overlay size and update nav
var arrayPageSize = this.getPageSize();
this.overlay.setStyle({ height: arrayPageSize[1] + 'px' });
this.updateNav();
}).bind(this)
}
);
},
Участок кода в gallery_album.tpl, где задается нумерация страниц в альбоме:{section name=i loop=$images}
{image data=$images[i] width=245 height=150 lightbox=true style="margin: 3px 5px 2px 0; display: inline-block;"}
{/section}
{object obj=$images_pager}
