From: Steve Sutton Date: Fri, 17 Oct 2014 19:09:58 +0000 (-0400) Subject: Add menu and subs items X-Git-Tag: v1.0.1~35 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=cbd1fb5fa4e6860f3e86fc3c206851d27540caa2;p=WP-Plugins%2Fglm-employment.git Add menu and subs items Start of the emp app --- diff --git a/controllers/admin.php b/controllers/admin.php index 510c5b8..fa1ab21 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -19,6 +19,37 @@ class AdminController array($this, 'initializeData') ); \add_action('plugins_loaded', array($this, 'pluginUpdateDbCheck')); + \add_action('admin_menu', array($this, 'adminMenuSetup')); + } + + public function adminMenuSetup() + { + add_menu_page( + 'My Page Title', + 'GLM Jobs', + 'edit_posts', + 'glmjobs', + array($this, 'overview'), + 'dashicons-businessman' + ); + add_submenu_page( + 'glmjobs', + 'Add New Job', + 'Add New Job', + 'edit_posts', + 'glmjobs_addjob', + array($this, 'addjob') + ); + } + + public function overview() + { + echo '
List Jobs
'; + } + + public function addjob() + { + echo '
Add Job
'; } public function installApplication()