Photoswipe bug - multiple use on one page

Phoca Gallery plugins - plugins for Phoca Gallery extension
pivovary
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 24 May 2017, 12:29

Photoswipe bug - multiple use on one page

Post by pivovary »

Hi,
i don't know if it's bug or purpose. But Photoswipe function only on one gallery to page. For multiple use on one page i modified
row 1883

Code: Select all

			if ($tmpl['detail_window'] == 14) {
				$output .= PhocaGalleryRenderDetailWindow::loadPhotoswipeBottom();
			}
to

Code: Select all

			if ($count_matches-1 == $i)
			{
				if ($tmpl['detail_window'] == 14) {
					$output .= PhocaGalleryRenderDetailWindow::loadPhotoswipeBottom();
				}
			}
and photoswipe function ok when multiple use on one page
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Photoswipe bug - multiple use on one page

Post by Jan »

Hi, thank you for the information, I will take a look at it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply