if ($this->book->parametres->mobileNavigationType === 'mobilefirst') {
$this->initMobileFirst();
+ }else{
+
}
+
$this->initConfig();
$this->log('Defined dimensions');
}
if (!$ignore) {
$ignore = array();
} else {
- $ignore = split(',', $ignore);
+ $ignore = explode(',', $ignore);
}
if ($this->book->parametres->externalChaptersHTML != '') {
$cssHeight = $this->cssHeight;
$cssScale = $this->cssScale;
$w2 = ($cssWidth * 2) . 'px';
-
-
$h = $cssHeight . 'px';
$wm = ($this->width * $this->multiply) . 'px';
$lessVariables['shadow-opacity'] = wsHTML5::colorToArray($this->theme->parametres->bookShadeColor)['opacity'] * 1.2;
$lessVariables['edges-display'] = $this->_lessBoolean($this->theme->parametres->usePageEdges);
- $res[] = '.portrait #pages,.portrait .doublePage.page,.page,.doublePage._3d{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';
- $res[] = '.doublePage,#pages,#links,#searchHighlights{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}';
- $res[] = '.landscape .doublePage._2d.axis_x.next{' . wsHTML5::writeCSSUA('transform', 'translate3d(' . $w2 . ',0,0)') . '}';
- $res[] = '.landscape .doublePage._2d.axis_x.prev{' . wsHTML5::writeCSSUA('transform', 'translate3d(-' . $w2 . ',0,0)') . '}';
- $res[] = '.portrait .doublePage._2d.axis_x.next{' . wsHTML5::writeCSSUA('transform', 'translate3d(' . $w . ',0,0)') . '}';
- $res[] = '.portrait .doublePage._2d.axis_x.prev{' . wsHTML5::writeCSSUA('transform', 'translate3d(-' . $w . ',0,0)') . '}';
- $res[] = '.doublePage._2d.axis_y.next{' . wsHTML5::writeCSSUA('transform', 'translate3d(0,' . $h . ',0)') . '}';
- $res[] = '.doublePage._2d.axis_y.prev{' . wsHTML5::writeCSSUA('transform', 'translate3d(0,-' . $h . ',0)') . '}';
-
-
- $left = $w;
-
- $res[] = '.doublePage._3d{left:' . $left . ';}';
- $res[] = '#links.right{left:-' . $left . ';}';
- $res[] = '.landscape .page.right{left:' . $left . '}';
-
$lessVariables['page-number-color'] = wsHTML5::colorToCSS($this->theme->parametres->colorPageNumber);
$lessVariables['display-page-number'] = $this->_lessBoolean($this->theme->parametres->displayPageNumber);
$lessVariables['page-transition-duration'] = $this->book->parametres->mobileTransitionDuration . 's';
#tooltip
$lessVariables['tooltip-background'] = wsHTML5::colorToCSS($this->theme->parametres->tooltipBackColor);
$lessVariables['tooltip-color'] = wsHTML5::colorToCSS($this->theme->parametres->tooltipTextColor);
+ $lessVariables['tooltip-font-size'] = 14 * ($this->theme->parametres->tooltipTextSize / 100);
#fonts
foreach ($this->cssfont as $hash => $item) {