/** * 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); } }
/** * 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); } }
/** * 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; }