$site->hasFiles()
Checks if there are any files placed directly in /content
-
return (boolean)
Example
<?php if($site->hasFiles()): ?>
The /content folder contains files.
<?php endif ?>
Checks if there are any files placed directly in /content
<?php if($site->hasFiles()): ?>
The /content folder contains files.
<?php endif ?>