Advertisement
nlozovan

Untitled

Jun 23rd, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. FIND:
  2.  
  3. //console.log(enb_gall);
  4. if ((jQuery('body').hasClass('single-gallery') || enb_gall ) && gallery_type != 'sly' && !enb_Galleria.password_protected) {
  5. if(galleria.gallery_type == 'clasic'){
  6. Galleria.run('#galleria', {responsive:true, height: getGalleryHeight(), debug:false, swipe: true, transition: 'fadeslide', imageMargin: 0});
  7. }else if(galleria.gallery_type == 'folio'){
  8. Galleria.run('#galleria', {imageCrop:false, imageMargin:60, show:5});
  9. }
  10. }
  11.  
  12. EDIT IN:
  13.  
  14. //console.log(enb_gall);
  15. if ((jQuery('body').hasClass('single-gallery') || enb_gall ) && gallery_type != 'sly' && !enb_Galleria.password_protected) {
  16. if(galleria.gallery_type == 'clasic'){
  17. Galleria.run('#galleria', {responsive:true, height: getGalleryHeight(), debug:false, swipe: true, transition: 'fadeslide', imageMargin: 0});
  18. }else if(galleria.gallery_type == 'folio'){
  19.  
  20.  
  21. jQuery('#galleria').attr('id', 'newid');
  22. var oldgal = jQuery('#newid').html();
  23. jQuery('#newid').attr('id', 'galleria');
  24. jQuery('#main').append('<div class="hidden nicushor">' + oldgal + '</div>');
  25.  
  26.  
  27. Galleria.run('#galleria', {imageCrop:false, imageMargin:60, show:5});
  28.  
  29.  
  30. Galleria.ready(function() {
  31.  
  32. this.bind("thumbnail", function(e) {
  33.  
  34. jQuery('.galleria-image .galleria-plus').each(function(){
  35.  
  36. var append = '';
  37.  
  38. if (jQuery(this).find('.added').length == 0) {
  39. var url = jQuery(this).parent().find('img').attr('src');
  40. jQuery('.nicushor a img').each(function(){
  41. if (jQuery(this).attr('src') == url) {
  42. var desc = jQuery(this).attr('data-description')
  43. // jQuery(this).append('<div class="added">'+desc+'</div>');
  44. append = '<div class="added">'+desc+'</div>';
  45. return true;
  46. }
  47. });
  48. }
  49. jQuery(this).append(append);
  50.  
  51. });
  52. });
  53.  
  54. });
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement