public function _loadPageTemplate()
    {
        $theme = Theme::find(config('coaster::frontend.theme'));
        $lowestLevelPage = count($this->pageLevels) > 0 ? end($this->pageLevels) : null;

        $this->theme = !empty($theme) && is_dir(base_path('/resources/views/themes/' . $theme->theme)) ? $theme->theme : 'default';
        $this->template = $lowestLevelPage ? Template::name($this->previewVersion ? $this->previewVersion->template : $lowestLevelPage->template) : '';
        $this->contentType = $this->feedExtension ? Feed::getMimeType($this->feedExtension) : 'text/html; charset=UTF-8';
    }
public function _loadPageTemplate()
    {
        $theme = Theme::find(config('coaster::frontend.theme'));
        $lowestLevelPage = count($this->pageLevels) > 0 ? end($this->pageLevels) : null;

        $this->theme = !empty($theme) && is_dir(base_path('/resources/views/themes/' . $theme->theme)) ? $theme->theme : 'default';
        $this->template = $lowestLevelPage ? Template::name($this->previewVersion ? $this->previewVersion->template : $lowestLevelPage->template) : '';
        $this->contentType = $this->feedExtension ? Feed::getMimeType($this->feedExtension) : 'text/html; charset=UTF-8';
    }
public function _loadPageTemplate ( ) { $ theme = Theme :: find ( config ( 'coaster::frontend.theme' ) ) ; $ lowestLevelPage = count ( $ this -> pageLevels ) > 0 ? end ( $ this -> pageLevels ) : null ; $ this -> theme = ! empty ( $ theme ) && is_dir ( base_path ( '/resources/views/themes/' . $ theme -> theme ) ) ? $ theme -> theme : 'default' ; $ this -> template = $ lowestLevelPage ? Template :: name ( $ this -> previewVersion ? $ this -> previewVersion -> template : $ lowestLevelPage -> template ) : '' ; $ this -> contentType = $ this -> feedExtension ? Feed :: getMimeType ( $ this -> feedExtension ) : 'text/html; charset=UTF-8' ; }
Load theme name, template name and content type to return
Load theme name template name and content type to return