$site->hasCode()

Checks if there are any code files placed directly in /content

  • return (boolean)

Example

<?php if($site->hasCode()): ?>
The /content folder contains code files.
<?php endif ?>