From 42d9e605fc3f7e0e139a68e9916b3ccdaa721322 Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 22 Apr 2022 11:48:10 +0200 Subject: Update --- projects/home.php | 39 +++++++++++++++++++++++++++++++++++++++ projects/index.php | 31 ++++++------------------------- projects/view.php | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+), 25 deletions(-) create mode 100644 projects/home.php create mode 100644 projects/view.php (limited to 'projects') diff --git a/projects/home.php b/projects/home.php new file mode 100644 index 0000000..6ef808d --- /dev/null +++ b/projects/home.php @@ -0,0 +1,39 @@ + + + +
+
+

Projects

+
+ +
+ +
+
+
+ style="background: hsla(, 100%, 50%, 0.1) !important;" src="" alt=""> +

+

line(trim($project["description"])))) ?>

+ " class="btn btn-outline-light">View Project +
Updated
+
+
+
+ +
+ +
+ View deprecated projects +
+ +
+
+ + \ No newline at end of file diff --git a/projects/index.php b/projects/index.php index e693deb..0b56fe8 100644 --- a/projects/index.php +++ b/projects/index.php @@ -1,26 +1,7 @@ - - + -
-

Projects

-
- -
- -
-
-
- style="background: hsla(, 100%, 50%, 0.1) !important;" src="" alt=""> -

-

line(trim($project["description"])))) ?>

- " target="_blank" class="btn btn-outline-light">View Project -
Updated
-
-
-
- -
-
- - \ No newline at end of file +if (isset(array_keys($_GET)[0])) { + require_once "view.php"; +} else { + require_once "home.php"; +} \ No newline at end of file diff --git a/projects/view.php b/projects/view.php new file mode 100644 index 0000000..05cce0b --- /dev/null +++ b/projects/view.php @@ -0,0 +1,52 @@ + + + +
+
+ ← Go back to projects list +

style="background: hsla(, 100%, 50%, 0.1) !important;" src="" alt=""> Deprecated

+ +

line(trim($prj["description"])))) ?> " target="_blank">

+ +
+ + ".$prj['event']['author']['name']." (@".$prj['event']['author']['username'].") ".$prj['event']['action_name']." ".(isset($prj['event']['push_data']) ? $prj['event']['push_data']['ref_type']." ".$prj['event']['push_data']['ref']." " : (isset($prj['event']['wiki_page']) ? "wiki page " . $prj['event']['wiki_page']['slug'] . " " : "project ")) . timeAgo($prj['event']['created_at']) ?> + +
+ +
+ +
+
+ +
+ +
+ + text(base64_decode($prj['readme'])) ?> + +
+ + \ No newline at end of file -- cgit