Security::remove_XSS($url), 'name' => $originaltoolname]; $originaltoolname = get_lang('Slideshow'); $sessionId = api_get_session_id(); $groupIid = 0; $groupMemberWithEditRights = false; // Setting group variables. if (!empty($groupId)) { $group_properties = GroupManager::get_group_properties($groupId); $groupIid = isset($group_properties['iid']) ? $group_properties['iid'] : 0; } Display::display_header($originaltoolname, 'Doc'); $slideshowKey = 'slideshow_'.api_get_course_id().api_get_session_id().$curdirpath; $documentAndFolders = Session::read($slideshowKey); if (empty($documentAndFolders)) { $documentAndFolders = DocumentManager::getAllDocumentData( $courseInfo, $curdirpath, $groupIid, null, $isAllowedToEdit, false ); Session::write($slideshowKey, $documentAndFolders); } require 'document_slideshow.inc.php'; // 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); echo '