$ext = CubeIT_Files::getExtension($_FILES[$t]['name']);
move_uploaded_file($_FILES[$t]['tmp_name'], $wdir . '/' . $t . '.' . $ext);
$save['theme'][$t] = $t . '.' . $ext;
+
+ if ($t == 'filesalt') {
+ CubeIT_Files::rmdir($wdir . '/filesalt');
+ $unzip = CubeIT_Util_Zip::extract($wdir . '/' . $t . '.' . $ext, $wdir . '/filesalt');
+ }
}
}
$res .= '<tr><td class="min nowrap">' . __('Couleur des titres de publication') . '</td><td>#' . form::field(array('settings[couleurE]', 'couleurC'), 6, 6, $collection->settings['couleurE']) . '</td></tr>';
$res .= '<tr><td class="min nowrap">' . __('Couleur de fond') . '</td><td>#' . form::field(array('settings[couleurD]', 'couleurD'), 6, 6, $collection->settings['couleurD']) . '</td></tr>';
$res .= '<tr><td class="min nowrap">' . __('Nombre de publication par ligne') . '</td><td>' . form::field(array('settings[perline]', 'perline'), 1, 1, $collection->settings['perline']) . '</td></tr>';
+ $res .= '<tr><td class="min nowrap">' . __('Contenu HTML alternatif') . '</td><td>' . form::textArea(array('settings[htmlalt]', 'htmlalt'), 100, 30, $collection->settings['htmlalt']) . '</td></tr>';
+ $res .= '<tr><td class="min nowrap">' . __('Fichiers pour le contenu alternatif') . '</td><td><input type="file" name="filesalt" />' . form::hidden(array('theme[filesalt]', 'theme_' . $i), $collection->theme['filesalt']) . self::viewCollectionFile($collection->theme['filesalt'], $collection->collection_id) . '</td></tr>';
$res .= '</table>';
);
if ($os == 'ios') {
$phonegap->addFeature(CubeIT_Mobile_Phonegap::FEATURE_EXTERNALFILEUTIL);
+ $phonegap->addFeature(CubeIT_Mobile_Phonegap_IOS::FEATURE_WKWEBVIEW);
} else if ($os == 'android') {
$phonegap->addFeature(CubeIT_Mobile_Phonegap::FEATURE_WEBINTENT);
}
$config['couleurC'] = $this->collection->settings['couleurC'];
$config['couleurD'] = $this->collection->settings['couleurD'];
$config['couleurE'] = $this->collection->settings['couleurE'];
+ $config['htmlAlt'] = $this->collection->settings['htmlalt'];
$config['offline'] = false;
if (isset($this->collection->settings['offline'])) {
$config['offline'] = $this->collection->settings['offline'];
$this->copy($this->wdir . '/' . $this->collection->theme['back'], $imagesdir . '/' . $this->collection->theme['back']);
$this->copy($this->wdir . '/' . $this->collection->theme['etagere'], $imagesdir . '/' . $this->collection->theme['etagere']);
+ if (file_exists($this->wdir . '/filesalt')) {
+ $this->copyRecursive($this->wdir . '/filesalt', $this->vdir);
+ }
$c[] = 'body{background-image:url("images/' . $this->collection->theme['back'] . '");}';
$c[] = '#shelves{background-image:url("images/' . $this->collection->theme['etagere'] . '");}';