public function GetTemplatePath($sName, $sPluginName = null) { if (!$sPluginName) { $sLangDir = 'notify/' . $this->Lang_GetLang(); $sDir = admUrl2Path(rtrim(Config::Get($this->sPlugin . '.saved.path.static.skin'), '/') . '/' . $sLangDir); if (is_dir($sDir)) { return $sDir . '/' . $sName; } return parent::GetTemplatePath($sName, $sPluginName); } }
/** * Преобразование урл в путь на сервере * * @return <type> */ function admUrl2Path($sUrl) { // * Delete www from path $sUrl = str_replace('//www.', '//', $sUrl); $sPathWeb = str_replace('//www.', '//', Config::Get('path.root.web')); // * do replace $sUrl = str_replace($sPathWeb, Config::Get('path.root.server'), $sUrl); return admUrl2Path($sUrl); }