diff --git a/fancybox/createrelease b/fancybox/createrelease index 238828d6..d31f3a63 100755 --- a/fancybox/createrelease +++ b/fancybox/createrelease @@ -2,8 +2,6 @@ MODULE=fancybox cd .. -# read actual version from module.json - # old releases not needed anymore mkdir -p $MODULE/dist rm $MODULE/dist/* diff --git a/fancybox/fancybox.php b/fancybox/fancybox.php index 43219103..56503622 100644 --- a/fancybox/fancybox.php +++ b/fancybox/fancybox.php @@ -2,7 +2,7 @@ /** * Name: Fancybox * Description: Open media attachments of posts into a fancybox overlay. - * Version: 1.03 + * Version: 1.04 * Author: Grischa Brockhaus */ @@ -47,7 +47,7 @@ function fancybox_render(App $a, array &$b){ // Local content images attached: $text = preg_replace_callback( - '#
.*?
#s', + '#
.*?
#s', function ($matches) use ($gallery) { return str_replace(' + * Status: Unsupported + */ + +use Friendica\App; +use Friendica\Core\Hook; +use Friendica\DI; + +function namethingy_install() +{ + Hook::register('app_menu', 'addon/namethingy/namethingy.php', 'namethingy_app_menu'); +} + +function namethingy_app_menu(App $a, array &$b) +{ + $b['app_menu'][] = '
NameThingy
'; +} + + +/** + * This is a statement rather than an actual function definition. The simple + * existence of this method is checked to figure out if the addon offers a + * module. + */ +function namethingy_module() {} + +function namethingy_content(App $a) +{ + $baseurl = DI::baseUrl()->get() . '/addon/namethingy'; + + $o .= <<< EOT +