$vroot = WS_COLLECTIONS . '/versions/' . $id . '/' . $version . '/' . $os . '/';\r
\r
$publications = array();\r
+ $langs = array();\r
\r
foreach ($composition as $k => $g) {\r
foreach ($g->publications as $l => $p) {\r
$couvertures[$p->id] = base64_encode(file_get_contents($couv));\r
$composition[$k]->publications[$l]->width = $book->parametres->width;\r
$composition[$k]->publications[$l]->height = $book->parametres->height;\r
+ $composition[$k]->publications[$l]->lang = $book->lang;\r
+ $langs[] = $book->lang;\r
}\r
}\r
\r
- $d = array('id' => $id, 'time' => $version, 'datas' => $composition, 'couvertures' => $couvertures);\r
+ $langs = array_unique($langs);\r
+\r
+ $d = array('id' => $id, 'langs' => $langs, 'time' => $version, 'datas' => $composition, 'couvertures' => $couvertures);\r
$d = array_merge($d, $this->_getManifest($publications, '/fluidbook/collections/versions/' . $id . '/' . $version . '/' . $os, $books));\r
\r
$dao = new wsDAOCollection($core->con);\r
protected $appcache;
protected $home;
protected $widget = true;
+ protected $multiApp = false;
function __construct($book_id, $version = 'stable', $phonegap = false, $phonegapVersion = 'latest', $dir = null, $standalone = false, $appcache = false, $home = false) {
global $core;
$this->phonegapVersion = self::getPhonegapVersion($phonegapVersion);
$this->appcache = $appcache;
- $this->home = $home;
+ $this->multiApp = $this->home = $home;
if ($version == 'stable') {
$this->assets = WS_COMPILE_ASSETS . '/_html5prod';
if ($this->home) {
$this->config->home = '%apphome%';
}
+ $this->config->multiApp = $this->multiApp;
foreach ($this->additionalConfig as $k => $v) {
$this->config->$k = $v;
}