diff --git a/module/dev/control.php b/module/dev/control.php index 308b82eaa5..3ca357f9d3 100644 --- a/module/dev/control.php +++ b/module/dev/control.php @@ -51,11 +51,12 @@ class dev extends control $moduleID = $api->module; $api->desc = htmlspecialchars_decode($api->desc); } - $this->view->title = $this->lang->dev->api; - $this->view->moduleTree = $menu; - $this->view->typeList = $typeList; - $this->view->api = $api; - $this->view->apiID = $apiID; + $this->view->title = $this->lang->dev->api; + $this->view->selectedModule = 'restapi'; + $this->view->moduleTree = $menu; + $this->view->typeList = $typeList; + $this->view->api = $api; + $this->view->apiID = $apiID; $this->display(); } diff --git a/module/dev/lang/de.php b/module/dev/lang/de.php index e648dff8e1..b55fcf0103 100644 --- a/module/dev/lang/de.php +++ b/module/dev/lang/de.php @@ -21,6 +21,7 @@ $lang->dev->paramMailto = "User account. Separate accounts by ','."; $lang->dev->noteEditor = "The editor is disabled for security reasons. To use this feature, Please turn on."; $lang->dev->noteTranslate = "The translation is disabled for security reasons. To use this feature, please go to the official website to download and install the plugin of translation."; $lang->dev->confirmRestore = 'Do you want to reset?'; +$lang->dev->apiTips = 'Every page can be called through the JSON interface'; $lang->dev->language = 'Language: %s'; $lang->dev->default = 'Default'; @@ -201,6 +202,9 @@ $lang->dev->endGroupList['admin'] = 'Admin'; $lang->dev->endGroupList['system'] = 'System'; $lang->dev->endGroupList['other'] = 'Andere'; +$lang->dev->featureBar['api']['restapi'] = 'RESTful'; +$lang->dev->featureBar['api']['index'] = 'Built In'; + $lang->dev->featureBar['langItem']['common'] = 'Common'; $lang->dev->featureBar['langItem']['first'] = 'First Menu'; $lang->dev->featureBar['langItem']['second'] = 'Second Menu'; diff --git a/module/dev/lang/en.php b/module/dev/lang/en.php index 95bff27d80..56b0bbffe8 100644 --- a/module/dev/lang/en.php +++ b/module/dev/lang/en.php @@ -21,6 +21,7 @@ $lang->dev->paramMailto = "User account. Separate accounts by ','."; $lang->dev->noteEditor = "The editor is disabled for security reasons. To use this feature, Please turn on."; $lang->dev->noteTranslate = "The translation is disabled for security reasons. To use this feature, please go to the official website to download and install the plugin of translation."; $lang->dev->confirmRestore = 'Do you want to reset?'; +$lang->dev->apiTips = 'Every page can be called through the JSON interface'; $lang->dev->language = 'Language: %s'; $lang->dev->default = 'Default'; @@ -201,6 +202,9 @@ $lang->dev->endGroupList['admin'] = 'Admin'; $lang->dev->endGroupList['system'] = 'System'; $lang->dev->endGroupList['other'] = 'Others'; +$lang->dev->featureBar['api']['restapi'] = 'RESTful'; +$lang->dev->featureBar['api']['index'] = 'Built In'; + $lang->dev->featureBar['langItem']['common'] = 'Common'; $lang->dev->featureBar['langItem']['first'] = 'First Menu'; $lang->dev->featureBar['langItem']['second'] = 'Second Menu'; diff --git a/module/dev/lang/fr.php b/module/dev/lang/fr.php index 95bff27d80..56b0bbffe8 100644 --- a/module/dev/lang/fr.php +++ b/module/dev/lang/fr.php @@ -21,6 +21,7 @@ $lang->dev->paramMailto = "User account. Separate accounts by ','."; $lang->dev->noteEditor = "The editor is disabled for security reasons. To use this feature, Please turn on."; $lang->dev->noteTranslate = "The translation is disabled for security reasons. To use this feature, please go to the official website to download and install the plugin of translation."; $lang->dev->confirmRestore = 'Do you want to reset?'; +$lang->dev->apiTips = 'Every page can be called through the JSON interface'; $lang->dev->language = 'Language: %s'; $lang->dev->default = 'Default'; @@ -201,6 +202,9 @@ $lang->dev->endGroupList['admin'] = 'Admin'; $lang->dev->endGroupList['system'] = 'System'; $lang->dev->endGroupList['other'] = 'Others'; +$lang->dev->featureBar['api']['restapi'] = 'RESTful'; +$lang->dev->featureBar['api']['index'] = 'Built In'; + $lang->dev->featureBar['langItem']['common'] = 'Common'; $lang->dev->featureBar['langItem']['first'] = 'First Menu'; $lang->dev->featureBar['langItem']['second'] = 'Second Menu'; diff --git a/module/dev/lang/zh-cn.php b/module/dev/lang/zh-cn.php index c01ab55b44..1cfe5dfd1b 100644 --- a/module/dev/lang/zh-cn.php +++ b/module/dev/lang/zh-cn.php @@ -21,6 +21,7 @@ $lang->dev->paramMailto = "填写帐号,多个账号用','分隔。"; $lang->dev->noteEditor = "编辑器功能存在部分安全问题,如需使用该功能,可在此开启。"; $lang->dev->noteTranslate = "翻译功能因为安全原因被禁用。使用该功能,请到官网下载安装 翻译 插件。"; $lang->dev->confirmRestore = '是否要恢复默认?'; +$lang->dev->apiTips = '可访问的每个页面都可通过JSON接口调取'; $lang->dev->language = '语言:%s'; $lang->dev->default = '默认值'; @@ -201,6 +202,9 @@ $lang->dev->endGroupList['admin'] = '后台'; $lang->dev->endGroupList['system'] = '系统'; $lang->dev->endGroupList['other'] = '其他'; +$lang->dev->featureBar['api']['restapi'] = 'RESTful接口'; +$lang->dev->featureBar['api']['index'] = '内置页面接口'; + $lang->dev->featureBar['langItem']['common'] = '公共'; $lang->dev->featureBar['langItem']['first'] = '一级菜单'; $lang->dev->featureBar['langItem']['second'] = '二级菜单'; diff --git a/module/dev/view/header.html.php b/module/dev/view/header.html.php index 22553cad6e..6e955c2b3a 100644 --- a/module/dev/view/header.html.php +++ b/module/dev/view/header.html.php @@ -2,3 +2,23 @@ +rawMethod == 'api'):?> + + + + diff --git a/module/dev/view/restapi.html.php b/module/dev/view/restapi.html.php index 056cce64c4..e393b8076e 100644 --- a/module/dev/view/restapi.html.php +++ b/module/dev/view/restapi.html.php @@ -9,7 +9,7 @@ * @version $Id$ * @link http://www.zentao.net */ -include '../../common/view/header.html.php'; +include 'header.html.php'; js::set('confirmDelete', $lang->api->confirmDelete); ?>