From 29f5f6afd3b3f89a5a24b8079b2c69c2eb87af2f Mon Sep 17 00:00:00 2001 From: Carlos Vargas Date: Mon, 15 Feb 2010 18:26:41 -0500 Subject: [PATCH] Fixed randon images in list documents CT#161 --- main/document/slideshow.php | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/main/document/slideshow.php b/main/document/slideshow.php index 76d4db67aa..b08dfb5548 100755 --- a/main/document/slideshow.php +++ b/main/document/slideshow.php @@ -240,7 +240,13 @@ if ($slide_id !== "all") { echo ''; echo ''; echo ''; - echo "".$image_files_only[$slide].""; + if ($slide < $total_slides -1 and $slide_id <> "all") { + echo ""; + } else { + echo ""; + } + echo "".$image_files_only[$slide].""; + echo ""; echo ''; echo ''; echo ''; @@ -290,14 +296,21 @@ if ($slide_id !== "all") { echo ''; echo ''; echo ''; echo ''; echo '
'; - + if ($slide == 0){ + $imgp = 'slide_previous_na.png'; + $first = ''; + } else { + $imgp = 'slide_previous.png'; + $first = ''.get_lang('FirstSlide').'  '; + } // first slide - echo ''.get_lang('FirstSlide').'  '; + echo $first; // previous slide if ($slide > 0) { echo ''; } - echo ''.get_lang('Previous').''; + + echo ''.get_lang('Previous').''; if ($slide > 0) { echo " "; } @@ -310,12 +323,21 @@ if ($slide_id !== "all") { echo ""; } - echo ''.get_lang('Next').''; + + if ($slide == $total_slides-1){ + $imgn = 'slide_next_na.png'; + $last = ''.get_lang('LastSlide').''; + } else { + $imgn = 'slide_next.png'; + $last = ''.get_lang('LastSlide').''; + } + + echo ''.get_lang('Next').''; if ($slide > 0) { echo ''; } // last slide - echo '  '.get_lang('LastSlide').''; + echo '  '.$last; echo '
';