diff --git a/ci4/app/Config/Routing.php b/ci4/app/Config/Routing.php index bd091a65..97fd5b8d 100644 --- a/ci4/app/Config/Routing.php +++ b/ci4/app/Config/Routing.php @@ -27,6 +27,7 @@ class Routing extends BaseRouting */ public array $routeFiles = [ APPPATH . 'Config/Routes.php', + APPPATH . 'Config/Wiki/WikiRoutes.php', ]; /** diff --git a/ci4/app/Config/Wiki/WikiRoutes.php b/ci4/app/Config/Wiki/WikiRoutes.php new file mode 100644 index 00000000..eba0ee55 --- /dev/null +++ b/ci4/app/Config/Wiki/WikiRoutes.php @@ -0,0 +1,8 @@ +group('wiki', ['namespace' => 'App\Controllers\Wiki'], function ($routes) { + $routes->get('','WikiController::index',["as" => "wikiIndex"]); +}); \ No newline at end of file diff --git a/ci4/app/Controllers/Wiki/WikiController.php b/ci4/app/Controllers/Wiki/WikiController.php new file mode 100644 index 00000000..b414cd75 --- /dev/null +++ b/ci4/app/Controllers/Wiki/WikiController.php @@ -0,0 +1,14 @@ + diff --git a/ci4/app/Views/themes/vuexy/main/menus/wiki_menu.php b/ci4/app/Views/themes/vuexy/main/menus/wiki_menu.php new file mode 100644 index 00000000..bd766aba --- /dev/null +++ b/ci4/app/Views/themes/vuexy/main/menus/wiki_menu.php @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/ci4/app/Views/themes/vuexy/wiki/breadcrumbs.php b/ci4/app/Views/themes/vuexy/wiki/breadcrumbs.php new file mode 100644 index 00000000..732cac8f --- /dev/null +++ b/ci4/app/Views/themes/vuexy/wiki/breadcrumbs.php @@ -0,0 +1,54 @@ + + + + + + +section('globalJsFunctions') ?> + + function showBreadCrumbSaveButton(showIt = false){ + if(showIt === true){ + $('#bc-save-div').show(); + $('#bc-card').addClass('bg-warning'); + } else if(showIt === false){ + $('#bc-save-div').hide(); + $('#bc-card').removeClass('bg-warning'); + } + } + +endSection() ?> diff --git a/ci4/app/Views/themes/vuexy/wiki/layout.php b/ci4/app/Views/themes/vuexy/wiki/layout.php new file mode 100644 index 00000000..b79b2014 --- /dev/null +++ b/ci4/app/Views/themes/vuexy/wiki/layout.php @@ -0,0 +1,328 @@ +get('settings'); +$picture = "/assets/img/default-user.png"; +?> + + + + + + + + + + "> + + <?= config('Safekat')->appName ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + renderSection('css') ?> + + + + + + + + + + + +
+
+ + + +
+ + + + + + +
+ + +
+ + + renderSection('content') + ?> +
+ + + + + + +
+
+ +
+ +
+ + +
+ + +
+
+ + + renderSection('footerAdditions') ?> + + + + + + + + + + + + + + + + + + + + renderSection('additionalExternalJs') ?> + + + + + + \n"; + foreach ($global_js_variables as $name => $value): + echo "\t" . "var $name = $value;" . "\n"; + endforeach; + echo "\n"; + } + ?> + + + + + + + \ No newline at end of file diff --git a/ci4/app/Views/themes/vuexy/wiki/pages/home.php b/ci4/app/Views/themes/vuexy/wiki/pages/home.php new file mode 100644 index 00000000..2e951f5d --- /dev/null +++ b/ci4/app/Views/themes/vuexy/wiki/pages/home.php @@ -0,0 +1,46 @@ +include('themes/_commonPartialsBs/select2bs5') ?> +include('themes/_commonPartialsBs/datatables') ?> +include('themes/_commonPartialsBs/_confirm2delete') ?> +extend('themes/vuexy/wiki/layout') ?> + +section('content'); ?> +
+
+ +
+
+ +
+
+
+ + user()->inGroup('admin')): ?> +
+
+
+
+
+ + + + +
+
+ +
+
+
+ + +
+
+ +
+
+
+section("additionalExternalJs") ?> + +endSection() ?> +endSection() ?> \ No newline at end of file diff --git a/ci4/app/Views/themes/vuexy/wiki/sidebar.php b/ci4/app/Views/themes/vuexy/wiki/sidebar.php new file mode 100644 index 00000000..1e28f3ea --- /dev/null +++ b/ci4/app/Views/themes/vuexy/wiki/sidebar.php @@ -0,0 +1,35 @@ + + + \ No newline at end of file