AddOn Fancybox #1320

Merged
brockhaus merged 5 commits from develop into develop 2022-11-25 03:49:20 +01:00
Showing only changes of commit d584196215 - Show all commits

View file

@ -41,7 +41,9 @@ function fancybox_render(App $a, array &$b)
}
$html = $b['html'];
while (preg_match($pattern, $html, $matches, PREG_OFFSET_CAPTURE)) {
if (is_array($matches)) $matches = $matches[0];
if (is_array($matches)) {
$matches = $matches[0];
}
$part = $matches[0];
$replaced = str_replace('<a href', '<a data-fancybox="' . $gallery . '" href', $part);
$replaced = str_replace('<div class="body-attach"', '<div class="body-attach done"', $replaced);