XOOPS  2.6.0
menu.php
Go to the documentation of this file.
1 <?php
20 $cpt = 1;
22 $adminmenu[$cpt]['link'] = 'admin/index.php';
23 $adminmenu[$cpt]['icon'] = 'home.png';
24 
26 if (!isset($xcaptcha_handler)) {
27  include_once dirname(__DIR__) . '/class/xcaptcha.php';
29 }
30 
32 
33 foreach ( array_keys($xcaptcha_handler->getPluginList()) as $key ) {
34  ++$cpt;
35  $xoops->loadLanguage($key, 'xcaptcha');
36 
37  $adminmenu[$cpt]['title'] = constant('_MI_XCAPTCHA_ADMENU_' . strtoupper($key) );
38  $adminmenu[$cpt]['link'] = 'admin/index.php?type=' . $key;
39  $adminmenu[$cpt]['icon'] = 'administration.png';
40 }
41 
42 ++$cpt;
44 $adminmenu[$cpt]['link'] = 'admin/about.php';
45 $adminmenu[$cpt]['icon'] = 'about.png';
const _MI_XCAPTCHA_ABOUT
Definition: modinfo.php:25
static getInstance()
Definition: Xoops.php:160
const _MI_XCAPTCHA_INDEX
Definition: modinfo.php:23
static $xcaptcha_handler
Definition: menu.php:25
$cpt
Definition: menu.php:20
$adminmenu
Definition: menu.php:23
$xoops
Definition: menu.php:23