source/Core/Config.php
public function getTemplatePath($templateName, $isAdmin)
    {
        $finalTemplatePath = $this->getDir($templateName, $this->_sTemplateDir, $isAdmin);

        if (!$finalTemplatePath) {
            $templatePathCalculator = $this->getModuleTemplatePathCalculator();
            $templatePathCalculator->setModulesPath($this->getModulesDir());
            try {
                $finalTemplatePath = $templatePathCalculator->calculateModuleTemplatePath($templateName);
            } catch (Exception $e) {
                $finalTemplatePath = '';
            }
        }

        return $finalTemplatePath;
    }
public function getTemplatePath($templateName, $isAdmin)
    {
        $finalTemplatePath = $this->getDir($templateName, $this->_sTemplateDir, $isAdmin);

        if (!$finalTemplatePath) {
            $templatePathCalculator = $this->getModuleTemplatePathCalculator();
            $templatePathCalculator->setModulesPath($this->getModulesDir());
            try {
                $finalTemplatePath = $templatePathCalculator->calculateModuleTemplatePath($templateName);
            } catch (Exception $e) {
                $finalTemplatePath = '';
            }
        }

        return $finalTemplatePath;
    }
public function getTemplatePath ( $ templateName , $ isAdmin ) { $ finalTemplatePath = $ this -> getDir ( $ templateName , $ this -> _sTemplateDir , $ isAdmin ) ; if ( ! $ finalTemplatePath ) { $ templatePathCalculator = $ this -> getModuleTemplatePathCalculator ( ) ; $ templatePathCalculator -> setModulesPath ( $ this -> getModulesDir ( ) ) ; try { $ finalTemplatePath = $ templatePathCalculator -> calculateModuleTemplatePath ( $ templateName ) ; } catch ( Exception $ e ) { $ finalTemplatePath = '' ; } } return $ finalTemplatePath ; }
Calculates and returns full path to template.

@param string $templateName Template name
@param bool   $isAdmin      Whether to force admin

@return string
Calculates and returns full path to template .