#1541 Posted in ‘Showtime Image Gallery’

Jip Jonker

Hi Lefteris,

We're using Showtime Image Gallery (v1.10.1) on a Joomla 6 site that also has its own separate PhotoSwipe-based lightbox for regular article images (a custom system plugin, unrelated to Showtime). When a Showtime gallery (renderer: PhotoSwipe, layout: Wall) and one of our own popup images appear on the same page, we run into two issues:

1. CSS/icon conflict between two PhotoSwipe versions

Showtime's PhotoSwipe renderer bundles PhotoSwipe 4.1.2 (media/showtime/vendor/photoswipe/), while our own integration uses the current PhotoSwipe 5.x (ESM build). Both use the same .pswp/.pswp__* class names — that's expected, since it's PhotoSwipe's own convention — but the CSS rules and DOM structure differ significantly between the two major versions (e.g. v4's sprite-based icons via default-skin.css/png/svg vs. v5's inline SVG icons). When both stylesheets load on the same page, they visibly clash: broken/duplicated icons in both the Showtime modal and our own modal.

Would you consider updating the bundled PhotoSwipe renderer to the current PhotoSwipe 5.x release? That would align it with the version most sites are standardizing on now, and would remove the version-mismatch as a source of conflicts for anyone running a second PhotoSwipe integration alongside Showtime.

2. jQuery is loaded even though it isn't needed

We noticed plugins/showtime/photoswipe/photoswipe.php (initialize(), around line 24) unconditionally calls HTMLHelper::_('jquery.framework'), even though PhotoSwipe itself doesn't require jQuery. We checked all seven bundled renderers — they all make this same call, presumably copied across from the renderers that genuinely need it (Fancybox, Magnific, Swipebox). We also confirmed the "Wall" layout itself (macy.js) has no jQuery dependency at all.

For sites that have deliberately removed jQuery elsewhere, this means enabling the Showtime module reintroduces it — solely because of this one line, not because PhotoSwipe or the Wall layout actually need it. Would it be possible to drop the jquery.framework call from the PhotoSwipe (and lightGallery, which has the same situation) renderer specifically? That alone would let sites use Showtime with the PhotoSwipe renderer without pulling in jQuery.

Happy to provide more detail or test a patch if useful. Thanks for considering these!

Best regards,
Jip Jonker

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review