From 51b3554ff2988ac61ba3f604431e09941cd95545 Mon Sep 17 00:00:00 2001
From: George Halkiadakis
Date: Tue, 14 Mar 2023 03:10:19 +0200
Subject: main css classes for front/back-end
---
html/app/views/simple/lorem-posts.php | 93 +++++++++++++++++++++++++++++++++++
1 file changed, 93 insertions(+)
create mode 100644 html/app/views/simple/lorem-posts.php
(limited to 'html/app/views/simple/lorem-posts.php')
diff --git a/html/app/views/simple/lorem-posts.php b/html/app/views/simple/lorem-posts.php
new file mode 100644
index 0000000..5f7fccb
--- /dev/null
+++ b/html/app/views/simple/lorem-posts.php
@@ -0,0 +1,93 @@
+". $lorem[$i] ."
";
+ }
+
+ return $html;
+}
+
+function some_lorem_title() {
+ // make an array of
+ $lorem = explode(".", // sentences only
+ str_replace(". ", ".",
+ implode(" ", LOREM) // made from all Lorem-ipsums
+ )
+ );
+ shuffle($lorem);
+ return $lorem[0];
+}
+
+
+include 'pythia.php';
+
+
+$categories = $wiki->get_categories();
+
+$non_root = [];
+foreach($categories as $node) {
+ if (intval($node['parent_id']) > 0) { $non_root[] = $node['id']; }
+ // if (intval($node['parent_id']) > 5) { $non_root[] = $node['id']; }
+}
+// print_r($non_root); die();
+
+echo "";
+for( $i = 0 ; $i < 250 ; $i++ ) {
+
+ $temp = $non_root;
+ shuffle($temp);
+
+ $post = [
+ 'title' => some_lorem_title(),
+ 'category' => intval($temp[0]),
+ 'body' => some_lorem_html()
+ ];
+ print_r($post);
+
+ $wiki->add_post($post);
+}
+echo "";
\ No newline at end of file
--
cgit v1.2.3