$soundFilter->name = __('Fichier sonore') . ' (*.mp3, *.wav)';
$soundFilter->extensions = '*.mp3;*.wav';
+ $branches = array('master : git (stable)' => 'stable',
+ 'master : local (dev)' => 'dev');
+ $gitbranches = json_decode(file_get_contents(WS_CACHE . '/activebranches'));
+ foreach ($gitbranches as $b) {
+ if ($b == 'master') {
+ continue;
+ }
+ $branches[$b . ' : git'] = $b . '|git';
+ $branches[$b . ' : local'] = $b . '|local';
+ }
+
+ $this->fields['mobileLVersion'] = array('type' => 'combo', 'default' => 'stable', 'editable' => true,
+ 'label' => __('Version logicielle'), 'grade' => 1,
+ 'datas' => $branches
+ );
+
$this->fields['version'] = array('type' => 'combo', 'default' => '2', 'editable' => true, 'label' => __('Version'), 'datas' => array('1' => '1', '2' => '2'), 'grade' => 3);
$this->fields['title'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("Titre de la publication"), 'embed' => false);
$this->fields['url_link'] = array('type' => 'text', 'default' => 'http://', 'editable' => true, 'label' => __("URL du lien de retour au site"));
$this->fields['signature'] = array('type' => 'combo', 'default' => '1', 'editable' => true, 'label' => __('Signature'), 'grade' => 3, 'datas' => wsDroits::getSignatures());
$this->forms['important'] = array('label' => __('Description de la publication'),
- 'fieldsnames' => array('version', 'title', 'url_link', 'signature'));
+ 'fieldsnames' => array('version', 'mobileLVersion', 'title', 'url_link', 'signature'));
// .
// .
$this->fields['navOrderH'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => __('Ordre des icônes dans la nav') . ' (' . __('Si différente') . ')', 'grade' => 3);
- $branches = array('master : git (stable)' => 'stable',
- 'master : local (dev)' => 'dev');
- $gitbranches = json_decode(file_get_contents(WS_CACHE . '/activebranches'));
- foreach ($gitbranches as $b) {
- $branches[$b . ' : git'] = $b . '|git';
- $branches[$b . ' : local'] = $b . '|local';
- }
-
- $this->fields['mobileLVersion'] = array('type' => 'combo', 'default' => 'stable', 'editable' => true,
- 'label' => __('Version logicielle'), 'grade' => 1,
- 'datas' => $branches
- );
-
$this->fields['mobileTransitions'] = array('type' => 'combo', 'default' => 'flip', 'editable' => true, 'label' => __('Transitions entre les pages'), 'grade' => 3,
'datas' => array(__('Aucune transition') => 'none',
__('Glisser') => 'slide',
$this->fields['mobileIgnoreBackgroundLinks'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Ignorer les liens de background'));
$this->forms['mobile'] = array('label' => __('Version mobile'),
- 'fieldsnames' => array('alwaysHTML5', 'html5priority', 'mobileLVersion', 'mobileVersion', 'mobileNavigationType', '|', 'mobileNavScale', '|', 'mobileTransitions', 'mobileTransitionDuration', "mobileLinksRevealAnim", '|', 'navOrderH', '|', 'mobileIconVector', 'mobileServerConfig', 'mobilePlugins', '|', 'mobileVideosPath', '|', 'mobileExtraXSpace', '|', 'mobileIgnoreBackgroundLinks'));
+ 'fieldsnames' => array('alwaysHTML5', 'html5priority', 'mobileVersion', 'mobileNavigationType', '|', 'mobileNavScale', '|', 'mobileTransitions', 'mobileTransitionDuration', "mobileLinksRevealAnim", '|', 'navOrderH', '|', 'mobileIconVector', 'mobileServerConfig', 'mobilePlugins', '|', 'mobileVideosPath', '|', 'mobileExtraXSpace', '|', 'mobileIgnoreBackgroundLinks'));
$this->fields['phonegapId'] = array('type' => 'text', 'default' => 'com.fluidbook.phonegap.$id', 'editable' => true, 'label' => __("Identifiant de l'identifiant"), 'grade' => 5, 'hint' => __('De la forme') . ' com.fluidbook.phonegap.xxxxx');