From c8cdadfabea0120526a6e0366710f9256fc999b4 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 1 Feb 2025 10:30:45 +0200 Subject: feat(views/home): Move single webpage card code to a separate file --- views/home/card.php | 15 +++++++++++++++ views/home/index.php | 33 ++++++--------------------------- 2 files changed, 21 insertions(+), 27 deletions(-) create mode 100644 views/home/card.php (limited to 'views') 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 @@ +
+
+ URL ?> + Date ?> +
+
+ + Title ?> +
+
+ Visits: Visits ?> + +
+
+ diff --git a/views/home/index.php b/views/home/index.php index e14e23a..036a79a 100644 --- a/views/home/index.php +++ b/views/home/index.php @@ -11,34 +11,13 @@

Most popular archives

- -
-
- URL ?> - Date ?> -
-
- - Title ?> -
-
- Visits: Visits ?> - -
- -
- +URL"; + include __DIR__ . '/card.php'; + } +?>

...

- - -- cgit v1.2.3