summaryrefslogtreecommitdiffstats
path: root/settings/templates/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/templates/settings.php')
-rw-r--r--settings/templates/settings.php31
1 files changed, 23 insertions, 8 deletions
diff --git a/settings/templates/settings.php b/settings/templates/settings.php
index 44011af2884..2314604111a 100644
--- a/settings/templates/settings.php
+++ b/settings/templates/settings.php
@@ -1,9 +1,24 @@
-<?php /**
- * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
- */?>
+<?php
+/**
+ * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
+ * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This is the default empty template to load Vue!
+ * Do your cbackend computations into a php files
+ * then serve this file as template and include your data into
+ * the $serverData template variable
+ *
+ * return new TemplateResponse('settings', 'settings', ['serverData' => $serverData]);
+ *
+ */
-<?php foreach($_['forms'] as $form) {
- print_unescaped($form);
-}
+script('settings', 'main');
+style('settings', 'settings');
+
+// Did we have some data to inject ?
+if(is_array($_['serverData'])) {
+?>
+<span id="serverData" data-server="<?php p(json_encode($_['serverData']));?>"></span>
+<?php } ?>