Use builtin function is_dir() instead of custom code to check wether a filepath is a directory or not
Correct some code alignement
Correct display of filename
Quick fix to add mp4 video file + read in lightbox