*/ use Friendica\Core\Hook; use Friendica\DI; function calc_install() { Hook::register('app_menu', 'addon/calc/calc.php', 'calc_app_menu'); } function calc_uninstall() { Hook::unregister('app_menu', 'addon/calc/calc.php', 'calc_app_menu'); } function calc_app_menu($a,&$b) { $b['app_menu'][] = '
'; } function calc_module() {} function calc_init($a) { $x = <<< EOT EOT; DI::page()['htmlhead'] .= $x; } function calc_content($app) { $o = ''; $o .= <<< EOT
|