From: <jon...@us...> - 2015-11-28 17:03:09
|
Revision: 56817 http://sourceforge.net/p/tikiwiki/code/56817 Author: jonnybradley Date: 2015-11-28 17:03:07 +0000 (Sat, 28 Nov 2015) Log Message: ----------- [ENH] viewerjs: Use ViewerJS to display PDFs and ODF files in filegals Modified Paths: -------------- trunk/templates/fgal_context_menu.tpl Modified: trunk/templates/fgal_context_menu.tpl =================================================================== --- trunk/templates/fgal_context_menu.tpl 2015-11-28 17:02:15 UTC (rev 56816) +++ trunk/templates/fgal_context_menu.tpl 2015-11-28 17:03:07 UTC (rev 56817) @@ -4,6 +4,7 @@ {if $files[$changes].perms.tiki_p_view_file_gallery eq 'y'} {self_link _icon_name='file-archive-open' _menu_text=$menu_text _menu_icon=$menu_icon galleryId=$files[$changes].id} {tr}Open{/tr} + {tr}Open{/tr} {/self_link} {/if} @@ -79,6 +80,10 @@ <a href="tiki-view_sheets.php?fileId={$files[$changes].id}"> {icon name='view' _menu_text=$menu_text _menu_icon=$menu_icon alt="{tr}Display{/tr}"} </a> + {elseif $prefs.fgal_viewerjs_feature eq 'y' and ($files[$changes].type eq 'application/pdf' or $files[$changes].type|strpos:'application/vnd.oasis.opendocument.' !== false)} + <a href="{$prefs.fgal_viewerjs_uri}#{$base_url}{$files[$changes].id|sefurl:display}"> + {icon name='view' _menu_text=$menu_text _menu_icon=$menu_icon alt="{tr}Display{/tr}"} + </a> {elseif ($files[$changes].type eq 'application/vnd.oasis.opendocument.text' or $files[$changes].type eq 'application/octet-stream') and $prefs.feature_docs eq 'y'} <a href="tiki-edit_docs.php?fileId={$files[$changes].id}"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |