Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-07-21 16:00:26 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2016-07-21 16:00:26 +0300
commit603b00199c0b5981a998cede7e7f0ae64071a3d4 (patch)
treebacd020337bc36408a912bec33c8dcf2c9d81321 /templates
parent30926c985687916395d47cff0390314e34ed6e99 (diff)
initial commit of some boilerplate code
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php37
-rw-r--r--templates/part.content.php10
-rw-r--r--templates/part.navigation.php10
3 files changed, 57 insertions, 0 deletions
diff --git a/templates/main.php b/templates/main.php
new file mode 100644
index 0000000..a34432f
--- /dev/null
+++ b/templates/main.php
@@ -0,0 +1,37 @@
+<?php
+/**
+ * @copyright Copyright (c) 2016 Bjoern Schiessle <bjoern@schiessle.org>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+script('serverinfo', 'script');
+style('serverinfo', 'style');
+
+?>
+
+<div id="app">
+ <div id="app-navigation">
+ <?php print_unescaped($this->inc('part.navigation')); ?>
+ </div>
+
+ <div id="app-content">
+ <div id="app-content-wrapper">
+ <?php print_unescaped($this->inc('part.content')); ?>
+ </div>
+ </div>
+</div>
diff --git a/templates/part.content.php b/templates/part.content.php
new file mode 100644
index 0000000..8046942
--- /dev/null
+++ b/templates/part.content.php
@@ -0,0 +1,10 @@
+<p>Hello World <?php p($_['user']) ?></p>
+
+<p><button id="hello">click me</button></p>
+
+<p><textarea id="echo-content">
+ Send this as ajax
+</textarea></p>
+<p><button id="echo">Send ajax request</button></p>
+
+Ajax response: <div id="echo-result"></div> \ No newline at end of file
diff --git a/templates/part.navigation.php b/templates/part.navigation.php
new file mode 100644
index 0000000..b28b6a8
--- /dev/null
+++ b/templates/part.navigation.php
@@ -0,0 +1,10 @@
+<ul>
+ <li><a href="#">First level entry</a></li>
+ <li>
+ <a href="#">First level container</a>
+ <ul>
+ <li><a href="#">Second level entry</a></li>
+ <li><a href="#">Second level entry</a></li>
+ </ul>
+ </li>
+</ul> \ No newline at end of file