示例#1
0
 /**
  * @return string
  */
 public function HTML()
 {
     return '<style type="text/css">@font-face {src: url(' . Quark::NormalizePath(str_replace(Quark::Host(), '', Quark::NormalizePath($this->_font, false)), false) . ');font-family: ' . $this->_family . ';}</style>';
 }
示例#2
0
 /**
  * @param $location
  * @param $name
  * @param $extension
  * @param $isDir
  *
  * @return array
  */
 private static function _file($location, $name, $extension, $isDir)
 {
     $location = Quark::NormalizePath($location, false);
     return array(self::FIRST_LOCATION => $location, self::LOCATION => $location, self::NAME => $name, self::EXTENSION => $extension, self::IS_DIR => $isDir, self::SIZE => $isDir ? '' : filesize($location), self::PARENT => str_replace($name, '', $location));
 }