0) {
foreach ($scan_files as & $file) {
$slideshow_extension = strrchr($file, '.');
$slideshow_extension = strtolower($slideshow_extension);
if (in_array($slideshow_extension, $accepted_extensions)) {
$png_svg_files[] =$file;
}
}
}
$style = '';
?>
'.get_lang('SocialNetwork').': '.get_lang('MyFiles').'';
if (!empty($png_svg_files)) {
echo ''.get_lang('SelectSVGEditImage').'
';
echo '';
foreach($png_svg_files as $filename) {
$image = $user_disk_path.$filename;
if (strpos($filename, "svg")){
$new_sizes['width'] = 60;
$new_sizes['height'] = 60;
} else {
$new_sizes = api_resize_image($image, 60, 60);
}
echo ' ';
}
echo '
';
} else {
Display::display_warning_message(get_lang('NoSVGImages'));
}
?>