protected $assets = '';
protected $phonegap = false;
protected $standalone = false;
+ protected $hiddenContents = array();
function __construct($book_id, $version = 'stable', $phonegap = false, $dir = null, $standalone = false) {
global $core;
}
$credits.='<a href="' . $signature->mainLink . '" target="_blank">' . $signature->main . '</a>';
+ $hiddenContents = implode("\n", $this->hiddenContents);
+
// Google analytics
$ga = '';
$print = $this->writePrint();
- $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description', 'print');
+ $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description', 'print', 'hiddenContents');
foreach ($vars as $v) {
$html = str_replace('<!-- $' . $v . ' -->', $$v, $html);
}
$thtml = $uhtml;
- $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'print');
+ $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'print', 'hiddenContents');
foreach ($vars as $v) {
$uhtml = str_replace('<!-- $' . $v . ' -->', $$v, $uhtml);
}
$script.="\n\t\t" . '<script type="text/javascript" charset="utf-8">window.tester = true;</script>';
- $vars = array('titre', 'credits', 'ga', 'style', 'script', 'print');
+ $vars = array('titre', 'credits', 'ga', 'style', 'script', 'print', 'hiddenContents');
foreach ($vars as $v) {
$thtml = str_replace('<!-- $' . $v . ' -->', $$v, $thtml);
}
$this->config->clinks = array();
$this->config->bookmarkGroups = array();
-
$ignore = $this->book->parametres->ignoreLinksTypes;
if (!$ignore) {
$ignore = array();
$pages = array();
$cpages = array();
$css = array();
+
foreach ($links as $linkData) {
if (in_array($linkData['type'], $ignore)) {
continue;
} else {
$pages[$link->page].=$c;
}
+
+ if ($link->keep()) {
+ $this->hiddenContents[] = $c;
+ }
$i++;
}
$res[] = '.landscape .doublePage._2d.axis_x.prev{' . $this->writeCSSUA('transform', 'translate3d(-' . $w2 . ',0,0)') . '}';
$res[] = '.portrait .doublePage._2d.axis_x.next{' . $this->writeCSSUA('transform', 'translate3d(' . $w . ',0,0)') . '}';
$res[] = '.portrait .doublePage._2d.axis_x.prev{' . $this->writeCSSUA('transform', 'translate3d(-' . $w . ',0,0)') . '}';
- $res[] = '.doublePage._2d.axis_y.next{' . $this->writeCSSUA('transform', 'translate3d(0,'.$h.',0)') . '}';
- $res[] = '.doublePage._2d.axis_y.prev{' . $this->writeCSSUA('transform', 'translate3d(0,-'.$h.',0)') . '}';
+ $res[] = '.doublePage._2d.axis_y.next{' . $this->writeCSSUA('transform', 'translate3d(0,' . $h . ',0)') . '}';
+ $res[] = '.doublePage._2d.axis_y.prev{' . $this->writeCSSUA('transform', 'translate3d(0,-' . $h . ',0)') . '}';
$res[] = '.doublePage._3d{left:' . $w . ';}';
$res[] = '#links.right{left:-' . $w . ';}';
$res[] = '.landscape #shadow.single.right{left: ' . $w . ';}';