Ejemplo n.º 1
0
 /**
  * Заменяет относительные адреса на абсолютные
  *
  * @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;
 }
Ejemplo n.º 2
0
 /**
  * Заменяет относительные адреса на абсолютные
  *
  * @param type $file
  * @return type
  */
 public function parse($file)
 {
     $content = parent::parse($file);
     return $content;
 }