SoPHIE API Documentation

Css API Documentation

SoPHIE Labs Css API Class

The API provides CSS helper functionality

Init: $cssApi = $api->get('sophielabs_css');

Method: $cssApi->appendStyle(...)

Append CSS style

Parameters:

  • String $style CSS

Method: $cssApi->prependStyle(...)

Prepend inline CSS

Parameters:

  • String $style CSS

Method: $cssApi->appendFile(...)

Append CSS file

Parameters:

  • String $file File url

Method: $cssApi->prependFile(...)

Prepend CSS file

Parameters:

  • String $file File url

Method: $cssApi->appendAsset(...)

Append CSS asset by label

Parameters:

  • String $assetLabel Asset label

Method: $cssApi->prependAsset(...)

Prepend CSS asset by label

Parameters:

  • String $assetLabel Asset label