visibleInContext(AbstractItem::CTX_DESKTOP))
echo '- ' . $item->asHtmlLink() . '
';
} catch (RuntimeException $ignored) {
// item not available
}
if (!empty($_SERVER['REMOTE_USER'])) {
echo '- ' . $lang['loggedinas'] . ' ' . userlink() . '
';
}
try {
$item = new Admin();
if ($item->visibleInContext(AbstractItem::CTX_DESKTOP)) {
echo '- ' . $item->asHtmlLink() . '
';
}
} catch (RuntimeException $ignored) {
// item not available
}
try {
$item = new Register();
if ($item->visibleInContext(AbstractItem::CTX_DESKTOP)) {
echo '- ' . $item->asHtmlLink() . '
';
}
} catch (RuntimeException $ignored) {
// item not available
}
/** @var helper_plugin_do $doplugin */
$doplugin = plugin_load('helper', 'do');
if ($doplugin !== null && isset($_SERVER['REMOTE_USER'])) {
$icon = $doplugin->tpl_getUserTasksIconHTML();
if ($icon) {
echo '- ' . $icon . '
';
}
}
?>