FOF30\Template\Template::addCSSInline PHP Method

addCSSInline() public method

Adds an inline stylesheet (inline CSS) to the page header
public addCSSInline ( string $css, string $type = 'text/css' )
$css string The stylesheet content to add
$type string The MIME type of the script
    public function addCSSInline($css, $type = 'text/css')
    {
        if ($this->container->platform->isCli()) {
            return;
        }
        $document = $this->container->platform->getDocument();
        if (!method_exists($document, 'addStyleDeclaration')) {
            return;
        }
        $document->addStyleDeclaration($css, $type);
    }