Page 1 of 1

Photoswipe bug - multiple use on one page

Posted: 31 May 2017, 06:36
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

Re: Photoswipe bug - multiple use on one page

Posted: 02 Jun 2017, 15:01
by Jan
Hi, thank you for the information, I will take a look at it.

Jan