<?php
/*
Template Name: Agency Area
*/
get_header();
echo '<div id="body">';
global $current_user;
if( in_array( 'administrator', $current_user->roles ) ) {
echo '<div class="agency_area_menu">';
wp_nav_menu();
echo '</div>';
} else {
// echo '<p>You do not have the rights required to view this page. Sorry.</p>';
/* or with internationalization
(uncomment either, adjust text domain if applicable) */
echo '<p>' .
__(
'You do not have the rights required to view this page. Sorry.',
'theme-text-domain'
) .
'</p>';
}
echo '</div>';
get_footer();
?>