* Finish task #40810.

This commit is contained in:
holan20180123
2021-08-03 11:06:06 +08:00
parent 7e9e1d0623
commit 2da9abb8c5
8 changed files with 9 additions and 37 deletions
+7
View File
@@ -30,6 +30,13 @@ $config->doc->markdown->create = array('id' => 'contentMarkdown', 'tools' => 'wi
$config->doc->collectionLimit = 10;
$config->doc->iconList['html'] = 'rich-text';
$config->doc->iconList['markdown'] = 'markdown';
$config->doc->iconList['url'] = 'text-link';
$config->doc->iconList['word'] = 'word';
$config->doc->iconList['ppt'] = 'ppt';
$config->doc->iconList['excel'] = 'excel';
$config->doc->search['module'] = 'doc';
$config->doc->search['fields']['title'] = $lang->doc->title;
$config->doc->search['fields']['id'] = $lang->doc->id;
-7
View File
@@ -132,13 +132,6 @@ $lang->doc->typeList['word'] = 'Word';
$lang->doc->typeList['ppt'] = 'PPT';
$lang->doc->typeList['excel'] = 'Excel';
$lang->doc->iconList['html'] = 'rich-text';
$lang->doc->iconList['markdown'] = 'markdown';
$lang->doc->iconList['url'] = 'text-link';
$lang->doc->iconList['word'] = 'word';
$lang->doc->iconList['ppt'] = 'ppt';
$lang->doc->iconList['excel'] = 'excel';
$lang->doc->types['text'] = 'Text';
$lang->doc->types['url'] = 'URL';
-7
View File
@@ -137,13 +137,6 @@ $lang->doc->typeList['word'] = 'Word';
$lang->doc->typeList['ppt'] = 'PPT';
$lang->doc->typeList['excel'] = 'Excel';
$lang->doc->iconList['html'] = 'rich-text';
$lang->doc->iconList['markdown'] = 'markdown';
$lang->doc->iconList['url'] = 'text-link';
$lang->doc->iconList['word'] = 'word';
$lang->doc->iconList['ppt'] = 'ppt';
$lang->doc->iconList['excel'] = 'excel';
$lang->doc->types['text'] = 'Text';
$lang->doc->types['url'] = 'URL';
-7
View File
@@ -132,13 +132,6 @@ $lang->doc->typeList['word'] = 'Word';
$lang->doc->typeList['ppt'] = 'PPT';
$lang->doc->typeList['excel'] = 'Excel';
$lang->doc->iconList['html'] = 'rich-text';
$lang->doc->iconList['markdown'] = 'markdown';
$lang->doc->iconList['url'] = 'text-link';
$lang->doc->iconList['word'] = 'word';
$lang->doc->iconList['ppt'] = 'ppt';
$lang->doc->iconList['excel'] = 'excel';
$lang->doc->types['text'] = 'Text';
$lang->doc->types['url'] = 'URL';
-7
View File
@@ -132,13 +132,6 @@ $lang->doc->typeList['word'] = 'Word';
$lang->doc->typeList['ppt'] = 'PPT';
$lang->doc->typeList['excel'] = 'Excel';
$lang->doc->iconList['html'] = 'rich-text';
$lang->doc->iconList['markdown'] = 'markdown';
$lang->doc->iconList['url'] = 'text-link';
$lang->doc->iconList['word'] = 'word';
$lang->doc->iconList['ppt'] = 'ppt';
$lang->doc->iconList['excel'] = 'excel';
$lang->doc->types['text'] = 'Text';
$lang->doc->types['url'] = 'URL';
-7
View File
@@ -137,13 +137,6 @@ $lang->doc->typeList['word'] = 'Word';
$lang->doc->typeList['ppt'] = 'PPT';
$lang->doc->typeList['excel'] = 'Excel';
$lang->doc->iconList['html'] = 'rich-text';
$lang->doc->iconList['markdown'] = 'markdown';
$lang->doc->iconList['url'] = 'text-link';
$lang->doc->iconList['word'] = 'word';
$lang->doc->iconList['ppt'] = 'ppt';
$lang->doc->iconList['excel'] = 'excel';
$lang->doc->types['text'] = '文档';
$lang->doc->types['url'] = '链接';
+1 -1
View File
@@ -1732,7 +1732,7 @@ class docModel extends model
foreach($this->lang->doc->typeList as $typeKey => $typeName)
{
$class = strpos($this->config->doc->officeTypes, $typeKey) !== false ? 'iframe' : '';
$icon = zget($this->lang->doc->iconList, $typeKey);
$icon = zget($this->config->doc->iconList, $typeKey);
$html .= "<li>";
$html .= html::a(helper::createLink('doc', 'create', "objectType=$objectType&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), "<i class='icon-$icon'></i> " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'");
$html .= "</li>";
+1 -1
View File
@@ -87,7 +87,7 @@ if(empty($type)) $type = 'product';
$html .= "<ul class='dropdown-menu' style='left:0px'>";
foreach($this->lang->doc->typeList as $typeKey => $typeName)
{
$icon = zget($this->lang->doc->iconList, $typeKey);
$icon = zget($this->config->doc->iconList, $typeKey);
$class = strpos($this->config->doc->officeTypes, $typeKey) !== false ? 'iframe' : '';
$html .= "<li>";
$html .= html::a(helper::createLink('doc', 'create', "objectType=$type&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), "<i class='icon-$icon'></i> " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'");