Einrückungen und Zeilenumbrüche vereinheitlicht
This commit is contained in:
@@ -61,58 +61,61 @@ if (!isset($topicData)) {
|
||||
<!-- Main Content -->
|
||||
<main class="main-content">
|
||||
<div class="max-w-7xl mt-5">
|
||||
<div class="mt-16"></div>
|
||||
<div class="mt-16"></div>
|
||||
|
||||
<div class="related-topics bg-gray-100 p-4 rounded-lg">
|
||||
<h4>Verwandte Themen:</h4>
|
||||
<ul class="flex flex-wrap gap-2">
|
||||
<?php
|
||||
foreach ($topicData->relatedTopics as $relatedTopicName) {
|
||||
$relatedTopic = $subjectData->topics[$relatedTopicName];
|
||||
if (!isset($relatedTopic)) {
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
<li onclick="event.stopPropagation();" class="border-[<?php echo($subjectData->color); ?>] border-2">
|
||||
<a href='<?php echo("topic.php?subject=$subjectData->id&topic=$relatedTopic->id") ?>' class="block">
|
||||
<?php echo($relatedTopic->displayName); ?>
|
||||
</a>
|
||||
</li>
|
||||
<div class="related-topics bg-gray-100 p-4 rounded-lg">
|
||||
<h4>Verwandte Themen:</h4>
|
||||
<ul class="flex flex-wrap gap-2">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content-card mt-[8px]">
|
||||
<h1 class="content-title"><?php echo($topicData->displayName); ?></h1>
|
||||
<p class="content-text">
|
||||
<?php echo($topicData->description); ?>
|
||||
</p>
|
||||
<p class="content-text article-section">
|
||||
<?php echo($topicData->article); ?>
|
||||
</p>
|
||||
|
||||
<div class="exercise-section bg-gray-100">
|
||||
<h3 style="margin-bottom: 1rem;" class="text-[var(--primary-color)]">Übungen herunterladen:</h3>
|
||||
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem;">
|
||||
<?php
|
||||
foreach ($topicData->files as $fileName) {
|
||||
foreach ($topicData->relatedTopics as $relatedTopicName) {
|
||||
$relatedTopic = $subjectData->topics[$relatedTopicName];
|
||||
if (!isset($relatedTopic)) {
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
|
||||
<a href='<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>'
|
||||
target="_blank" download class="download-btn border-[<?php echo($subjectData->color); ?>] border-2">
|
||||
<i class="fas fa-file-pdf"></i>
|
||||
<?php echo($fileName); ?>
|
||||
</a>
|
||||
|
||||
<li onclick="event.stopPropagation();"
|
||||
class="border-[<?php echo($subjectData->color); ?>] border-2">
|
||||
<a href='<?php echo("topic.php?subject=$subjectData->id&topic=$relatedTopic->id") ?>'
|
||||
class="block">
|
||||
<?php echo($relatedTopic->displayName); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content-card mt-[8px]">
|
||||
<h1 class="content-title"><?php echo($topicData->displayName); ?></h1>
|
||||
<p class="content-text">
|
||||
<?php echo($topicData->description); ?>
|
||||
</p>
|
||||
<p class="content-text article-section">
|
||||
<?php echo($topicData->article); ?>
|
||||
</p>
|
||||
|
||||
<div class="exercise-section bg-gray-100">
|
||||
<h3 style="margin-bottom: 1rem;" class="text-[var(--primary-color)]">Übungen herunterladen:</h3>
|
||||
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem;">
|
||||
<?php
|
||||
foreach ($topicData->files as $fileName) {
|
||||
?>
|
||||
|
||||
<a href='<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>'
|
||||
target="_blank" download
|
||||
class="download-btn border-[<?php echo($subjectData->color); ?>] border-2">
|
||||
<i class="fas fa-file-pdf"></i>
|
||||
<?php echo($fileName); ?>
|
||||
</a>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="sticky top-[100vh] lg:ms-[280px] w-full lg:w-auto bg-white/80 backdrop-blur-lg shadow-sm p-5">
|
||||
|
||||
Reference in New Issue
Block a user