function showBanner()
 {
     if ($this->hlp->isCurrentRevisionApproved()) {
         $class = 'approved_yes';
     } else {
         if ($this->hlp->isHiddenForUser()) {
             return;
         }
         $class = 'approved_no';
     }
     printf('<div class="approval %s">', $class);
     $this->showLatestDraftIfNewer();
     $this->showLatestApprovedVersion();
     $this->showDraft();
     $this->showApproved();
     $this->showPreviousApproved();
     $this->showApproveAction();
     $this->showInternalNote();
     echo '</div>';
     global $INFO;
     if ($this->getConf('apr_mail_receiver') !== '' && $INFO['isadmin']) {
         $validator = new EmailAddressValidator();
         $validator->allowLocalAddresses = true;
         $addr = $this->getConf('apr_mail_receiver');
         if (!$validator->check_email_address($addr)) {
             msg(sprintf($this->getLang('mail_invalid'), htmlspecialchars($addr)), -1);
         }
     }
 }
 function hidePage(Doku_Event &$event, $params)
 {
     if (!$this->hlp->isHiddenForUser($event->data['id'])) {
         return;
     }
     $event->data['hidden'] = true;
 }