示例#1
0
文件: CSS.php 项目: brussens/cogear2
 /**
  * Заменяет относительные адреса на абсолютные
  *
  * @param type $file
  * @return type
  */
 public function parse($file)
 {
     $content = parent::parse($file);
     $style_dir = File::pathToUri(dirname($file));
     $content = preg_replace('#(url\\([\'|\\"]?)\\.\\./#', '$1' . dirname($style_dir) . '/', $content);
     $content = preg_replace('#(url\\([\'|\\"]?)\\.#', '$1' . $style_dir . '/', $content);
     return $content;
 }
示例#2
0
文件: JS.php 项目: brussens/cogear2
 /**
  * Заменяет относительные адреса на абсолютные
  *
  * @param type $file
  * @return type
  */
 public function parse($file)
 {
     $content = parent::parse($file);
     return $content;
 }