mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-24 21:43:40 +00:00
Code style
This commit is contained in:
parent
1a5b19ff69
commit
537ee2e656
1 changed files with 28 additions and 37 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue