diff options
Diffstat (limited to 'src/application/views/view_search_results.php')
-rw-r--r-- | src/application/views/view_search_results.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/application/views/view_search_results.php b/src/application/views/view_search_results.php deleted file mode 100644 index 660284d..0000000 --- a/src/application/views/view_search_results.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php -use mystic\forum\utils\StringUtils; -?> - -<?php if (count($posts) > 0): ?> - <p><?= __("%result_count% result(s) in %search_duration% second(s)", [ - "result_count" => count($posts), - "search_duration" => number_format($search_duration, 2, __(".", context: "Number formatting"), __(",", context: "Number formatting")), - ]) ?></p> - <div class="list-group margin-top"> - <?php foreach ($posts as $post): - if ($post->deleted) continue; - $hasAttachments = count($attachments[$post->id]) > 0; - ?> - <a href="?_action=viewtopic&topic=<?= htmlentities(urlencode($post->topicId)) ?>#post-<?= htmlentities(urlencode($post->id)) ?>" class="list-group-item"> - <?php if ($hasAttachments): ?> - <span class="badge"><span class="fa fa-paperclip"></span></span> - <?php endif; ?> - <?= renderPostSummary($post->content) ?><br> - <span class="text-muted"><?= __("posted by %author% on %post_date% in %topic%", [ - "author" => '<em>' . htmlentities($users[$post->authorId]?->displayName ?? __("unknown")) . '</em>', - "post_date" => '<span class="_time">' . htmlentities($post->postDate->format("c")) . '</span>', - "topic" => '<em>' - . ($topics[$post->topicId]?->isLocked ? '<span class="fa fa-lock text-muted" aria-hidden="true"></span> ' : '') - . htmlentities($topics[$post->topicId]?->title ?? "unknown") . '</em>', - ]) ?></span> - </a> - <?php endforeach; ?> - </div> -<?php else: ?> - <div class="well icon-well text-info margin-top margin-bottom"> - <span class="fa fa-info-circle text-info" aria-hidden="true"></span> - <em><?= __("No results for this search") ?></em> - </div> -<?php endif; ?> |