mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57: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::js('gallery', 'jslib/jquery.cycle.all.js','jquery');
|
||||||
e107::css('gallery', 'gallery_style.css');
|
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');
|
$gp = e107::getPlugPref('gallery');
|
||||||
|
|
||||||
e107::js('inline',"
|
e107::js('inline',"
|
||||||
|
@@ -78,6 +78,7 @@ lightbox = new Lightbox options
|
|||||||
var _this = this;
|
var _this = this;
|
||||||
return $('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox]', function(e) {
|
return $('body').on('click', 'a[rel^=lightbox], area[rel^=lightbox]', function(e) {
|
||||||
_this.start($(e.currentTarget));
|
_this.start($(e.currentTarget));
|
||||||
|
console.log(this);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -105,8 +106,8 @@ lightbox = new Lightbox options
|
|||||||
"class": 'lb-loader'
|
"class": 'lb-loader'
|
||||||
}).append($('<a/>', {
|
}).append($('<a/>', {
|
||||||
"class": 'lb-cancel'
|
"class": 'lb-cancel'
|
||||||
}).append($('<img/>', {
|
}).append($('<span/>', {
|
||||||
src: this.options.fileLoadingImage
|
"class": 'lb'
|
||||||
}))))), $('<div/>', {
|
}))))), $('<div/>', {
|
||||||
"class": 'lb-dataContainer'
|
"class": 'lb-dataContainer'
|
||||||
}).append($('<div/>', {
|
}).append($('<div/>', {
|
||||||
@@ -121,8 +122,8 @@ lightbox = new Lightbox options
|
|||||||
"class": 'lb-closeContainer'
|
"class": 'lb-closeContainer'
|
||||||
}).append($('<a/>', {
|
}).append($('<a/>', {
|
||||||
"class": 'lb-close'
|
"class": 'lb-close'
|
||||||
}).append($('<img/>', {
|
}).append($('<span/>', {
|
||||||
src: this.options.fileCloseImage
|
"class": 'lb'
|
||||||
}))))))).appendTo($('body'));
|
}))))))).appendTo($('body'));
|
||||||
$('#lightboxOverlay').hide().on('click', function(e) {
|
$('#lightboxOverlay').hide().on('click', function(e) {
|
||||||
_this.end();
|
_this.end();
|
||||||
|
Reference in New Issue
Block a user