예제 #1
0
 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);
     }
 }
예제 #2
0
/**
 * Преобразование урл в путь на сервере
 *
 * @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);
}