$this->lessVariables['slider-handle'] = Color::colorToCSS(!$this->themeSettings->sliderHandle ? '#ffffff' : $this->themeSettings->sliderHandle);
$this->lessVariables['slider-display'] = $this->_lessBoolean($this->themeSettings->pagesBar);
$this->lessVariables['slider-thumb-background'] = Color::colorToCSS($this->themeSettings->pageBarThumbBack);
- $this->lessVariables['pages-background'] = $this->fluidbookSettings->forceWhiteBackground ? '#ffffff' : 'transparent';
+ $this->lessVariables['pages-background'] = $this->fluidbookSettings->forceWhiteBackground && !$this->transparent ? '#ffffff' : 'transparent';
$this->log('CSS 1');
$this->addIssue(FluidbookHealthIssues::TYPE_COMPILE_FILES, ['error' => $message]);
}
- public function addPageBackgroundColor($page, $color, $arrowsColor)
+ public function addPageBackground($page, $color, $arrowsColor, $image)
{
- $this->config->set('dynamicBackgroundColor.' . $page, [$color, $arrowsColor]);
+ $image = $image && file_exists($this->wdir . '/' . $image) ? $image : '';
+ if ($image) {
+ $this->vdir->copy($this->wdir . '/' . $image, 'data/links/' . $image);
+ }
+ $this->config->set('dynamicBackgroundColor.' . $page, [$color, $arrowsColor, $image]);
}
public function getExternalMultimediaContents($to)