33 $block[
'modules'] = array();
35 $plugins = \Xoops\Module\Plugin::getPlugins(
'system');
38 foreach ($plugins as
$dirname => $plugin) {
39 $menu = $plugin->userMenus();
42 $block[
'modules'][
$i][
'name'] =
$menu[
'name'];
44 $block[
'modules'][
$i][
'image'] = $menu[
'image'];
45 $block[
'modules'][
$i][
'icon'] =
'icon-tags';
49 if (
$xoops->isModule() &&
$xoops->module->getVar(
'dirname') ==
$dirname && $plugin = \Xoops\Module\Plugin::getPlugin(
$dirname,
'menus')) {
50 if (method_exists($plugin,
'subMenus')) {
51 $sublinks = $plugin->subMenus();
52 foreach ($sublinks as $sublink) {
53 $block[
'modules'][
$i][
'sublinks'][] = array(
54 'name' => $sublink[
'name'],
66 array_unshift($block[
'modules'], array(
68 'link' =>
$xoops->url(
'userinfo.php?uid=' .
$xoops->user->getVar(
'uid')),
69 'icon' =>
'icon-user',
73 array_unshift($block[
'modules'], array(
75 'link' =>
$xoops->url(
'edituser.php'),
76 'icon' =>
'icon-user',
81 array_unshift($block[
'modules'], array(
83 'link' =>
$xoops->url(
'admin.php'),
85 'icon' =>
'icon-wrench',
93 $xoops->preload()->triggerEvent(
'system.blocks.system_blocks.usershow', array(&
$pm_handler));
102 array_push($block[
'modules'], array(
104 'link' =>
$xoops->url(
'viewpmsg.php'),
105 'icon' =>
'icon-envelope',
110 array_push($block[
'modules'], array(
112 'link' =>
$xoops->url(
'user.php?op=logout'),
113 'icon' =>
'icon-off',
116 $block[
'active_url'] = \Xoops\Core\HttpRequest::getInstance()->getUrl();
const ADMINISTRATION_MENU