Hide some WOPI editor toolbar buttons (not yet implemented)
This commit is contained in:
parent
aec689521b
commit
4889334d13
3 changed files with 14 additions and 2 deletions
|
@ -1364,12 +1364,21 @@ class kolab_files_engine
|
|||
));
|
||||
|
||||
$placeholder = $this->rc->output->asset_url('program/resources/blank.gif');
|
||||
$got_editor = ($viewer & 4) && ($this->file_data['viewer']['manticore'] || $this->file_data['viewer']['wopi']);
|
||||
|
||||
if ($this->file_data['viewer']['wopi']) {
|
||||
$editor_type = 'wopi';
|
||||
$got_editor = ($viewer & 4);
|
||||
}
|
||||
else if ($this->file_data['viewer']['manticore']) {
|
||||
$editor_type = 'manticore';
|
||||
$got_editor = ($viewer & 4);
|
||||
}
|
||||
|
||||
// this one is for styling purpose
|
||||
$this->rc->output->set_env('extwin', true);
|
||||
$this->rc->output->set_env('file', $file);
|
||||
$this->rc->output->set_env('file_data', $this->file_data);
|
||||
$this->rc->output->set_env('editor_type', $editor_type);
|
||||
$this->rc->output->set_env('photo_placeholder', $placeholder);
|
||||
$this->rc->output->set_pagetitle(rcube::Q($file));
|
||||
$this->rc->output->send('kolab_files.' . ($got_editor ? 'docedit' : 'filepreview'));
|
||||
|
|
|
@ -50,6 +50,7 @@ $labels['copyfile'] = 'Copy a file';
|
|||
$labels['copyandedit'] = 'Copy and Edit';
|
||||
$labels['documenttitle'] = 'Title:';
|
||||
$labels['close'] = 'Close';
|
||||
$labels['docedit'] = 'Document editing';
|
||||
|
||||
$labels['collection_audio'] = 'Audio';
|
||||
$labels['collection_video'] = 'Video';
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<roundcube:include file="/includes/header.html" />
|
||||
|
||||
<div id="mainscreen" class="manticore">
|
||||
<div id="mainscreen" class="<roundcube:var name="env:editor_type" />">
|
||||
|
||||
<h1 class="voice"><roundcube:label name="kolab_files.docedit" /></h1>
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
|||
<roundcube:button command="files-delete" type="link" class="button delete disabled" classAct="button delete" classSel="button delete pressed" label="delete" title="kolab_files.deletefile" />
|
||||
-->
|
||||
<roundcube:button command="document-close" type="link" class="button delete disabled" classAct="button delete" classSel="button delete pressed" label="kolab_files.terminate" title="kolab_files.terminatesession" />
|
||||
<roundcube:if condition="env:editor_type != 'wopi'" />
|
||||
<span class="dropbutton">
|
||||
<roundcube:button command="document-export" type="link" class="button export disabled" classAct="button export" classSel="button export pressed" label="kolab_files.get" title="kolab_files.getfile" />
|
||||
<a href="#export" class="dropbuttontip" id="exportmenulink" onclick="UI.toggle_popup('exportmenu',event);return false" aria-haspopup="true" aria-expanded="false" aria-owns="exportmenu-menu" tabindex="0">Export options</a>
|
||||
|
@ -30,6 +31,7 @@
|
|||
<roundcube:button command="document-save" type="link" class="button save disabled" classAct="button save" classSel="button save pressed" label="kolab_files.save" title="kolab_files.savefile" />
|
||||
<span class="spacer"></span>
|
||||
<label for="document-title"><roundcube:label name="kolab_files.documenttitle" /> <input id="document-title" type="text" value="" /></label>
|
||||
<roundcube:endif />
|
||||
</div>
|
||||
|
||||
<h2 id="aria-label-collaborators" class="voice"><roundcube:label name="kolab_files.arialabelcollaborators" /></h2>
|
||||
|
|
Loading…
Add table
Reference in a new issue