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 537ee2e656 - Show all commits

View file

@ -21,24 +21,15 @@ function fancybox_head(App $a, string &$b)
{
DI::page()->registerStylesheet(__DIR__ . '/asset/fancybox/jquery.fancybox.min.css');
}
function fancybox_footer(App $a, string &$str)
{
DI::page()->registerFooterScript(__DIR__ . '/asset/fancybox/jquery.fancybox.min.js');
DI::page()->registerFooterScript(__DIR__ . '/asset/fancybox/fancybox.config.js');
}
/*
prepare_body_final
Called at the end of prepare_body(). Hook data:
item: item array (input)
html: converted item body (input/output)
*/
function fancybox_render(App $a, array &$b) {
function fancybox_render(App $a, array &$b)
{
$matches = [];
$pattern = '#<div class="body-attach">.*?</div>#s';
$gallery = 'gallery';