Manche Bereiche nur anzeigen, wenn sie Inhalt haben

This commit is contained in:
Matthias Grief
2025-01-06 22:40:03 +01:00
parent 81f95e4f00
commit afbe57cc93
2 changed files with 30 additions and 1 deletions

View File

@@ -102,6 +102,10 @@ $topics = $subjectData->topics;
</ul>
</div>-->
</div>
<?php
if(count($topicData->files) > 0) {
?>
<div class="download-section bg-gray-100 p-[20px] rounded-[20px]">
<h4>Übungen herunterladen:</h4>
<div class="download-links">
@@ -122,6 +126,10 @@ $topics = $subjectData->topics;
?>
</div>
</div>
<?php
}
?>
</div>
<?php