$res.='<h3>' . __('Contenus') . ' [' . $l . ']</h3>';
$res.='<table class="max">';
$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>';
+ $res.='<tr><td class="min nowrap">' . __("Titre sur l'écran d'accueil") . '</td><td>' . form::field(array('contents[' . $l . '][titrehome]', 'contents_' . $l . '_titrehome'), 64, 64, $collection->contents[$l]['titrehome']) . '</td></tr>';
$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>';
//'splash' =>
$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>';
commonDroits::min(3);
$settings = is_null($settings) ? $core->user->getSettings('clients_ws') : $settings;
$change = is_null($dashboard) ? 'Client' : 'Dashboard/' . $dashboard;
+
$dao = new commonDAOEntreprise($core->con);
if (isset($settings['search']) && !is_null($settings['search'])) {
$dao->setSearch($settings['search']);
$phonegap->setNamespace($collection->settings['namespace']);
$phonegap->setActivity($collection->settings['activity']);
+ $appNames = array();
+
foreach ($compiler->langs as $l) {
$src = $compiler->wdir . '/' . $collection->theme['splash_' . $l];
$phonegap->setSplash($src, $l);
$phonegap->setIcon($compiler->wdir . '/' . $collection->theme['icon'], $l);
+ $appNames[$l] = $collection->contents[$l]['titrehome'];
}
+ $phonegap->setAppName($appNames);
$phonegap->setWWWDirectory($dir);
if ($os == 'ios') {
$phonegap->setDistantCompiler('paris.cubedesigners.com', 'vincent', 'iquique', '/Phonegap/Projects/' . $d, '/mnt/macbox/Phonegap/Projects/' . $d, 22022, SSH_KEY);
$phonegap->setManifest(WS_COMPILE_ASSETS . '/_html5app/_android/AndroidManifest' . $manifestType . '.xml');
$phonegap->setMain(WS_COMPILE_ASSETS . '/_html5app/_android/Main' . $manifestType . '.java');
$phonegap->setDistantCompiler('paris.cubedesigners.com', 'Vincent', 'iquique', 'h:/Phonegap/Projects/' . $d, '/mnt/vincent/cygdrive/h/Phonegap/Projects/' . $d, 22322, SSH_KEY);
+ $phonegap->setSourceVariables(array('background' => '0xff' . $collection->settings['couleurD']));
}
$phonegap->setPreference('orientation', CubeIT_Mobile_Phonegap::ORIENTATION_PORTRAIT);
$phonegap->setPreference('target-device', CubeIT_Mobile_Phonegap::TARGET_TABLET);