0) { while (list($key) = each($array_to_search)) { $all_files[] = basename($array_to_search[$key]['path']); } } //get all svg and png files $accepted_extensions = array('.svg', '.png'); if (is_array($all_files) && count($all_files) > 0) { foreach ($all_files as & $file) { $slideshow_extension = strrchr($file, '.'); $slideshow_extension = strtolower($slideshow_extension); if (in_array($slideshow_extension, $accepted_extensions)) { $png_svg_files[] =$file; } } } $disk_path = api_get_path(SYS_COURSE_PATH).$course_info['path'].'/document/images/gallery/'; $web_path = api_get_path(WEB_COURSE_PATH).$course_info['path'].'/document/images/gallery/'; $style = ''; ?> '.get_lang('Course').': '.$course_info['name'].''; if (!empty($png_svg_files)) { echo '

'.get_lang('SelectSVGEditImage').'

'; echo ''; } else { echo Display::return_message(get_lang('NoSVGImagesInImagesGalleryPath'), 'warning'); } ?>