Index

MMO\client

MMO\client · 3 symbols · generated 30 Sep 2026

function

extractSASSConfig

functions.php:85

Extract sass configuration from a sass file

function extractSASSConfig(string $filename, ?string &$theme = null): array
Namespace
MMO\client
$filenamestringthe sass file
$theme = nullnull | stringa reference on a string that tells which theme is configured. It stays null when the configuration is not for a theme.
returnsarraythe sass map
Call graph
function

parseSassArray

functions.php:107

Converts sass string to an array

function parseSassArray(string $content): array
Namespace
MMO\client
$contentstringthe sass string
returnsarraynewly created array
Call graph
function

SVGSprite

functions.php:23

Compile a list of svg files into a svg sprite.

function SVGSprite(string $filename, array $files, string $extension = 'svg'): void
Namespace
MMO\client
All svgs are defined as symbols and can be reused as such: <svg class="icon icon--red"> <use xlink:href="/path/to/sprite.svg#icon-star"></use> </svg>
$filenamestringthe output filename
$filesarraythe svg files to include
$extension = 'svg'string
returnsvoid
Call graph