</script>
EOT;
}
+
+ $enable_compose = \Friendica\Core\PConfig::get(local_user(), 'frio', 'enable_compose');
+ $compose = $enable_compose === '1' || $enable_compose === null && Config::get('frio', 'enable_compose') ? 1 : 0;
+ $a->page['htmlhead'] .= <<< HTML
+ <script type="text/javascript">
+ var compose = $compose;
+ </script>
+HTML;
}
function frio_install()
}
if (!local_user() && !empty($server_url) && !is_null($remoteUser)) {
- $nav['logout'] = [$server_url . '/logout', L10n::t('Logout'), '', L10n::t('End this session')];
-
// user menu
$nav['usermenu'][] = [$server_url . '/profile/' . $remoteUser['nick'], L10n::t('Status'), '', L10n::t('Your posts and conversations')];
$nav['usermenu'][] = [$server_url . '/profile/' . $remoteUser['nick'] . '?tab=profile', L10n::t('Profile'), '', L10n::t('Your profile page')];