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

Calculator



EOT; return $o; }