- asHtmlLink();
                        } else {
                            echo (new \dokuwiki\Menu\Item\Login())->asHtmlButton();
                        }
                    } else {
                    //Pre-Greebo Backwards compatibility
                        tpl_actionlink('login');
                    }
                    ?>
                '.$lang['loggedinas'].' '.userlink().'';
                }?>
                ' . (new \dokuwiki\Menu\Item\Admin())->asHtmlLink() . '';
                    } catch(\RuntimeException $ignored) {
                        // item not available
                    }
                    try{
                        echo '
- ' . (new \dokuwiki\Menu\Item\Register())->asHtmlLink() . '';
                    } catch(\RuntimeException $ignored) {
                        // item not available
                    }
                } else {
                    //Pre-Greebo Backwards compatibility
                    tpl_toolsevent(
                        'usertools',
                        array(
                            'admin' => tpl_action('admin', 1, 'li', 1),
                            'register' => tpl_action('register', 1, 'li', 1),
                        )
                    );
                }
                ?>
                tpl_getUserTasksIconHTML();
                    if ($icon) {
                        echo '
- ' . $icon . '';
                    }
                }
                ?>