Exemple #1
0
 /**
  * Get a url to an asset
  */
 public static function asset($url = null)
 {
     if (empty($url)) {
         return '';
     }
     if (stripos($url, 'http://') !== 0 && \Config::get('cmf.cdn.enabled')) {
         return \CMF\Storage::getCDNAssetUrl($url);
     }
     return \Uri::create($url);
 }