dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.38k stars 3.5k forks source link

bottom bar only shows counter (mfp 1.1.0 on Drupal 7) #1165

Open ixaxi opened 3 years ago

ixaxi commented 3 years ago

I'm using mfp 1.1.0, on a Drupal 7 site. My page generates 18 images, each when clicked opens up in the mfp overlay. However, no matter what I try, I can't get the bottom bar to show either title or alt of the image shown. I delved into the js file (jquery.magnific-popup.min.js) but can't get my head around how the 'markup' bit generates the title etc. The script does generate the alt value in the img tag, and I added the title page there as well, but where the title should show in the bottom bar it remains empty..

I had a look at the issues here and to my surprise found some code in src/image.js which seems to retrieve the title data. However, that code is utterly absent from the jquery.magnific-popup.min.js file?

Now I put the jquery.magnific-popup.min.js and the jquery.magnific-popup.js next to each other so to speak and find they are not at all the same, whereas I assumed the one was just the minified version of the other? The jquery.magnific-popup.js version does seem to contain the title code etc.

Xander (PS I tried installing the Drupal Magnific pop-up but then my entire site goes into permanent loading image, so I'm guessing that triggers a jquery conflict somewhere?)