/**
  * Outputs the admin notices generated by the plugin
  *
  * @return void
  */
 function admin_notice()
 {
     if (empty(self::$admin_notices)) {
         return;
     }
     foreach (self::$admin_notices as $key => $notice) {
         echo '<div id="message" class="' . esc_attr($notice['class']) . '">';
         echo wpautop($notice['message']);
         echo '<div class="clear"></div>';
         echo '</div>';
     }
     //reset the notices handler
     self::$admin_notices = array();
 }