File: /home/awaldron/_domains/pennhillscdc.org/wp-content/themes/phcdc/admin/admin.php
<?php
add_action( 'admin_menu', 'aw_admin' );
function aw_admin() {
add_menu_page( 'Penn Hills CDC', 'PHCDC', 'edit_others_posts', 'PHCDC', 'aw_admin_page', get_stylesheet_directory_uri() . '/img/admin-icon.png');
}
add_action( 'admin_menu', 'aw_events_admin' );
function aw_events_admin() {
add_submenu_page('PHCDC', 'Events', 'Events Manager', 'edit_others_posts', 'aw_events', 'aw_events');
}
//add_action( 'admin_menu', 'aw_hours_menu' );
//function aw_hours_menu() {
// add_submenu_page('PHLibrary', 'Library Hours', 'Library Hours', 'edit_others_posts', 'aw_hours', 'aw_hours');
//}
//
//add_action( 'admin_menu', 'aw_new_noteworthy' );
//function aw_new_noteworthy() {
// add_submenu_page('PHLibrary', 'New & Noteworthy', 'New & Noteworthy', 'edit_others_posts', 'aw_noteworthy', 'aw_noteworthy');
//}
require_once("aw_noteworthy.php");
require_once("aw_events.php");
require_once("aw_hours.php");
function aw_admin_page() {
echo '
<div class="wrap">
<h1 class="wp-heading">Penn Hills Library Administration</h1>
<hr>
<br><br>
<ul style="font-size:30px;line-height:50px;margin-left:50px;">
<li style="list-style-type: disc;"><a href="/wp-admin/admin.php?page=aw_events">Events Manager</a></li>
</ul>
</div>
';
}