* Code for task #89917.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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 <a href='https://www.zentao.net/extension-viewExt-151.html' target='_blank'>translation</a>.";
|
||||
$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';
|
||||
|
||||
@@ -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 <a href='https://www.zentao.net/extension-viewExt-151.html' target='_blank'>translation</a>.";
|
||||
$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';
|
||||
|
||||
@@ -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 <a href='https://www.zentao.net/extension-viewExt-151.html' target='_blank'>translation</a>.";
|
||||
$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';
|
||||
|
||||
@@ -21,6 +21,7 @@ $lang->dev->paramMailto = "填写帐号,多个账号用','分隔。";
|
||||
$lang->dev->noteEditor = "编辑器功能存在部分安全问题,如需使用该功能,可在此开启。";
|
||||
$lang->dev->noteTranslate = "翻译功能因为安全原因被禁用。使用该功能,请到官网下载安装 <a href='https://www.zentao.net/extension-viewExt-151.html' target='_blank'>翻译</a> 插件。";
|
||||
$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'] = '二级菜单';
|
||||
|
||||
@@ -2,3 +2,23 @@
|
||||
<?php if(isset($tab)):?>
|
||||
<script>$('#mainMenu #<?php echo $tab;?>').addClass('btn-active-text')</script>
|
||||
<?php endif;?>
|
||||
<?php if($app->rawMethod == 'api'):?>
|
||||
<style>.api-tip-icon.icon-help:before {margin-top: 10px; margin-left: -14px; font-size: 12px;}</style>
|
||||
<div id='mainMenu' class='clearfix menu-secondary'>
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php
|
||||
foreach($lang->dev->featureBar['api'] as $key => $label)
|
||||
{
|
||||
$active = $selectedModule == $key ? 'btn-active-text' : '';
|
||||
if($key == 'index' and $selectedModule != 'restapi') $active = 'btn-active-text';
|
||||
|
||||
$label = "<span class='text'>$label</span>";
|
||||
echo html::a(inlink('api', "module=$key"), $label, '', "class='btn btn-link $active'");
|
||||
|
||||
if($key == 'index') echo "<icon class='icon icon-help api-tip-icon' data-toggle='popover' data-trigger='focus hover' data-placement='bottom' data-tip-class='text-muted popover-sm' data-content='{$lang->dev->apiTips}'></icon>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<script>$('[data-toggle="popover"]').popover();</script>
|
||||
<?php endif;?>
|
||||
|
||||
@@ -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);
|
||||
?>
|
||||
<div class="main-row" id="mainContent">
|
||||
|
||||
Reference in New Issue
Block a user