Skip to content

Commit

Permalink
#21 [IHM] add: use picto in tabmenu on phone
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Aug 29, 2023
1 parent 5f45238 commit 2a4e5c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tinyurl.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
function tinyurl_admin_prepare_head(): array
{
// Global variables definitions
global $langs, $conf;
global $conf, $langs;

// Load translation files required by the page
saturne_load_langs();
Expand All @@ -39,12 +39,12 @@ function tinyurl_admin_prepare_head(): array
$head = [];

$head[$h][0] = dol_buildpath('/tinyurl/admin/setup.php', 1);
$head[$h][1] = '<i class="fas fa-cog pictofixedwidth"></i>' . $langs->trans('ModuleSettings');
$head[$h][1] = $conf->browser->layout != 'phone' ? '<i class="fas fa-cog pictofixedwidth"></i>' . $langs->trans('ModuleSettings') : '<i class="fas fa-cog"></i>';
$head[$h][2] = 'settings';
$h++;

$head[$h][0] = dol_buildpath('/saturne/admin/about.php', 1) . '?module_name=TinyURL';
$head[$h][1] = '<i class="fab fa-readme pictofixedwidth"></i>' . $langs->trans('About');
$head[$h][1] = $conf->browser->layout != 'phone' ? '<i class="fab fa-readme pictofixedwidth"></i>' . $langs->trans('About') : '<i class="fab fa-readme"></i>';
$head[$h][2] = 'about';
$h++;

Expand Down

0 comments on commit 2a4e5c0

Please sign in to comment.