1 template.php | bartik_css_alter(&$css) |
Prepares variables for page templates.
See also
File
- core/
themes/ bartik/ template.php, line 21 - Contains a theme's functions to manipulate or override the default markup.
Code
function bartik_css_alter(&$css) {
// If using the legacy "Blue lagoon" color scheme, load the legacy stylesheet.
$theme_path = backdrop_get_path('theme', 'bartik');
if (theme_get_setting('color_legacy') && isset($css[$theme_path . '/css/colors.css'])) {
$css[$theme_path . '/css/colors.css']['data'] = $theme_path . '/css/colors-legacy.css';
}
}