src/Renderer/HtmlExtension.php
public function addCss($file, $path='/css', $attr = [])
    {
        $attr = array_merge(['rel' => 'stylesheet'], $attr);
        $output = [];
        foreach ($attr as $name => $value) {
            $output[] = "{$name}=\"{$value}\"";
        }
        $attr = implode(' ', $output);
        $file = str_replace('//', '', "{$path}/{$file}");
        return sprintf('<link href="%s" %s>', $file, $attr);
    }
public function addCss($file, $path='/css', $attr = [])
    {
        $attr = array_merge(['rel' => 'stylesheet'], $attr);
        $output = [];
        foreach ($attr as $name => $value) {
            $output[] = "{$name}=\"{$value}\"";
        }
        $attr = implode(' ', $output);
        $file = str_replace('//', '', "{$path}/{$file}");
        return sprintf('<link href="%s" %s>', $file, $attr);
    }
public function addCss ( $ file , $ path = '/css' , $ attr = [ ] ) { $ attr = array_merge ( [ 'rel' => 'stylesheet' ] , $ attr ) ; $ output = [ ] ; foreach ( $ attr as $ name => $ value ) { $ output [ ] = "{$name}=\"{$value}\"" ; } $ attr = implode ( ' ' , $ output ) ; $ file = str_replace ( '//' , '' , "{$path}/{$file}" ) ; return sprintf ( '<link href="%s" %s>' , $ file , $ attr ) ; }
Creates an HTML style tag

@param string $file
@param string $path
@param array $attr

@return string
Creates an HTML style tag