| @@ 17-33 (lines=17) @@ | ||
| 14 | * @license http://www.fsf.org/copyleft/gpl.html GNU public license | |
| 15 | * @author trabis <[email protected]> | |
| 16 | */ | |
| 17 | class BannersMainmenuPlugin implements MainmenuPluginInterface | |
| 18 | { | |
| 19 | ||
| 20 | /** | |
| 21 | * @return array | |
| 22 | */ | |
| 23 | public function mainmenu() | |
| 24 |     { | |
| 25 | $helper = \Xoops::getModuleHelper(basename(dirname(dirname(__DIR__)))); | |
| 26 | $ret[] = [ | |
| 27 |             'name' => $helper->getModule()->getVar('name'), | |
| 28 | 'link' => $helper->url(), | |
| 29 | ]; | |
| 30 | ||
| 31 | return $ret; | |
| 32 | } | |
| 33 | } | |
| 34 | ||
| @@ 17-32 (lines=16) @@ | ||
| 14 | * @license http://www.fsf.org/copyleft/gpl.html GNU public license | |
| 15 | * @author trabis <[email protected]> | |
| 16 | */ | |
| 17 | class NotificationsMainmenuPlugin implements MainmenuPluginInterface | |
| 18 | { | |
| 19 | ||
| 20 | /** | |
| 21 | * @return array | |
| 22 | */ | |
| 23 | public function mainmenu() | |
| 24 |     { | |
| 25 | $helper = \Xoops::getModuleHelper(basename(dirname(dirname(__DIR__)))); | |
| 26 | $ret[] = [ | |
| 27 |             'name' => $helper->getModule()->getVar('name'), | |
| 28 | 'link' => $helper->url() | |
| 29 | ]; | |
| 30 | return $ret; | |
| 31 | } | |
| 32 | } | |
| 33 | ||
| @@ 17-32 (lines=16) @@ | ||
| 14 | * @license http://www.fsf.org/copyleft/gpl.html GNU public license | |
| 15 | * @author trabis <[email protected]> | |
| 16 | */ | |
| 17 | class PageMainmenuPlugin implements MainmenuPluginInterface | |
| 18 | { | |
| 19 | ||
| 20 | /** | |
| 21 | * @return array | |
| 22 | */ | |
| 23 | public function mainmenu() | |
| 24 |     { | |
| 25 | $helper = Xoops::getModuleHelper(basename(dirname(dirname(__DIR__)))); | |
| 26 | $ret[] = [ | |
| 27 |             'name' => $helper->getModule()->getVar('name'), | |
| 28 | 'link' => $helper->url(), | |
| 29 | ]; | |
| 30 | return $ret; | |
| 31 | } | |
| 32 | } | |
| 33 | ||
| @@ 17-32 (lines=16) @@ | ||
| 14 | * @license http://www.fsf.org/copyleft/gpl.html GNU public license | |
| 15 | * @author trabis <[email protected]> | |
| 16 | */ | |
| 17 | class PmMainmenuPlugin implements MainmenuPluginInterface | |
| 18 | { | |
| 19 | ||
| 20 | /** | |
| 21 | * @return array | |
| 22 | */ | |
| 23 | public function mainmenu() | |
| 24 |     { | |
| 25 | $helper = \Xoops::getModuleHelper(basename(dirname(dirname(__DIR__)))); | |
| 26 | $ret[] = [ | |
| 27 |             'name' => $helper->getModule()->getVar('name'), | |
| 28 | 'link' => $helper->url(), | |
| 29 | ]; | |
| 30 | return $ret; | |
| 31 | } | |
| 32 | } | |
| 33 | ||
| @@ 17-31 (lines=15) @@ | ||
| 14 | * @license http://www.fsf.org/copyleft/gpl.html GNU public license | |
| 15 | * @author trabis <[email protected]> | |
| 16 | */ | |
| 17 | class SearchMainmenuPlugin implements MainmenuPluginInterface | |
| 18 | { | |
| 19 | /** | |
| 20 | * @return array | |
| 21 | */ | |
| 22 | public function mainmenu() | |
| 23 |     { | |
| 24 | $helper = \Xoops::getModuleHelper(basename(dirname(dirname(__DIR__)))); | |
| 25 | $ret[] = [ | |
| 26 |             'name' => $helper->getModule()->getVar('name'), | |
| 27 | 'link' => $helper->url(), | |
| 28 | ]; | |
| 29 | return $ret; | |
| 30 | } | |
| 31 | } | |
| 32 | ||