/**
* Adds an item in "addon features" in the admin menu of the site
*
- * @param Friendica\App $a App object (unused)
+ * @param App $a App object (unused)
* @param string $o HTML form data
*/
function mailstream_addon_admin(App $a, &$o)
* mailstream is enabled and the necessary data is available, forks a
* workerqueue item to send the email.
*
- * @param Friendica\App $a App object (unused)
- * @param array $item content of the item (may or may not already be stored in the item table)
+ * @param App $a App object (unused)
+ * @param array $item content of the item (may or may not already be stored in the item table)
*/
function mailstream_post_hook(App $a, &$item)
{
* Status: Unsupported
*/
+use Friendica\App;
use Friendica\Core\Hook;
use Friendica\DI;
use Friendica\Util\DateTimeFormat;
Hook::register('profile_advanced', 'addon/membersince/membersince.php', 'membersince_display');
}
-function membersince_display(Friendica\App $a, array &$b)
+function membersince_display(App $a, array &$b)
{
if ($a->getCurrentTheme() == 'frio') {
// Works in Frio.
}
/**
- * @param Friendica\App $a
+ * @param App $a
* @param string $o
*/
-function rendertime_page_end(Friendica\App $a, &$o)
+function rendertime_page_end(App $a, &$o)
{
$profiler = DI::profiler();
* Maintainer: Hypolite Petovan <https://friendica.mrpetovan.com/profile/hypolite>
*/
+use Friendica\App;
use Friendica\Core\Hook;
use Friendica\DI;
Hook::register('jot_tool', 'addon/smileybutton/smileybutton.php', 'smileybutton_jot_tool');
}
-function smileybutton_jot_tool(Friendica\App $a, array &$b)
+function smileybutton_jot_tool(App $a, string &$body)
{
// Disable if theme is quattro
// TODO add style for quattro
$image_url = DI::baseUrl()->get() . '/' . $image;
//Add the hmtl and script to the page
- $b = <<< EOT
+ $body = <<< EOT
<div id="profile-smiley-wrapper">
<button type="button" class="btn btn-link smiley_button" onclick="toggle_smileybutton()"><img src="$image_url" alt="smiley"></button>
<div id="smileybutton">