Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FIND:
- //console.log(enb_gall);
- if ((jQuery('body').hasClass('single-gallery') || enb_gall ) && gallery_type != 'sly' && !enb_Galleria.password_protected) {
- if(galleria.gallery_type == 'clasic'){
- Galleria.run('#galleria', {responsive:true, height: getGalleryHeight(), debug:false, swipe: true, transition: 'fadeslide', imageMargin: 0});
- }else if(galleria.gallery_type == 'folio'){
- Galleria.run('#galleria', {imageCrop:false, imageMargin:60, show:5});
- }
- }
- EDIT IN:
- //console.log(enb_gall);
- if ((jQuery('body').hasClass('single-gallery') || enb_gall ) && gallery_type != 'sly' && !enb_Galleria.password_protected) {
- if(galleria.gallery_type == 'clasic'){
- Galleria.run('#galleria', {responsive:true, height: getGalleryHeight(), debug:false, swipe: true, transition: 'fadeslide', imageMargin: 0});
- }else if(galleria.gallery_type == 'folio'){
- jQuery('#galleria').attr('id', 'newid');
- var oldgal = jQuery('#newid').html();
- jQuery('#newid').attr('id', 'galleria');
- jQuery('#main').append('<div class="hidden nicushor">' + oldgal + '</div>');
- Galleria.run('#galleria', {imageCrop:false, imageMargin:60, show:5});
- Galleria.ready(function() {
- this.bind("thumbnail", function(e) {
- jQuery('.galleria-image .galleria-plus').each(function(){
- var append = '';
- if (jQuery(this).find('.added').length == 0) {
- var url = jQuery(this).parent().find('img').attr('src');
- jQuery('.nicushor a img').each(function(){
- if (jQuery(this).attr('src') == url) {
- var desc = jQuery(this).attr('data-description')
- // jQuery(this).append('<div class="added">'+desc+'</div>');
- append = '<div class="added">'+desc+'</div>';
- return true;
- }
- });
- }
- jQuery(this).append(append);
- });
- });
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement