protected $daoBook;
protected $needToRecompileContents = true;
protected $needToRecompileSettings = true;
- protected $width;
- protected $height;
+ public $width;
+ public $height;
protected $cssWidth;
protected $cssHeight;
protected $cssOneWidth;
}
}
- protected function writeExtras(){
- if($this->theme->parametres->afterSearch!=''){
+ protected function writeExtras() {
+ if ($this->theme->parametres->afterSearch != '') {
copy($this->themeRoot . '/' . $this->theme->parametres->afterSearch, $this->vdir . '/data/images/' . $this->theme->parametres->afterSearch);
}
}
-
+
protected function writeLinks() {
global $core;
$daoDoc = new wsDAODocument($core->con);
$daoDoc->getLinksAndRulers($this->book_id, $links, $rulers);
-
+
$i = 0;
$pages = array();
$css = array();
if (is_null($link)) {
continue;
}
+
+ $c = $link->getHTMLContainer();
+ $css[] = $link->getCSSContainer();
if (!isset($pages[$link->page])) {
$pages[$link->page] = '';
}
- $pages[$link->page] .= $link->getHTMLContainer();
- $css[] = $link->getCSSContainer();
+ $pages[$link->page].=$c;
$i++;
}
-
- $allpages=range(0,$this->book->parametres->pages+1);
- $allpages[]='aftersearch';
+
+ $allpages = range(0, $this->book->parametres->pages + 1);
+ $allpages[] = 'aftersearch';
$this->config->links = array();
// Set the icon list with the color
$icons = array('nav-bookmark' => $couleurI, 'nav-friend' => $couleurI, 'nav-help' => $couleurI, 'nav-index' => $couleurI, 'nav-sommaire' => $couleurI,
'next' => $arrowsColor, 'previous' => $arrowsColor, 'search' => $couleurI, 'nav-facebook' => $couleurI, 'nav-twitter' => $couleurI,
- 'help-fingers' => $couleurI, 'help-mouse' => $couleurI,'nav-home'=>$couleurI);
+ 'help-fingers' => $couleurI, 'help-mouse' => $couleurI, 'nav-home' => $couleurI);
foreach ($icons as $icon => $color) {
wsTools::colorizeAndRasterizeIcon($this->theme->parametres->iconSet, $icon, $color, $this->vdir . '/data/images/', 4, $w, $h);
copy($s, $t);
}
- protected function writeCSS($file, $links) {
+ protected function writeCSS($file, $links) {
$res = array();
// General theme
$navTop = ($cssHeight - 40 - 100) / 2;
- $res[] = '.portrait #pages,.portrait .doublePage.page,.page,.portrait #shadow,#shadow.single,.page .links,.doublePage._3d{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';
- $res[] = '.doublePage,#pages,.landscape #shadow.double{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}';
+ $res[] = '.portrait #pages,.portrait .doublePage.page,.page,.portrait #shadow,#shadow.single,.doublePage._3d{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';
+ $res[] = '.doublePage,#pages,#links,.landscape #shadow.double{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}';
$res[] = '.landscape .doublePage._2d.next{' . $this->writeCSSUA('transform', 'translate3d(' . $w2 . ',0,0)') . '}';
$res[] = '.landscape .doublePage._2d.prev{' . $this->writeCSSUA('transform', 'translate3d(-' . $w2 . ',0,0)') . '}';
$res[] = '.portrait .doublePage._2d.next{' . $this->writeCSSUA('transform', 'translate3d(' . $w . ',0,0)') . '}';
// Links Styles
$res = array_merge($res, $links);
$res[] = '.link a.displayArea:hover,.link a.displayArea.animating{background-color:' . self::colorToCSS($this->theme->parametres->linksColor, 0.4) . ';}';
+ $res[] = '.link a.displayArea:hover{opacity:1 !important;}';
$res[] = '.link a.displayArea{-webkit-tap-highlight-color:' . self::colorToCSS($this->theme->parametres->linksColor, 0.4) . ';background-color:' . self::colorToCSS($this->theme->parametres->linksColor, 0.0001) . ';}';
// Menus
}
class wsHTML5CompilerDev extends wsHTML5Compiler {
+
}
?>
\ No newline at end of file