public function getTemplate()
    {
        if (empty($this->_template)) {

            if (! AnService::get('application.registry')->offsetExists('application-template')) {
                AnService::get('application.registry')->offsetSet('application-template', $this->_site_settings->template);
            }

            $template = AnService::get('application.registry')->offsetGet('application-template');
            $this->setTemplate(pick($template, 'base'));
        }

        return $this->_template;
    }
public function getTemplate()
    {
        if (empty($this->_template)) {

            if (! AnService::get('application.registry')->offsetExists('application-template')) {
                AnService::get('application.registry')->offsetSet('application-template', $this->_site_settings->template);
            }

            $template = AnService::get('application.registry')->offsetGet('application-template');
            $this->setTemplate(pick($template, 'base'));
        }

        return $this->_template;
    }
public function getTemplate ( ) { if ( empty ( $ this -> _template ) ) { if ( ! AnService :: get ( 'application.registry' ) -> offsetExists ( 'application-template' ) ) { AnService :: get ( 'application.registry' ) -> offsetSet ( 'application-template' , $ this -> _site_settings -> template ) ; } $ template = AnService :: get ( 'application.registry' ) -> offsetGet ( 'application-template' ) ; $ this -> setTemplate ( pick ( $ template , 'base' ) ) ; } return $ this -> _template ; }
Get the template.

@return string The template name
Get the template .