// get style variables
$variables = $style->getVariables();
- $individualCss = '';
- if (isset($variables['individualCss'])) {
- $individualCss = $variables['individualCss'];
- unset($variables['individualCss']);
+ $individualLess = '';
+ if (isset($variables['individualLess'])) {
+ $individualLess = $variables['individualLess'];
+ unset($variables['individualLess']);
}
$this->compileStylesheet(
WCF_DIR.'style/style-'.ApplicationHandler::getInstance()->getPrimaryApplication()->packageID.'-'.$style->styleID,
$files,
$variables,
- $individualCss,
+ $individualLess,
new Callback(function($content) use ($style) {
return "/* stylesheet for '".$style->styleName."', generated on ".gmdate('r')." -- DO NOT EDIT */\n\n" . $content;
})
* @param string $filename
* @param array<string> $files
* @param array<string> $variables
- * @param string $individualCss
+ * @param string $individualLess
* @param wcf\system\Callback $callback
*/
- protected function compileStylesheet($filename, array $files, array $variables, $individualCss, Callback $callback) {
+ protected function compileStylesheet($filename, array $files, array $variables, $individualLess, Callback $callback) {
// build LESS bootstrap
$less = $this->bootstrap($variables);
foreach ($files as $file) {
}
// append individual CSS/LESS
- if ($individualCss) {
- $less .= $individualCss;
+ if ($individualLess) {
+ $less .= $individualLess;
}
try {
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfUserPanelHoverBackgroundColor', 'rgba(60, 60, 60, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfMarkedBackgroundColor', 'rgba(255, 255, 200, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('useFluidLayout', '1');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('pageLogo', '~""');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('individualLess', '~""');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('overrideLess', '~""');