1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Hero cleanup for Bootstrap5. Switched to placeholder images. Admin-ui type 'image' now loads remote URLs correctly.

This commit is contained in:
Cameron
2021-02-26 10:13:07 -08:00
parent d5a4ef57d1
commit cb95b4b243
16 changed files with 80 additions and 53 deletions

View File

@@ -5537,8 +5537,9 @@ var_dump($select_options);*/
}
$fileOnly = basename($value);
// Not an image but a file. (media manager)
if(!preg_match("/\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP)$/", $fileOnly) && strpos($fileOnly,'.') !== false)
if(!preg_match("/\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP)/", $fileOnly) && strpos($fileOnly,'.') !== false)
{
$icon = '{e_IMAGE}filemanager/zip_32.png';
$src = $tp->replaceConstants(vartrue($parms['pre']).$icon, 'abs');