summaryrefslogtreecommitdiffstats
path: root/includes/admin/views/giglog_admin_page.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-02-21 14:34:14 +0100
committerHarald Eilertsen <haraldei@anduin.net>2021-02-21 14:34:14 +0100
commitd7f1eccafc8013b20a5f23e5b5c97df458ea6081 (patch)
tree6a098665a2715d818133d4132888294ecfe3e525 /includes/admin/views/giglog_admin_page.php
parenta176f66a860634b0975eee6894f075fe21e65cdf (diff)
downloadgigologadmin-d7f1eccafc8013b20a5f23e5b5c97df458ea6081.tar.gz
gigologadmin-d7f1eccafc8013b20a5f23e5b5c97df458ea6081.tar.bz2
gigologadmin-d7f1eccafc8013b20a5f23e5b5c97df458ea6081.zip
Add top level menu to WordPress admin menu.
Currently nothing useful on the page, but a placeholder for a more useful page later, and possibly submenus for other functionality. The menu is placed right below the 'Media' menu for now, and is available to anyone with the 'upload_files' capability. Both of these may be adjusted later if there's a better location or other capabilities fit better.
Diffstat (limited to 'includes/admin/views/giglog_admin_page.php')
-rw-r--r--includes/admin/views/giglog_admin_page.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php
new file mode 100644
index 0000000..45a9f3f
--- /dev/null
+++ b/includes/admin/views/giglog_admin_page.php
@@ -0,0 +1,26 @@
+<?php
+/*
+ * Copyright (C) 2021 Harald Eilertsen, Andrea Chirulescu
+ *
+ * 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/>.
+ */
+
+if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) {
+ class GiglogAdmin_AdminPage {
+ static function render_html() {
+ echo '<div class="wrap"><h1>Hi there admin!</h1></div>';
+ }
+ }
+}
+?>