Beispiel #1
0
 function getJsSrcGlobal($sJsFile)
 {
     $sHtml = "";
     if (file_exists(AnwComponent::getGlobalPathStaticDefault() . $sJsFile)) {
         $sHtml .= $this->tpl()->headJsSrc(AnwComponent::getGlobalUrlStaticDefault() . $sJsFile);
     }
     if (file_exists(AnwComponent::getGlobalPathStaticOverride() . $sJsFile)) {
         $sHtml .= $this->tpl()->headJsSrc(AnwComponent::getGlobalUrlStaticOverride() . $sJsFile);
     }
     return $sHtml;
 }
Beispiel #2
0
 static function pathImg($name)
 {
     //$name = AnwComponent::getGlobalComponentFullDir().ANWDIR_IMG.$name;
     //$sFileName = ANWDIR_OVERRIDE_STATIC.$name;
     //if (!file_exists(ANWPATH_ROOT_SHARED.$sFileName))
     //{
     //$sFileName = ANWDIR_DEFAULT_STATIC.$name;
     //}
     $sFileUrl = AnwComponent::getGlobalUrlStaticDefault() . ANWDIR_IMG . $name;
     return $sFileUrl;
 }