Code style

This commit is contained in:
Grischa Brockhaus 2022-11-25 02:05:38 +01:00
parent 1a5b19ff69
commit 537ee2e656

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';