setTemplate('away', 'site'); $this->setTitle(_t('site', 'Away Page')); } public function handle() { $this->url = $this->input->get('url', TYPE_STR); $this->https = $this->input->get('https', TYPE_BOOL); } public function prepareUrl() { if (! empty($this->url)) { $this->url = 'http' . ($this->https ? 's' : '') . '://' . $this->url; } else { $this->url = Url::to('/'); } return $this->url; } public function data() { $data = parent::data(); $data['url'] = $this->prepareUrl(); if (! $this->page) { return Redirect::to($data['url']); } return $data; } public function seo() { $this->seo->index(false, 'site away page')->follow(false); $this->seoApply(); } public function seoSettings() { } }