$res.='<tr><td class="min nowrap">' . __('Titre') . '</td><td>' . form::field(array('contents[' . $l . '][titre]', 'contents_' . $l . '_titre'), 64, 64, $collection->contents[$l]['titre']) . '</td></tr>';\r
$res.='<tr><td class="min nowrap">' . __('A propos') . '</td><td>' . form::textarea(array('contents[' . $l . '][apropos]', 'contents_' . $l . '_apropos'), 60, 10, $collection->contents[$l]['apropos']) . '</td></tr>';\r
//'splash' => \r
- $res.='<tr><td class="min nowrap">' . __('Ecran de lancement') . ' (2048x2048px)</td><td><input type="file" name="splash_' . $l . '" />' . form::hidden(array('theme[splash' . $l . ']', 'splash_' . $l), $collection->theme['splash_' . $l]) . '</td></tr>';\r
+ $res.='<tr><td class="min nowrap">' . __('Ecran de lancement') . ' (2048x2048px)</td><td><input type="file" name="splash_' . $l . '" />' . form::hidden(array('theme[splash_' . $l . ']', 'splash_' . $l), $collection->theme['splash_' . $l]) . '</td></tr>';\r
$res.='</table>';\r
}\r
\r
// splashs
$splashs = array('320x480' => 'Default~iphone', '640x960' => 'Default@2x~iphone', '1024x748' => 'Default-Landscape~ipad', '768x1004' => 'Default-Portrait~ipad', '2048x1496' => 'Default-Landscape@2x~ipad', '1536x2008' => 'Default-Portrait@2x~ipad', '640x1136' => 'Default-568h@2x~iphone');
- $langs = array();
+ $langs = $compiler->langs;
foreach ($langs as $l) {
$src = $compiler->wdir . '/' . $collection->theme['splash_' . $l];
public $dir, $vdir, $wdir, $sdir;
public $os;
public $phonegapVersion;
+ public $langs;
public function __construct($collectionId) {
$this->collectionId = $collectionId;
$dao = new wsDAOCollection($core->con);
$this->collection = $dao->selectById($this->collectionId);
+
+ foreach ($this->collection->datas as $group) {
+ foreach ($group['publications'] as $p) {
+ $books[] = $p['id'];
+ }
+ }
+
+ $daoBook = new wsDAOBook($core->con);
+ $allbooks = $daoBook->selectByIds($books);
+
+ $this->langs = array();
+ foreach ($allbooks as $b) {
+ $this->langs[] = $b->lang;
+ }
+
+ $this->langs = array_unique($this->langs);
}
public function createVersion() {
$this->copy(cubeMedia::getFlagFile($flag), $flagsDir . '/' . $flag . '.png');
$l[3] = cubeText::ucfirst($iso[$l[0]]);
+ $l[4] = cubeCountry::getCountryName($flag, $l[0]);
$m[] = implode(',', $l);
}