]> _ Git - cubeextranet.git/commitdiff
wip #3360 @5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Jan 2020 18:52:03 +0000 (18:52 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 22 Jan 2020 18:52:03 +0000 (18:52 +0000)
inc/ws/Controlleur/class.ws.flash.php

index 91be6f2c4072cdfacf089ac59c959a9dd52bea52..56f7e537b08be5f4e05551befa4fe3e8c589f326 100644 (file)
@@ -633,6 +633,7 @@ class wsFlash extends cubeFlashGateway
             $this->jsonDatas['numerotation'] = $book->numerotation;
             $this->jsonDatas['width'] = $maxWidth;
             $this->jsonDatas['height'] = $maxHeight;
+            $this->jsonDatas['mobileFirst'] = $book->parametres->mobileNavigationType === 'mobilefirst';
             $this->jsonDatas['links'] = $links;
             $this->jsonDatas['rulers'] = $rulers;
         } else {
@@ -642,6 +643,7 @@ class wsFlash extends cubeFlashGateway
             $this->xml->addChild('height', $maxHeight);
             $this->xml->addChild('pages', $nb_pages);
             $this->xml->addChild('numerotation', $book->numerotation);
+            $this->xml->addChild('mobileFirst', $book->parametres->mobileNavigationType === 'mobilefirst');
             $this->xml->addChild('links', $l);
             $this->xml->addChild('rulers', json_encode($rulers));
         }