setTemplate(function () { $this->view->setLayoutTemplate(false); $template = $this->view->template('offline', [ 'offlineReason' => $this->offlineReason(), ]); $layout = $this->view->getLayoutTemplate(); if ($layout !== false) { $data['centerblock'] = $template; return $this->view->layoutRender($data, $layout); } return $template; }); $this->setKey('offline'); $this->withSeoSettings('offline', 'site'); $this->setController('site'); $this->setTitle(_t('@site', 'Project Shutdown')); } public function offlineReason(?string $lang = null) { $lang = $lang ?: $this->locale->current(); return $this->config('site.offline.reason', [], TYPE_ARRAY)[$lang] ?? ''; } public function seo() { $this->seoApply(); } public function seoSettings() { } }