Elgg
Version master
views
default
elements
variables.css.php
Go to the documentation of this file.
1
<?php
6
echo
':root {'
;
7
echo
'color-scheme: light;'
;
8
9
$css_vars
= (array)
elgg_extract
(
'default'
,
_elgg_services
()->cssCompiler->getCssVars(), []);
10
11
ksort(
$css_vars
);
12
foreach
(
$css_vars
as $variable =>
$value
) {
13
echo
"--elgg-{$variable}: {$value};"
;
14
}
15
16
echo
'}'
;
_elgg_services
_elgg_services()
Get the global service provider.
Definition:
elgglib.php:347
elgg_extract
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:246
$value
$value
Definition:
generic.php:51
$css_vars
$css_vars
CSS variables.
Definition:
variables.css.php:9
Generated on Sun May 31 2026 00:02:05 for Elgg by
1.9.1