Esempio n. 1
0
 public static function getAddonFileUrl($__DIR__, $fileBasename, $version = false)
 {
     if ($fileBasename[0] !== '/') {
         $fileBasename = "/{$fileBasename}";
     }
     $baseDIR = basename($__DIR__);
     $fileUrl = static::getAddonUrl() . '/' . $baseDIR . $fileBasename;
     if ($version) {
         $fileUrl .= '?v=' . FileTimestamp::getTimestamp();
     }
     return $fileUrl;
 }
Esempio n. 2
0
 protected function getVersion($v)
 {
     return array_key_exists('version', $v) ? $v['version'] : FileTimestamp::getTimestamp();
 }