if ($this->theme->parametres->iosicon != '') {
$hasIos = true;
$this->vdir->copy($this->themeRoot . '/' . $this->theme->parametres->iosicon, 'data/apple-touch-icon.png');
- $favicon .= '<link rel="apple-touch-icon" href="data/apple-touch-icon.png" />'."\n\t";
+ $favicon .= '<link rel="apple-touch-icon" href="data/apple-touch-icon.png" />' . "\n\t";
}
if ($this->theme->parametres->favicon != '') {
$dataico = 'data:image/vnd.microsoft.icon;base64,' . base64_encode(file_get_contents($icoFile));
$datapng = 'data:image/png;base64,' . base64_encode(file_get_contents($pngFile));
- $favicon .= '<link rel="shortcut icon" href="' . $dataico . '" />'."\n\t";
- $favicon .= '<link rel="icon" type="image/vnd.microsoft.icon" href="' . $dataico . '" />'."\n\t";
- $favicon .= '<link rel="icon" type="image/png" href="' . $datapng . '" />'."\n\t";
+ $favicon .= '<link rel="shortcut icon" href="' . $dataico . '" />' . "\n\t";
+ $favicon .= '<link rel="icon" type="image/vnd.microsoft.icon" href="' . $dataico . '" />' . "\n\t";
+ $favicon .= '<link rel="icon" type="image/png" href="' . $datapng . '" />' . "\n\t";
if (!$hasIos) {
$favicon .= '<link rel="apple-touch-icon" href="data/favicon.png" />';
}
$svg = '';
foreach ($svgfiles as $svgfile) {
if (file_exists($svgfile)) {
- $svg .= file_get_contents($svgfile);
+ $svg .= str_replace('$bookmark-color',wsHTML5::colorToCSS($this->theme->parametres->bookmarkBackgroundColor),file_get_contents($svgfile));
} else {
die($svgfile . ' does not exist');
}
$couleurM = $this->theme->parametres->subTextColor;
- $bookmarksDisabledColors = array('star' => $this->theme->parametres->bookmarkStarDisabledColor, 'bookmark' => $this->theme->parametres->bookmarkBackgroundColor);
- $bookmarksEnabledColors = array('star' => $this->theme->parametres->bookmarkStarEnabledColor, 'bookmark' => $this->theme->parametres->bookmarkBackgroundColor);
$subTextColor = $this->theme->parametres->subTextColor;
$arrowsColor = $this->theme->parametres->arrowsColor;
// Set the icon list with the color
$icons = array('interface-down' => $arrowsColor, 'interface-close' => $arrowsColor,
'interface-audio-description-on' => $arrowsColor, 'interface-audio-description-off' => $arrowsColor,
- 'help-fingers' => $couleurI, 'help-mouse' => $couleurI,
- 'bookmark-left-off' => $bookmarksDisabledColors, 'bookmark-left-on' => $bookmarksEnabledColors,
- 'bookmark-right-off' => $bookmarksDisabledColors, 'bookmark-right-on' => $bookmarksEnabledColors
+ 'help-fingers' => $couleurI, 'help-mouse' => $couleurI
);
$this->config->iconsDimensions = array();
if (!isset($this->book->parametres->bookmarkCornerSize)) {
$this->book->parametres->bookmarkCornerSize = 10;
}
+
+ $lessVariables['bookmark-star-disabled-color'] = wsHTML5::colorToCSS($this->theme->parametres->bookmarkStarDisabledColor);
+ $lessVariables['bookmark-star-enabled-color'] = wsHTML5::colorToCSS($this->theme->parametres->bookmarkStarEnabledColor);
+ $lessVariables['bookmark-color'] = wsHTML5::colorToCSS($this->theme->parametres->bookmarkBackgroundColor);
$lessVariables['bookmark-corner-size'] = round($this->width * $this->book->parametres->bookmarkCornerSize * 0.0075 * $this->z) . 'px';
$lessVariables['bookmark-corner-offset'] = $this->book->parametres->bookmarkOffset . 'px';