'js/libs/fluidbook/fluidbook.viewport.js',
'js/libs/fluidbook/fluidbook.desktop.js',
'js/libs/fluidbook/fluidbook.service.js',
+ 'js/libs/fluidbook/fluidbook.share.js',
'js/libs/fluidbook/fluidbook.l10n.js',
'js/libs/fluidbook/fluidbook.slider.js',
'js/libs/fluidbook/fluidbook.nav.js',
if ($this->phonegap && ($this->book->parametres->offlineLink == '' || $this->book->parametres->offlineLink == 'http://')) {
$this->config->share = false;
}
- $o = trim($this->config->navOrderH) != '' ? $this->config->navOrderH : $this->config->navOrder;
- $navOrder = array();
- $oo = explode(',', $o);
- foreach ($oo as $ooo) {
- $ooo = trim($ooo);
- if ($ooo == '') {
- continue;
- }
- $navOrder[] = $ooo;
- }
- $this->config->navOrder = $navOrder;
+
+ // We need to be able to reference both navOrder and navOrderH so convert both to arrays
+ // We also make sure there are no empty items in the arrays (see: http://php.net/manual/en/function.array-filter.php#111091)
+ $this->config->navOrder = array_filter(array_map('trim', explode(',', $this->config->navOrder)), 'strlen');
+ $this->config->navOrderH = array_filter(array_map('trim', explode(',', $this->config->navOrderH)), 'strlen');
+
+// $o = trim($this->config->navOrderH) != '' ? $this->config->navOrderH : $this->config->navOrder;
+// $navOrder = array();
+// $oo = explode(',', $o);
+// foreach ($oo as $ooo) {
+// $ooo = trim($ooo);
+// if ($ooo == '') {
+// continue;
+// }
+// $navOrder[] = $ooo;
+// }
+// $this->config->navOrder = $navOrder;
$this->config->standalone = $this->standalone;
if ($this->config->phonegap) {
$less->setArg(null, $destination_less);
$less->setArg(null, $this->vdir . '/' . $destination_css);
$less->execute();
- if(!file_exists($this->vdir . '/' . $destination_css)){
+ if (!file_exists($this->vdir . '/' . $destination_css)) {
die($less->output);
}
if ($f != 'widget') {