Adds static stylesheet

@param string $file
@param string $ext
@param string $locate

@return $this
764978
public function addStaticStylesheet($file, $ext = '.css', $locate = 'css')
    {
        //$file=$this->app->locateURL('css',$file.$ext);
        if (@$this->included[$locate.'-'.$file.$ext]++) {
            return;
        }

        if (strpos($file, 'http') !== 0 && $file[0] != '/') {
            $url = $this->app->locateURL($locate, $file.$ext);
        } else {
            $url = $file;
        }

        $this->app->template->appendHTML(
            'js_include',
            '<link type="text/css" href="'.$url.'" rel="stylesheet" />'."\n"
        );

        return $this;
    }
572076
public function addFile($file)
    {
        if (!is_file($file)) {
            throw new MailException("File not found.", E_USER_ERROR);
        }

        $this->attachement[] = $file;

        return $this;
    }
913995
public static function highlight($file)
    {
        $highlightFileFunc = new \ReflectionFunction('highlight_file');
        if (!$highlightFileFunc->isDisabled()) {
            highlight_file($file);
        } else {
            echo '<pre>' . htmlspecialchars(file_get_contents($file)) . '</pre>';
        }
    }
674050
public function findFile($file, $ext = '')
    {
        $ext = $ext ?: $this->config->get('extension', 'mustache');

        return parent::findFile($file, $ext);
    }
89774
public function addFile($file, $coverage)
    {
        $file = $this->realpath($file);
        if (!$this->collectable($file)) {
            return;
        }
        $nbLines = count(file($file));

        foreach ($coverage as $line => $value) {
            if ($line === 0 || $line >= $nbLines) {
                continue; // Because Xdebug bugs...
            }
            if (!isset($this->_coverage[$file][$line])) {
                $this->_coverage[$file][$line] = $value;
            } else {
                $this->_coverage[$file][$line] += $value;
            }
        }
    }
670541
public function addFile(string $file, string $locale = null): self
	{
		$collection = $this->getCollection($this->getType($file), $locale);
		if ($this->isRemoteFile($file)) {
			$collection->addRemoteFile($file);
		} else {
			$collection->addFile($file);
		}
		return $this;
	}
851461
public function locate(string $file, string $dir = ''): array
    {
        $file           = $this->c::mbTrim($file, '/');
        $dir            = $this->c::mbRTrim($dir, '/');
        $theme_base_dir = $this->App->Config->©fs_paths['§templates_theme_base_dir'];

        if (!$dir && $file) { // Allow WP themes to override default templates.
            if (($template = locate_template($theme_base_dir.'/'.$file))) {
                if (preg_match('/\/\.|\.\/|\.\./u', $this->c::normalizeDirPath($theme_base_dir.'/'.$file))) {
                    throw $this->c::issue(sprintf('Insecure template path: `%1$s`.', $theme_base_dir.'/'.$file));
                }
                return ['dir' => $theme_base_dir, 'file' => $file, 'ext' => $this->c::fileExt($file)];
            }
        }
        return parent::locate($file, $dir);
    }
130288
public function include_stylesheet(array $path, $replace = false)
    {
        $this->last_selector = null;

        return $this->cmd(10, array(
            'c',
            $path,
            $replace
        ));
    }
147791
public function addStyle(Style $style)
    {
        if (!in_array($style, $this->styles, true)) {
            array_push($this->styles, $style);
        }
        return $this;
    }
582920
public function addStylesheet($stylesheet, $inline = true)
    {
        $type = $inline ? 'inline' : 'external';
        $this->stylesheets[$type][] = $stylesheet;
    }
618861
public function includeDefaultCssFiles()
    {
        foreach ($this->cssFiles as $file) {
            $filePath = StringService::get()->getExtensionRelativePath('Resources/Public/StyleSheets/' . $file);

            $this->assetHandlerConnectorManager
                ->getPageRenderer()
                ->addCssFile($filePath);
        }

        return $this;
    }
1146489
public function has(string $file, string $ext = ''): bool
    {
        return $this->findFile($file, $ext) !== null;
    }
543150
public function addIgnore($file)
    {
        $dir = realpath(dirname($file));
        $data = explode("\n", file_get_contents($file));
        foreach ($data as $line) {
            if ($line === '') {
                continue;
            }
            if (substr($line, 0, 1) === '#') {
                continue;
            }   # a comment
            if (substr($line, 0, 1) === '!') {           # negated glob
                $line = substr($line, 1);
                $files = array_diff(glob("$dir" . DIRECTORY_SEPARATOR . "*"),
                    glob("$dir" . DIRECTORY_SEPARATOR . "$line"));
            } else {
                $files = glob($dir . DIRECTORY_SEPARATOR . $line);
            }
            print_r($files);
            $this->exclude = array_merge($this->exclude, $files);
        }
        print_debug($this->exclude, $dir . DIRECTORY_SEPARATOR . $line);
    }
544719
public function withTag($file)
    {
        $extension = pathinfo($file, PATHINFO_EXTENSION);

        try {
            $manifest = $this->readManifestFile();
        } catch (\Exception $e) {
            return $file;
        }

        // if no manifest, return the regular asset
        if (!$manifest) {
            if ($extension == 'js') {
                return '<script src="' . $this->buildPath . '/' . $file . '"></script>';
            }

            return '<link rel="stylesheet" href="' . $file . '">';
        }

        if ($extension == 'js') {
            return '<script src="' . $this->buildPath . '/' . $manifest[$file] . '"></script>';
        }

        return '<link rel="stylesheet" href="' . $this->buildPath . '/' . $manifest[$file] . '">';
    }
706730
public function addFile(File $file): self
    {
        $directory = $this->getPath();
        $file->moveToDirectory($directory);

        return $this;
    }
763529
public function addCss($name, $file, $order = 10, $active = 1)
    {
       $this->getResponse()
            ->getTheme()
            ->addCss($name, $file, $order,$active);
    }
686033
public function addCssFile($file, $docRoot = null)
    {
        if (null === $docRoot) {
            $docRoot = $this->getDocRoot();
        }

        $docRoot = (string) $docRoot;

        if ('' !== $docRoot) {
            $docRoot .= DIRECTORY_SEPARATOR;
        }

        $file    = preg_replace('/^https?:\/\/[^\/]+/i', '', $file);
        $abspath = $docRoot . $file;

        $this->getCssFileList()->addFile($file, $abspath);

        return $this;
    }