Skip to content

Commit 21e1ca9

Browse files
authored
Merge pull request #109 from jeedom/new8menusTest
2 parents 076b5c7 + e739a83 commit 21e1ca9

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

core/api/mobile.api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function saveMenuFromAppV2($menu, $mobile)
137137
$mobile = eqLogic::byLogicalId($params['Iq'], 'mobile');
138138
}
139139
if (!is_object($mobile)) {
140-
$mobile = createMobile($params, 3);
140+
$mobile = createMobile($params,3);
141141
}
142142
$mobile->setConfiguration('type_mobile', $notification['platform']);
143143
if (isset($notification['token'])) {

core/class/mobile.class.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

docs/fr_FR/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
> Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte
66
77

8+
# 25/04/2025
9+
10+
- Ajout pour Max 8 Icones sur le menuCustom
11+
12+
813
# 24/04/2025
914

1015
- Ajout Commande Notifications Silencieuses pour Builds : IOS 491 et Android 875

0 commit comments

Comments
 (0)