function getAdminMenu() { $constpref = NBFrame::langConstPrefix('MI', '', NBFRAME_TARGET_LOADER); $adminmenu = array(); $adminmenu[] = array('title' => constant($constpref . 'AD_MENU0'), 'link' => $this->mEnvironment->getActionUrl('admin.SimpleLinkLinkAdmin', array(), 'html', true)); $adminmenu[] = array('title' => constant($constpref . 'AD_MENU1'), 'link' => $this->mEnvironment->getActionUrl('admin.SimpleLinkCategoryAdmin', array(), 'html', true)); return $adminmenu; }
<?php /** * * @package NBFrame * @version $Id$ * @copyright Copyright 2007 NobuNobuXOOPS Project <http://sourceforge.net/projects/nobunobuxoops/> * @author NobuNobu <*****@*****.**> * @license http://www.gnu.org/licenses/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2 * */ if (defined('FOR_XOOPS_LANG_CHECKER')) { $mydirname = 'simplelink'; } $constpref = NBFrame::langConstPrefix('AD', $mydirname); if (defined('FOR_XOOPS_LANG_CHECKER') || !defined($constpref . 'LANGUAGE_ADMIN_READ')) { define($constpref . 'LANGUAGE_ADMIN_READ', '1'); define($constpref . 'LANG_LINK_ADMIN', 'リンクの管理'); define($constpref . 'LANG_CATEGORY_ADMIN', 'カテゴリーの管理'); }
<?php /** * * @package MyGmap * @version $Id$ * @copyright Copyright 2006-2008 NobuNobuXOOPS Project <http://sourceforge.net/projects/nobunobuxoops/> * @author NobuNobu <*****@*****.**> * @license http://www.gnu.org/licenses/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2 * */ include_once dirname(__FILE__) . '/include/version.inc.php'; $langPrefix = NBFrame::langConstPrefix('MI', $_NBFrame_dirName, NBFRAME_TARGET_INSTALLER); $modversion['name'] = 'MyGmap'; // It'll be rewritten $modversion['version'] = $GLOBALS['mygmap_version_xoops']; $modversion['description'] = 'googleAPIによる地図表示モジュールです。'; $modversion['credits'] = $GLOBALS['mygmap_credit']; $modversion['author'] = 'NobuNobu'; $modversion['help'] = ''; $modversion['license'] = 'GPL see LICENSE'; $modversion['official'] = 0; $modversion['image'] = 'images/logo.png'; // It'll be rewritten $modversion['dirname'] = 'mygmap'; // It'll be rewritten //If you want specify your custom install sequence, uncomment following 2 lines. //$modversion['NBFrameOnInstall']['file'] = '/include/oninstall.inc.php'; //$modversion['NBFrameOnInstall']['func'][] = 'install_mygmap'; //If you want specify your custom update sequence, uncomment following 2 lines. //$modversion['NBFrameOnUpdate']['file'] = '/include/onupdate.inc.php';