mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Image path fixes. thanks Vesko.
This commit is contained in:
@@ -13,6 +13,14 @@ e107::css('gallery', 'jslib/lightbox/css/lightbox.css','jquery');
|
||||
e107::js('gallery', 'jslib/jquery.cycle.all.js','jquery');
|
||||
e107::css('gallery', 'gallery_style.css');
|
||||
|
||||
e107::css('inline', "
|
||||
/* Gallery CSS */
|
||||
a.lb-close { width:27px; height:27px; background:url(".SITEURLBASE.e_PLUGIN_ABS."gallery/images/close.png) no-repeat 0 0; }
|
||||
.lb-loader { background:url(".SITEURLBASE.e_PLUGIN_ABS."gallery/images/loading.gif) no-repeat 50% 49%; }
|
||||
|
||||
",'jquery');
|
||||
|
||||
|
||||
$gp = e107::getPlugPref('gallery');
|
||||
|
||||
e107::js('inline',"
|
||||
|
@@ -78,6 +78,7 @@ lightbox = new Lightbox options
|
||||
var _this = this;
|
||||
return $('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox]', function(e) {
|
||||
_this.start($(e.currentTarget));
|
||||
console.log(this);
|
||||
return false;
|
||||
});
|
||||
};
|
||||
@@ -105,8 +106,8 @@ lightbox = new Lightbox options
|
||||
"class": 'lb-loader'
|
||||
}).append($('<a/>', {
|
||||
"class": 'lb-cancel'
|
||||
}).append($('<img/>', {
|
||||
src: this.options.fileLoadingImage
|
||||
}).append($('<span/>', {
|
||||
"class": 'lb'
|
||||
}))))), $('<div/>', {
|
||||
"class": 'lb-dataContainer'
|
||||
}).append($('<div/>', {
|
||||
@@ -121,8 +122,8 @@ lightbox = new Lightbox options
|
||||
"class": 'lb-closeContainer'
|
||||
}).append($('<a/>', {
|
||||
"class": 'lb-close'
|
||||
}).append($('<img/>', {
|
||||
src: this.options.fileCloseImage
|
||||
}).append($('<span/>', {
|
||||
"class": 'lb'
|
||||
}))))))).appendTo($('body'));
|
||||
$('#lightboxOverlay').hide().on('click', function(e) {
|
||||
_this.end();
|
||||
|
Reference in New Issue
Block a user