$phonegap->setId($collection->settings['namespace']);
$phonegap->setAuthor('Fluidbook', 'contact@fluidbook.com', 'http://www.fluidbook.com');
$phonegap->setVersion('1.0.0');
- $phonegap->setIcon($compiler->wdir . '/' . $collection->theme['icon']);
foreach ($compiler->langs as $l) {
$src = $compiler->wdir . '/' . $collection->theme['splash_' . $l];
- $phonegap->setSplash($src);
- break;
+ $phonegap->setSplash($src, $l);
+ $phonegap->setIcon($compiler->wdir . '/' . $collection->theme['icon'], $l);
}
$phonegap->setWWWDirectory($dir);
if ($os == 'ios') {
$phonegap->setPreference('target-device', CubeIT_Mobile_Phonegap::TARGET_TABLET);
$phonegap->setPreference('show-splash-screen-spinner', false);
$phonegap->setPreference('auto-hide-splash-screen', false);
+ $phonegap->setPreference('ios-statusbarstyle', CubeIT_Mobile_Phonegap::BARSTYLE_TRANSLUCENT);
$phonegap->addFeatures(array(
CubeIT_Mobile_Phonegap::FEATURE_CONNECTION,
CubeIT_Mobile_Phonegap::FEATURE_DEVICE,
CubeIT_Mobile_Phonegap::FEATURE_INAPPBROWSER,
CubeIT_Mobile_Phonegap::FEATURE_SPLASHSCREEN,
CubeIT_Mobile_Phonegap::FEATURE_GLOBALIZATION,
- CubeIT_Mobile_Phonegap::FEATURE_PUSHNOTIFICATION
+ CubeIT_Mobile_Phonegap::FEATURE_PUSHNOTIFICATION,
+ CubeIT_Mobile_Phonegap::FEATURE_DEBUG,
+ CubeIT_Mobile_Phonegap::FEATURE_EXTERNALFILEUTIL
)
);
$this->vdir = $this->dir = WS_COLLECTIONS . '/app/' . $this->collectionId . '/';
$this->wdir = WS_COLLECTIONS . '/working/' . $this->collectionId;
$this->sdir = WS_COMPILE_ASSETS . '/_html5app/';
+
+ if(file_exists($this->vdir)){
+
+ }
$this->copyRecursive($this->sdir, $this->vdir);
$config['couleurA'] = $this->collection->settings['couleurA'];
$config['couleurB'] = $this->collection->settings['couleurB'];
$config['couleurC'] = $this->collection->settings['couleurC'];
-
- $this->copy(WS_COMPILE_ASSETS . '/_html5/js/libs/phonegap/' . $this->phonegapVersion . '/cordova-' . $this->os . '.js', $this->vdir . '/js/cordova.js');
file_put_contents($this->vdir . '/data/app.js', 'DATAS = ' . CubeIT_Util_Json::encode($config) . ';');
}
protected $maxRes = 300;
protected static $uaPrefixes = array('-moz-', '-webkit-', '-o-', '-ms-', '');
public $jsFiles = array(
+ 'js/libs/modernizr/modernizr.js',
+ 'js/libs/modernizr/tests.js',
'js/libs/fix/ios-orientation.js',
'js/libs/fix/detect-zoom.js',
'js/libs/cube/fb.js',
'js/libs/cube/util.js',
'js/libs/fastclick/fastclick.js',
- 'js/libs/modernizr/modernizr.js',
- 'js/libs/modernizr/tests.js',
'js/libs/json2.js',
'js/libs/flashdetect.js',
'js/libs/screenfull.js',
$res[] = $shade;
// Search field
- $searchColor=self::colorToCSS($this->theme->parametres->couleurS);
- $searchBackColor=self::colorToCSS($this->theme->parametres->searchFieldColor);
+ $searchColor = self::colorToCSS($this->theme->parametres->couleurS);
+ $searchBackColor = self::colorToCSS($this->theme->parametres->searchFieldColor);
$search = '#q{';
- $search.='color:' .$searchColor . ';';
+ $search.='color:' . $searchColor . ';';
$search.='background-color:' . $searchBackColor . ';';
if ($this->theme->parametres->searchShadeAlpha > 0) {
$search.=self::writeCSSUA('box-shadow', '1px 1px 4px rgba(0,0,0,' . ($this->theme->parametres->searchShadeAlpha / 100) . ')') . ' inset;';
}
$search.='}';
- $search.='#searchHints,.hint{color:'.$searchColor.';background-color:'.$searchBackColor.';}';
- $search.='.hint:hover{color:'.$searchBackColor.';background-color:'.$searchColor.';}';
-
+ $search.='#searchHints,.hint{color:' . $searchColor . ';background-color:' . $searchBackColor . ';}';
+ $search.='.hint:hover{color:' . $searchBackColor . ';background-color:' . $searchColor . ';}';
+
$res[] = $search;
// Background