Remove 'Open In Tab' and 'Download' buttons from showinframes - refs BT#12834

remotes/angel/1.11.x
Angel Fernando Quiroz Campos 8 years ago
parent 7324e836bc
commit 5864d5f801
  1. 9
      main/document/showinframes.php

@ -330,10 +330,6 @@ echo '<div class="text-center">';
$file_url = api_get_path(WEB_COURSE_PATH).$courseInfo['path'].'/document'.$header_file;
$file_url_web = $file_url.'?'.api_get_cidreq();
if (in_array(strtolower($pathinfo['extension']), array('html', "htm"))) {
echo '<a class="btn btn-default" href="'.$file_url_web.'" target="_blank">'.get_lang('CutPasteLink').'</a>';
}
if ($show_web_odf) {
$browser = api_get_navigator();
$pdfUrl = api_get_path(WEB_LIBRARY_PATH).'javascript/ViewerJS/index.html#'.$file_url;
@ -345,11 +341,6 @@ if ($show_web_odf) {
src="' . $pdfUrl.'">
</iframe>';
echo '</div>';
} elseif (!$originIsLearnpath) {
// ViewerJS already have download button
echo '<p>';
echo Display::toolbarButton(get_lang('Download'), $file_url_web, 'download', 'default', ['target' => '_blank']);
echo '</p>';
}
echo '</div>';

Loading…
Cancel
Save