$site->hasImages()

Checks if there are any images (jpg, png, gif, etc.) placed directly in /content

  • return (boolean)

Example

<?php if($site->hasImages()): ?>
The /content folder contains images.
<?php endif ?>

Is something missing or incorrect? Edit this page on Github…