@@ -60,16 +60,8 @@ public static function canCreate(): bool
6060
6161 public static function getMenuContent ()
6262 {
63- /** @var array $CFG_GLPI */
64- global $ CFG_GLPI ;
65-
66- $ web_full_dir = $ CFG_GLPI ['url_base ' ] . '/plugins/mreporting ' ;
67- $ img_db = "<img src=' " . $ web_full_dir . "/pics/dashboard.png'
68- title=' " . __s ('Dashboard ' , 'mreporting ' ) . "'
69- alt=' " . __s ('Dashboard ' , 'mreporting ' ) . "'> " ;
70- $ img_ct = "<img src=' " . $ web_full_dir . "/pics/list_dashboard.png'
71- title=' " . __s ('Reports list ' , 'mreporting ' ) . "'
72- alt=' " . __s ('Reports list ' , 'mreporting ' ) . "'> " ;
63+ $ icon_db = "<i class='ti ti-layout-dashboard' title=' " . __s ('Dashboard ' , 'mreporting ' ) . "'></i> " . __s ('Dashboard ' , 'mreporting ' );
64+ $ icon_ct = "<i class='ti ti-list' title=' " . __s ('Reports list ' , 'mreporting ' ) . "'></i> " . __s ('Reports list ' , 'mreporting ' );
7365
7466 $ web_rel_dir = '/plugins/mreporting ' ;
7567 $ url_central = "$ web_rel_dir/front/central.php " ;
@@ -82,15 +74,17 @@ public static function getMenuContent()
8274 $ menu ['title ' ] = self ::getTypeName (Session::getPluralNumber ());
8375
8476 $ menu ['options ' ]['dashboard ' ]['page ' ] = $ url_dashboard ;
77+ $ menu ['options ' ]['dashboard ' ]['icon ' ] = 'ti ti-layout-dashboard ' ;
8578 $ menu ['options ' ]['dashboard ' ]['title ' ] = __s ('Dashboard ' , 'mreporting ' );
86- $ menu ['options ' ]['dashboard ' ]['links ' ][$ img_db ] = $ url_dashboard ;
87- $ menu ['options ' ]['dashboard ' ]['links ' ][$ img_ct ] = $ url_central ;
79+ $ menu ['options ' ]['dashboard ' ]['links ' ][$ icon_db ] = $ url_dashboard ;
80+ $ menu ['options ' ]['dashboard ' ]['links ' ][$ icon_ct ] = $ url_central ;
8881 if (PluginMreportingConfig::canCreate ()) {
8982 $ menu ['options ' ]['dashboard ' ]['links ' ]['config ' ] = PluginMreportingConfig::getSearchURL (false );
9083 }
9184
9285 $ menu ['options ' ]['dashboard_list ' ] = $ menu ['options ' ]['dashboard ' ];
9386 $ menu ['options ' ]['dashboard_list ' ]['page ' ] = $ url_central ;
87+ $ menu ['options ' ]['dashboard_list ' ]['icon ' ] = 'ti ti-list ' ;
9488 $ menu ['options ' ]['dashboard_list ' ]['title ' ] = __s ('Reports list ' , 'mreporting ' );
9589
9690 $ menu ['options ' ]['config ' ]['title ' ] = PluginMreportingConfig::getTypeName (2 );
0 commit comments