示例#1
0
 /**
  * Register Admin Menu
  *
  * @return void
  *
  * @access public
  */
 public function adminMenu()
 {
     if (AAM_Core_Console::hasIssues()) {
         $counter = '&nbsp;<span class="update-plugins">' . '<span class="plugin-count">' . AAM_Core_Console::count() . '</span></span>';
     } else {
         $counter = '';
     }
     //register the menu
     add_menu_page(__('AAM', AAM_KEY), __('AAM', AAM_KEY) . $counter, AAM_Core_ConfigPress::get('aam.page.capability', 'administrator'), 'aam', array($this, 'renderPage'), AAM_MEDIA . '/active-menu.png');
 }