Пример #1
0
 /**
  * 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
 /**
  * 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}";
     }
 }