}
$phonegap->setPreference('show-splash-screen-spinner', false);
- $phonegap->setPreference('auto-hide-splash-screen', $os==='ios');
+ $phonegap->setPreference('auto-hide-splash-screen', $os === 'ios');
$phonegap->setPreference('ios-statusbarstyle', CubeIT_Mobile_Phonegap::BARSTYLE_TRANSLUCENT);
$phonegap->setPreference('iosPersistentFileLocation', 'Library');
$phonegap->setPreference('EnableViewportScale', true);
if ($version == 'v2') {
return 'html';
} else if ($version == 'online') {
- if ($this->book->parametres->version == '1') {
- return 'v1';
- } elseif ($this->book->parametres->version == '2') {
- return 'html';
- }
+ return 'html';
}
return $version;
}
$this->initMobileFirst();
}
- if ($this->book->parametres->zoomMode == 1 || $this->isMobileFirst()) {
+ if ($this->isMobileFirst()) {
$this->multiply = $this->pdf2htmlRatio * $this->scale * $this->cssOneScale;
} else {
$this->multiply = $this->pdf2htmlRatio * $this->scale * $this->cssScale;
}
// Archives
- if ($this->book->parametres->externalArchivesBack) {
- $this->vdir->copy($this->wdir . '/' . $this->book->parametres->externalArchivesBack, 'data/images/' . $this->book->parametres->externalArchivesBack);
- $res[] = '.mview.archives{background-image:url("../images/' . $this->book->parametres->externalArchivesBack . '");}';
- }
+// if ($this->book->parametres->externalArchivesBack) {
+// $this->vdir->copy($this->wdir . '/' . $this->book->parametres->externalArchivesBack, 'data/images/' . $this->book->parametres->externalArchivesBack);
+// $res[] = '.mview.archives{background-image:url("../images/' . $this->book->parametres->externalArchivesBack . '");}';
+// }
# Index
$ratio = $this->width / $this->height;
$this->wdir = $this->book->getAssetDir();
- $this->widget = !$this->phonegap && $this->book->parametres->widget;
+ $this->widget = false;
$this->pages = $this->daoBook->getPagesOfBook($book_id);
$this->maxRes = min(300, $this->book->parametres->maxResolution);
$this->svgfiles[] = $this->themeRoot . '/' . $this->theme->parametres->symbols;
}
- if ($this->book->parametres->zoomMode == 1 || $this->isMobileFirst()) {
+ if ($this->isMobileFirst()) {
$this->multiply = $this->pdf2htmlRatio * $this->scale * $this->cssOneScale;
} else {
$this->multiply = $this->pdf2htmlRatio * $this->scale * $this->cssScale;
}
// Archives
- if ($this->book->parametres->externalArchivesBack) {
- $this->vdir->copy($this->wdir . '/' . $this->book->parametres->externalArchivesBack, 'data/images/' . $this->book->parametres->externalArchivesBack);
- $res[] = '.mview.archives{background-image:url("../images/' . $this->book->parametres->externalArchivesBack . '");}';
- }
+// if ($this->book->parametres->externalArchivesBack) {
+// $this->vdir->copy($this->wdir . '/' . $this->book->parametres->externalArchivesBack, 'data/images/' . $this->book->parametres->externalArchivesBack);
+// $res[] = '.mview.archives{background-image:url("../images/' . $this->book->parametres->externalArchivesBack . '");}';
+// }
$this->log('CSS 11');
# Index
$thumbw = $this->book->parametres->mobileNavigationType === 'portrait' ? 200 : 100;
{
parent::preparePackage();
- $this->book->parametres->alwaysHTML5 = true;
if ($this->_disableScorm) {
$this->book->parametres->scorm_enable = false;
}
$keywords = '<meta name="keywords" content="' . self::escape($this->book->parametres->seoKeywords) . '">';
}
- $alwaysHTML5 = $this->book->parametres->alwaysHTML5;
- if (is_null($alwaysHTML5) || !$alwaysHTML5) {
- $alwaysHTML5 = 'false';
- }
-
- if (!isset($this->book->parametres->html5priority)) {
- $this->book->parametres->html5priority = 'true';
- }
- $html5priority = $this->book->parametres->html5priority;
+ $alwaysHTML5 = true;
+ $html5priority = true;
// Stuffs to replace in html
public function getFinalPackageDir()
{
$dir = $this->vdir;
- if ($this->book->parametres->alwaysHTML5) {
$dir .= '/m/';
- }
return $dir;
}
public function __construct($book_id,$options=[])\r
{\r
parent::__construct($book_id,$options);\r
- $this->book->parametres->alwaysHTML5 = true;\r
$this->version = 'win_cd_html';\r
}\r
\r
protected function compile()\r
{\r
// For exe version, force to export only the html5 version\r
- $this->book->parametres->alwaysHTML5 = true;\r
// No need to export pages with texts for this version, we are certain that svg is supported if enabled\r
if ($this->book->parametres->mobileVersion == 'html5-desktop') {\r
$this->book->parametres->mobileVersion = 'html5';\r