コード例 #1
0
ファイル: ModuleIsotope.php プロジェクト: rburch/core-1
 /**
  * Include messages if enabled
  * @return string
  */
 public function generate()
 {
     $strBuffer = parent::generate();
     // Prepend any messages to the module output
     if ($this->iso_includeMessages) {
         $strBuffer = IsotopeFrontend::getIsotopeMessages() . $strBuffer;
     }
     return $strBuffer;
 }
コード例 #2
0
ファイル: IsotopeFrontend.php プロジェクト: rikaix/core-1
 /**
  * Use generatePage Hook to inject messages if they have not been included in a module
  */
 public function injectMessages()
 {
     $strMessages = IsotopeFrontend::getIsotopeMessages();
     if ($strMessages != '') {
         list(, $startScript, $endScript) = IsotopeFrontend::getElementAndScriptTags();
         $GLOBALS['TL_MOOTOOLS'][] = "\n{$startScript}\nwindow.addEvent('domready', function()\n{\n\tIsotope.displayBox('" . $strMessages . "', true);\n});\n{$endScript}";
     }
 }