@@ -425,10 +425,10 @@ public static function createCmdGeoLocV2($Iq, $geolocs)
425425 */
426426 public static function getMenuDefaultV2 ($ nbIcones = 3 )
427427 {
428- $ namesMenus = ['home ' , 'overview ' , 'health ' , 'home ' ];
429- $ renamesIcons = ['Accueil ' , 'Synthese ' , 'Santé ' , 'Accueil ' ];
430- $ spanIcons = ['icon jeedomapp-in ' , 'fab fa-hubspot ' , 'fas fa-medkit ' , 'icon jeedomapp-in ' ];
431- $ urlUsers = ['none ' , 'none ' , 'none ' , 'none ' ];
428+ $ namesMenus = ['home ' , 'overview ' , 'health ' , 'home ' , ' home ' , ' home ' , ' home ' , ' home ' ];
429+ $ renamesIcons = ['Accueil ' , 'Synthese ' , 'Santé ' , 'Accueil ' , ' Accueil ' , ' Accueil ' , ' Accueil ' , ' Accueil ' ];
430+ $ spanIcons = ['icon jeedomapp-in ' , 'fab fa-hubspot ' , 'fas fa-medkit ' , 'icon jeedomapp-in ' , ' icon jeedomapp-in ' , ' icon jeedomapp-in ' , ' icon jeedomapp-in ' , ' icon jeedomapp-in ' ];
431+ $ urlUsers = ['none ' , 'none ' , 'none ' , 'none ' , ' none ' , ' none ' , ' none ' , ' none ' ];
432432 $ j = 0 ;
433433 $ menuCustomArray = [];
434434 for ($ i = 1 ; $ i <= $ nbIcones ; $ i ++) {
@@ -450,7 +450,11 @@ public static function getMenuDefaultTab()
450450 $ defaultMenuJson = '{"tab0":{"active":true,"icon":{"name":"in","type":"jeedomapp"},"name":"Accueil","options":{"uri":"\/index.php?v=m&p=home"},"type":"WebviewApp"},
451451 "tab1":{"active":true,"icon":{"name":"hubspot","type":"fa"},"name":"Synthese","options":{"uri":"\/index.php?v=m&p=overview"},"type":"WebviewApp"},
452452 "tab2":{"active":true"icon":{"name":"medkit","type":"fa"},"name":"Sant\u00e9","options":{"uri":"\/index.php?v=m&p=health"},"type":"WebviewApp"},
453- "tab3":{"active":false,"icon":{"name":"in","type":"jeedomapp"},"name":"Accueil","options":{"uri":"\/index.php?v=m&app_mode=1"},"type":"WebviewApp"}} ' ;
453+ "tab3":{"active":false,"icon":{"name":"in","type":"jeedomapp"},"name":"Accueil","options":{"uri":"\/index.php?v=m&app_mode=1"},"type":"WebviewApp"}},
454+ "tab4":{"active":false,"icon":{"name":"in","type":"jeedomapp"},"name":"Accueil","options":{"uri":"\/index.php?v=m&app_mode=1"},"type":"WebviewApp"}},
455+ "tab5":{"active":false,"icon":{"name":"in","type":"jeedomapp"},"name":"Accueil","options":{"uri":"\/index.php?v=m&app_mode=1"},"type":"WebviewApp"}},
456+ "tab6":{"active":false,"icon":{"name":"in","type":"jeedomapp"},"name":"Accueil","options":{"uri":"\/index.php?v=m&app_mode=1"},"type":"WebviewApp"}},
457+ "tab7":{"active":false,"icon":{"name":"in","type":"jeedomapp"},"name":"Accueil","options":{"uri":"\/index.php?v=m&app_mode=1"},"type":"WebviewApp"}} ' ;
454458 return json_encode ($ defaultMenuJson );
455459 }
456460
@@ -546,7 +550,7 @@ public static function generateTypeObject($pluginPanelMobile, $menuCustomArray)
546550 $ tabUrl = "/index.php?v= {$ webviewUrl }&p=dashboard&object_id= {$ objectId }" ;
547551 break ;
548552 case 'plan ' :
549- $ tabUrl = "/index.php?v= {$ webviewUrl }&p=plan&plan_id= {$ objectId }" ;
553+ $ tabUrl = "/index.php?v= {$ webviewUrl }&p=plan&fullscreen=1& plan_id= {$ objectId }" ;
550554 break ;
551555 case 'panel ' :
552556 $ tabUrl = (isset ($ pluginPanelMobile [$ objectId ]) && $ pluginPanelMobile [$ objectId ] == $ objectId ) ? "/index.php?v=m&p= {$ objectId }" : "/index.php?v=m&p= {$ objectId }&app_mode=1 " ;
@@ -676,7 +680,7 @@ public function configMenuCustom()
676680 $ arrayElements = array ();
677681 $ j = 0 ;
678682 $ count = 1 ;
679- for ($ i = 1 ; $ i < 5 ; $ i ++) {
683+ for ($ i = 1 ; $ i < 9 ; $ i ++) {
680684
681685 // GENERATE TAB ICON LIBRARY AND RENAME BY USER
682686 $ resultTabIcon = self ::generateTabIcon ($ menuCustomArray , $ i );
0 commit comments