public function thanksNewsletterAction() { $tplVars = ['controller' => $this, 'pageTitle' => $this->page->name, 'contentViewTpl' => '<h1>Signup Successful</h1><p>Your request to sign up for the newsletter has been submitted.</p>', 'page' => $this->page]; if (isset($this->options['content_only']) && $this->options['content_only']) { View::renderString($this->page->content, $tplVars); return; } View::main($this->mainTpl, false, $tplVars); }
public function defaultAction() { if (@$this->page->url == '/404') { header('HTTP/1.0 404 Not Found'); } if (isset($this->page->main_tpl)) { $this->mainTpl = $this->page->main_tpl; } $title = @$this->page->title; if (!$title) { $title = @$this->page->name; } $tplVars = ['controller' => $this, 'pageTitle' => $title, 'metaDescription' => @$this->page->meta_description, 'contentViewTpl' => @$this->page->content, 'page' => $this->page]; if (isset($this->options['content_only']) && $this->options['content_only']) { View::renderString(@$this->page->content, $tplVars); return; } View::main($this->mainTpl, false, $tplVars); }