From 1649bad3563bfe65c90c12437083ea074dd719a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Thu, 29 Oct 2009 20:46:01 +0100 Subject: [PATCH] a small improvement in the slide show --- main/document/slideshow.php | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/main/document/slideshow.php b/main/document/slideshow.php index a9f2d43da2..261b405a43 100644 --- a/main/document/slideshow.php +++ b/main/document/slideshow.php @@ -265,7 +265,7 @@ if ($slide_id !== "all") { echo ''; echo ''; echo ''; echo ''; echo ''; @@ -273,13 +273,28 @@ if ($slide_id !== "all") { $aux= explode(".", htmlspecialchars($image_files_only[$slide])); $ext= $aux[count($aux)-1]; echo ''.basename(htmlspecialchars($image_files_only[$slide]), '.'.$ext).''; - echo '
'.$row['comment'].'
'; - list($width, $high) = getimagesize($image); - echo $width.' x '.$high.'
'; - echo round((filesize($image)/1024),2).' KB'; - echo ' - '.$ext; echo ''; echo ''; + echo ''; + echo ''; + echo ''; + + if (api_is_allowed_to_edit(null,true)) + { + echo ''; + echo ''; + echo ''; + } echo '
'; - echo "".$image_files_only[$slide].""; + echo "".$image_files_only[$slide].""; echo '
'; + echo $row['comment']; + echo '
'; + + echo ''.get_lang('Modify').'
'; + + list($width, $high) = getimagesize($image); + echo $width.' x '.$high.'
'; + echo round((filesize($image)/1024),2).' KB'; + echo ' - '.$ext; + echo '
'; } else { Display::display_warning_message(get_lang('FileNotFound'));