Example #1
0
	/**
	 * Return custom display layout.
	 *
	 * @return KunenaLayout
	 */
	protected function display()
	{
		// Display layout with given parameters.
		$content = KunenaLayoutPage::factory('Misc/Default')
			->set('header', $this->header)
			->set('body', $this->body);

		return $content;
	}
Example #2
0
 public function exists()
 {
     if ($this->input->getWord('format', 'html') != 'html') {
         // TODO: we need to deal with other formats in the future.
         return false;
     }
     $name = "{$this->input->getWord('view')}/{$this->input->getWord('layout', 'default')}";
     $this->page = KunenaLayoutPage::factory($name);
     return (bool) $this->page->getPath();
 }
Example #3
0
 /**
  * Return true if layout exists.
  *
  * @return boolean
  */
 public function exists()
 {
     $this->page = KunenaLayoutPage::factory("{$this->input->getCmd('view')}/default");
     return (bool) $this->page->getPath();
 }