From 552d06cd7e61c45476c55895422c8ca3d77a9bc6 Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Sat, 21 Dec 2024 01:46:21 -0500 Subject: refactor: cleaner codebase and best practices --- includes/download-logic.php | 52 ++++++++++++++++++++++++++++++++++++++++++ includes/link-tags-in-head.php | 4 ++-- includes/markdown-editor.php | 11 +++++++++ includes/quick-how-to.php | 33 +++++++++++++++++++++++++++ includes/video-how-to.php | 14 ++++++++++++ 5 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 includes/download-logic.php create mode 100644 includes/markdown-editor.php create mode 100644 includes/quick-how-to.php create mode 100644 includes/video-how-to.php (limited to 'includes') diff --git a/includes/download-logic.php b/includes/download-logic.php new file mode 100644 index 0000000..517115a --- /dev/null +++ b/includes/download-logic.php @@ -0,0 +1,52 @@ +
+

🎨 please select your presentation theme 🎭

+
+ + + + + + + + + '90sMakeUpCommercial', + 'chicagoOlives' => 'chicagoOlives', + 'earlyCupertino' => 'earlyCupertino', + 'ohioCustard' => 'ohioCustard', + 'raleighAroundMe' => 'raleighAroundMe', + 'redmond2013' => 'redmond2013', + 'defaultIsKing' => 'defaultIsKing', + 'cuppertinoIsh' => 'cuppertinoIsh', + 'lazyProfessor' => 'lazyProfessor', + 'redmond2003' => 'redmond2003', + 'strengthInNumbers' => 'strengthInNumbers', + 'thatMagazine' => 'thatMagazine', + ]; + + foreach ($themes as $key => $theme) { + echo " + + + "; + } + ?> + +
+

preview

+
+

select

+
+ {$theme} + + +
+ +
+
+
diff --git a/includes/link-tags-in-head.php b/includes/link-tags-in-head.php index 3b5f302..b05273b 100644 --- a/includes/link-tags-in-head.php +++ b/includes/link-tags-in-head.php @@ -1,2 +1,2 @@ - - + + diff --git a/includes/markdown-editor.php b/includes/markdown-editor.php new file mode 100644 index 0000000..fa68bb8 --- /dev/null +++ b/includes/markdown-editor.php @@ -0,0 +1,11 @@ +
+ +
+ +
+ +
+
+

diff --git a/includes/quick-how-to.php b/includes/quick-how-to.php new file mode 100644 index 0000000..4460de9 --- /dev/null +++ b/includes/quick-how-to.php @@ -0,0 +1,33 @@ + +
+ ← expand for a brief "how-to" 📖 +

+

+
+

It's highly recommended that you use markdown lists rather than plain text lists


+

+
+
diff --git a/includes/video-how-to.php b/includes/video-how-to.php new file mode 100644 index 0000000..6745b4a --- /dev/null +++ b/includes/video-how-to.php @@ -0,0 +1,14 @@ +
+ ← expand for a quick video demo 🎬 +

+ +

+
+
+
+
-- cgit v1.2.3