Beispiel #1
0
 /**
  * display
  *
  * @param string $template Template file name OPTIONAL
  *
  * @return void
  */
 public function display($template = null)
 {
     if (!static::$controllerContentDisplayed && isset(\XLite\View\Controller::$bodyContent)) {
         $this->echoContent();
         static::$controllerContentDisplayed = true;
     } else {
         parent::display($template);
     }
 }
Beispiel #2
0
 /**
  * display
  *
  * @param string $template Template file name OPTIONAL
  *
  * @return void
  */
 public function display($template = null)
 {
     isset(\XLite\View\Controller::$bodyContent) ? $this->echoContent() : parent::display($template);
 }
 /**
  * displayPage
  *
  * @param string $template Template file name OPTIONAL
  *
  * @return void
  */
 protected function displayPage($template = null)
 {
     if ($this->useDefaultDisplayMode()) {
         // Display widget content inside some CMS content
         $this->getContentWidget()->display($template);
     } else {
         // Display widget in standalone display mode
         $this->prepareContent();
         parent::display($template);
     }
 }
Beispiel #4
0
 /**
  * Attempts to display widget using its template
  *
  * @param string $template Template file name OPTIONAL
  *
  * @return void
  */
 public function display($template = null)
 {
     parent::display($template);
     static::$loaded[get_called_class()] = true;
 }