Skip to content

Kirby 4.1.2

$site->hasAudio()

Checks if the Files collection has any audio files

$site->hasAudio(): bool

Return type

bool

Parent class

Kirby\Cms\Site

Example

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