$file->isWebsafe()
Checks if the file is a jpg, png or gif
- since: Kirby 2.3.0
-
return (boolean)
Example
<?php if($page->file()->isWebsafe()): ?>
The file is either a jpg, png or gif
<?php endif ?>
Checks if the file is a jpg, png or gif
<?php if($page->file()->isWebsafe()): ?>
The file is either a jpg, png or gif
<?php endif ?>