aboutsummaryrefslogtreecommitdiff
path: root/views/home/card.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-01 10:30:45 +0200
committerSyndamia <kamen@syndamia.com>2025-02-01 10:30:45 +0200
commitc8cdadfabea0120526a6e0366710f9256fc999b4 (patch)
treeb4acc126498e6dbf6187722409f7873b654d2a7a /views/home/card.php
parentc4f387d21147b91e708345fc6f7405fb1a2b6271 (diff)
downloadnowayforward_human-c8cdadfabea0120526a6e0366710f9256fc999b4.tar
nowayforward_human-c8cdadfabea0120526a6e0366710f9256fc999b4.tar.gz
nowayforward_human-c8cdadfabea0120526a6e0366710f9256fc999b4.zip
feat(views/home): Move single webpage card code to a separate file
Diffstat (limited to 'views/home/card.php')
-rw-r--r--views/home/card.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/home/card.php b/views/home/card.php
new file mode 100644
index 0000000..de7d6a6
--- /dev/null
+++ b/views/home/card.php
@@ -0,0 +1,15 @@
+<section class="card" onclick="window.location.href = '<?= $goto ?>'">
+ <section class="quickinfo">
+ <a href="<?= $page->URL ?>"><?= $page->URL ?></a>
+ <span class="float-right"><?= $page->Date ?></span>
+ </section>
+ <section class="title">
+ <img src="<?= '/archives/' . $page->FaviconPath ?>"></span>
+ <span><?= $page->Title ?></span>
+ </section>
+ <section>
+ <strong>Visits: <?= $page->Visits ?></strong>
+ <strong><!-- Archives count --></strong>
+ </section>
+</section>
+