Security::remove_XSS($url), 'name' => $originaltoolname); $originaltoolname = get_lang('SlideShow'); Display :: display_header($originaltoolname, 'Doc'); $imageFilesOnlySession = Session::read('image_files_only'); $image_files_only = []; // Loading the slides from the session if (!empty($imageFilesOnlySession)) { $image_files_only = $imageFilesOnlySession; } // Calculating the current slide, next slide, previous slide and the number of slides $slide = null; if ($slide_id != 'all') { $slide = $slide_id ? $slide_id : 0; $previous_slide = $slide - 1; $next_slide = $slide + 1; } $total_slides = count($image_files_only); ?>