* Finish task #40810.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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'] = '链接';
|
||||
|
||||
|
||||
@@ -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>";
|
||||
|
||||
@@ -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}'");
|
||||
|
||||
Reference in New Issue
Block a user