]> _ Git - cubeextranet.git/commitdiff
done #1344 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 2 May 2017 13:58:35 +0000 (13:58 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 2 May 2017 13:58:35 +0000 (13:58 +0000)
inc/ws/Controlleur/class.ws.maintenance.php
inc/ws/Metier/class.ws.book.parametres.php
inc/ws/Util/html5/class.ws.html5.compiler.php
inc/ws/Util/html5/class.ws.html5.links.php

index 25478665bcb9322cc22e471dc4ba78c361f61d00..c4bddbe6736ffe1e96ecbe600e1a2605bd855968 100644 (file)
@@ -863,7 +863,7 @@ class wsMaintenance {
                $localDir = $playerDir . 'local/';
                $git = new CubeIT_CommandLine_Git($branchesDir . 'fluidbook-html5');
                echo '<pre>';
-               echo $git->executeCmd('pull --all');
+               echo $git->executeCmd('fetch --all');
                $git = new CubeIT_CommandLine_Git($branchesDir . 'fluidbook-html5');
                $b = $git->executeCmd('branch -r');
                echo $b;
@@ -894,7 +894,7 @@ class wsMaintenance {
                                mkdir($localDir . $b, 0777, true);
                        }
                        $git = new CubeIT_CommandLine_Git($branchesDir . $b);
-                       echo $git->executeCmd('pull');
+                       echo $git->executeCmd('reset --hard origin/' . $b);
                }
                echo '</pre>';
                file_put_contents(WS_CACHE . '/activebranches', json_encode($branches));
index 86db50ccfaee0d457e7225d5555858a9b05463ca..95c58ea83ead4fdb07d53b932fcb3a82a47c44ff 100644 (file)
@@ -42,12 +42,28 @@ class wsBookParametres extends wsParametres {
                $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'));
                // .
                // .
 
@@ -322,19 +338,6 @@ class wsBookParametres extends wsParametres {
                $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',
@@ -361,7 +364,7 @@ class wsBookParametres extends wsParametres {
                $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');
index 124f9860ee9ec32ac4d11ab0317eda29719b82b1..7568c4c31b83c52fd620e801ae71a6700fd77380 100644 (file)
@@ -1145,6 +1145,7 @@ class wsHTML5Compiler {
                $offsetLeft2 = $offsetLeft * 2;
                $offsetTop = round(($this->optimalHeight - $cssHeight) / 2, 3);
                $navTop = ($cssHeight - 40 - 100) / 2;
+               $leftOfRightPage=(floor($cssWidth)-1).'px';
 
 
                $res[] = '.portrait #pages,.portrait .doublePage.page,.page,.doublePage._3d,#shadow>div{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';
index adc0138f7c978ae6a32f65b0027db1a2a4552147..63c76a44b269b1850e1e64e7b257c34a74532608 100644 (file)
@@ -93,9 +93,6 @@ class wsHTML5Link {
 
                                return new basketLink($id, $init, $compiler);
                        case 13: // zoom area
-                               if ($compiler->version == 'stable') {
-                                       return null;
-                               }
                                return new zoomLink($id, $init, $compiler);
                        case 14:
                                return new colorLink($id, $init, $compiler);