public function get_layout() { if ($this->layout === false) { return false; } elseif ($this->layout != null) { return $this->layout; } else { return moojon_server::is_ajax() ? false : self::get_app_name($this); } }