예제 #1
0
 protected function renderMessageAboveCanvas()
 {
     if (empty($this->actionCompletionMessage)) {
         return null;
     }
     // if
     $appLocale = $this->getAppLocale();
     $str = OpfHelperHtmlSite::messageInYellowishBox($appLocale[Localization::SUCCESS], $this->actionCompletionMessage, '100%');
     return $str;
 }
예제 #2
0
 private function renderCurrentCanvas()
 {
     $subCanvas = $this->getCurrentCanvas();
     $ds = $this->getDataSource();
     if ($ds->isAppAdded() == 0) {
         if ($this->mustInstallBeforeUse($subCanvas)) {
             $msg1 = $this->lookUpLocale(OpfLocalization::MSG_PLEASE_INSTALL_FIRST);
             $msg2 = $this->lookUpLocale(OpfLocalization::MSG_YOU_MUST_INSTALL_FIRST);
             $buttonStr = $ds->renderHrefInString($ds->getAddApplicationURLBase(), null, ucwords($this->lookUpLocale(OpfLocalization::MSG_INSTALL)), self::CLASS_EMPHASIZELINK, null, null);
             $str = OpfHelperHtmlSite::messageInYellowishBox($msg1, $msg2 . '<br>' . $buttonStr, '100%');
             return $str;
         }
         // if
     }
     // if
     if (!is_null($subCanvas)) {
         return $subCanvas->render();
     } else {
         return null;
     }
     // if
 }