$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 ?>