summaryrefslogtreecommitdiff
path: root/src/application/views/view_topics.php
diff options
context:
space:
mode:
authorJonas Kohl2024-10-17 10:56:01 +0200
committerJonas Kohl2024-10-17 10:56:01 +0200
commitfe0f414dc0211a4014581dc03fcfd514ed7ed02d (patch)
treecd86fc00cd9b7a97eabb9668e0a39e2b4b3e5357 /src/application/views/view_topics.php
parente0e89b9fdbf301e0ead944636023947a67aca57d (diff)
Transition templating to Twig
Diffstat (limited to 'src/application/views/view_topics.php')
-rw-r--r--src/application/views/view_topics.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/application/views/view_topics.php b/src/application/views/view_topics.php
deleted file mode 100644
index 8a94775..0000000
--- a/src/application/views/view_topics.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-use mystic\forum\orm\User;
-use mystic\forum\orm\UserPermissions;
-
-if ($GLOBALS["currentUser"]?->hasPermission(UserPermissions::CREATE_OWN_TOPIC)):
-?>
-<p class="text-right">
-<a href="?_action=newtopic" class="btn btn-success"><span class="fa fa-plus" aria-hidden="true"></span> <?= __("New topic") ?></a>
-</p>
-<?php endif; ?>
-<div class="list-group">
-<?php /** @var Topic $topic */ foreach ($topics as $topic): ?>
-<a class="list-group-item" href="?_action=viewtopic&amp;topic=<?= htmlentities(urlencode($topic->id)) ?>">
- <h4 class="list-group-item-heading">
- <?php if ($topic->isLocked): ?>
- <span class="fa fa-lock text-muted" aria-hidden="true"></span>
- <?php endif; ?>
- <?= htmlentities($topic->title) ?>
- </h4>
- <p class="list-group-item-text _time"><?= htmlentities($topic->creationDate->format("c")) ?></p>
-</a>
-<?php endforeach; ?>
-</div>