From 06af2ce37c3e6f2111d3be8ae91da94873609ec6 Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Wed, 10 Mar 2021 19:13:59 +0100 Subject: added help file for reviewers --- giglogadmin.php | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'giglogadmin.php') diff --git a/giglogadmin.php b/giglogadmin.php index c9defd4..b711baa 100644 --- a/giglogadmin.php +++ b/giglogadmin.php @@ -19,6 +19,49 @@ +/*Andrea's attempt at creating help files. Didn't get it to work inside giglogadmin class so it's all defined before that section */ + require_once __DIR__ . '/includes/admin/helpfiles/instrunctions.php'; + require_once __DIR__ . '/includes/admin/helpfiles/instr_reviewers.php'; + add_action( 'admin_menu', 'add_help_pages'); + + function add_help_pages() { + + add_menu_page( + + "Help for ET users", // Page title + + "Help for ET users", // Menu title + + "upload_files", // Will show for users with this capability + + "helpfiles", // menu slug + + array( 'Instructions_Page', 'render_instr_html' ), // callable + + 'dashicons-tickets-alt', // Icon url + + 10); // Position, just below 'Media' + + + add_submenu_page( + + "helpfiles", // parent slug + + "Reviewer help files", // page title + + "Reviewer help files", // menu title + + "upload_files", // required capability + + "reviewer_help", // menu slug + + array( 'Instructions_Reviewers', 'render_instr_rev_html' )); // callable + + + } + + + if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { require_once __DIR__ . '/includes/public/shortcodes/giglog_bands.php'; require_once __DIR__ . '/includes/public/shortcodes/giglog_display_unprocessed.php'; -- cgit v1.2.3