Lines Matching defs:file

157         foreach ($cssData['files'] as $file => $location) {
158 $display = str_replace(fullpath(DOKU_INC), '', fullpath($file));
160 echo css_loadfile($file, $location);
226 // try to use line number to find affected file
263 * the ones defined in a templates style.ini file
325 // print the default classes for interwiki links and file downloads
358 $file = 'lib/images/interwiki/' . $iw . '.' . $ext;
360 if (file_exists(DOKU_INC . $file)) {
362 echo ' background-image: url(' . DOKU_BASE . $file . ')';
371 * Prints classes for file download links
380 echo ' background: transparent url(' . DOKU_BASE . 'lib/images/fileicons/svg/file.svg) 0px 1px no-repeat;';
389 while (false !== ($file = readdir($dh))) {
390 if (preg_match('/(.*?)\.svg$/i', $file, $match)) {
405 * Loads a given file and fixes relative URLs with the
408 * @param string $file file system path
412 function css_loadfile($file, $location = '')
414 $css_file = new DokuCssFile($file);
425 protected $filepath; // file system path to the CSS/Less file
426 protected $location; // base url location of the CSS/Less file
429 public function __construct($file)
431 $this->filepath = $file;
435 * Load the contents of the css/less file and adjust any relative paths/urls (relative to this file) to be
436 * relative to the dokuwiki root: the web root (DOKU_BASE) for most files; the file system root (DOKU_INC)
439 * @param string $location base url for this file
440 * @return string the CSS/Less contents of the file
458 * Get the relative file system path of this file, relative to dokuwiki's root folder, DOKU_INC
460 * @return string relative file system path
482 * preg_replace callback to adjust relative urls from relative to this file to relative
493 } elseif (str_ends_with($match[3], '.less')) { // a less file import? - requires a file system location