$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 ?>
Checks if there are any code files placed directly in /content
<?php if($site->hasCode()): ?>
The /content folder contains code files.
<?php endif ?>