From a21c08b6ee2d80fea5a8ae9a1e7d14d8e44636fc Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 11 Mar 2016 13:37:16 -0500 Subject: [PATCH] Fix slideshow in documents tool --- main/document/slideshow.php | 66 ++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 37 deletions(-) diff --git a/main/document/slideshow.php b/main/document/slideshow.php index d5aed2db42..6655886bc4 100755 --- a/main/document/slideshow.php +++ b/main/document/slideshow.php @@ -380,9 +380,7 @@ if ($slide_id != 'all' && !empty($image_files_only)) { $result = Database::query($sql); $row = Database::fetch_array($result); - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - - echo ''; - echo ''; - echo ''; - echo ''; - echo '
'; + echo '
'; if ($slide < $total_slides - 1 && $slide_id != 'all') { echo ""; } else { @@ -449,27 +447,18 @@ if ($slide_id != 'all' && !empty($image_files_only)) { "; + echo "".$image_files_only[$slide].""; } echo ''; - echo '
'; - echo $row['comment']; - echo '
'; + echo '
'; echo Display::tag('h3', $row['title']); - echo '
'; + echo '

' . $row['comment'] . '

'; + echo ''; + echo ''; - echo ''; if (api_is_allowed_to_edit(null, true)) { + echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; + echo '
  • '; + echo $image_files_only[$slide] . ' '; + echo Display::toolbarButton( + get_lang('Modify'), + 'edit_document.php?' . api_get_cidreq() . '&' . http_build_query([ + 'id' => $row['id'], + 'origin' => 'slideshow', + 'origin_opt' => $edit_slide_id, + 'curdirpath' => $pathurl + ]), + 'edit', + 'link', + [], + false + ); + echo '
  • '; + echo '
  • ' . $width.' x '.$height . '
  • '; + echo '
  • ' . round((filesize($image) / 1024), 2) . ' KB - ' . $ext . '
  • '; + echo '
  • ' . $resize_info . '
  • '; + echo '
  • ' . $resize_width . '
  • '; + echo '
  • ' . $resize_height . '
  • '; + echo ''; } - echo '
    '; - echo ' - '.get_lang('Modify').'
    '; - - echo $image_files_only[$slide].'
    '; - echo $width.' x '.$height.'
    '; - echo round((filesize($image)/1024), 2).' KB'; - echo ' - '.$ext; - echo '
    '; - echo $resize_info; - echo $resize_width; - echo $resize_height; - echo '
    '; } else { Display::display_warning_message(get_lang('FileNotFound'));