Skip to content

Commit

Permalink
NEW - Font param Look and Feel (#29302)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
  • Loading branch information
BB2A-Anthony and Anthony Berton authored Apr 10, 2024
1 parent f7eb0b9 commit fed71b0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ English Dolibarr ChangeLog
For users:
----------
NEW: Compatibility with PHP 8.2 (with no need to disable warnings)
NEW: Font param Look and Feel THEME_FONT_FAMILY
...

For developers or integrators:
Expand Down
11 changes: 9 additions & 2 deletions htdocs/theme/eldy/style.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,15 @@
}

// Define image path files and other constants
$fontlist = 'arial,tahoma,verdana,helvetica'; //$fontlist='helvetica, verdana, arial, sans-serif';
//$fontlist='"open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;';

//$fontlist='helvetica, verdana, arial, sans-serif';
//$fontlist='"open sans", "Helvetica Neue", Helvetica, Arial, sans-serif';

$fontlist = 'arial,tahoma,verdana,helvetica';
if (getDolGlobalString('THEME_FONT_FAMILY')) {
$fontlist = getDolGlobalString('THEME_FONT_FAMILY').', '.$fontlist;
}

$img_head = '';
$img_button = dol_buildpath($path.'/theme/'.$theme.'/img/button_bg.png', 1);
$dol_hide_topmenu = $conf->dol_hide_topmenu;
Expand Down
4 changes: 4 additions & 0 deletions htdocs/theme/md/style.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@

// Define image path files and other constants
$fontlist = 'roboto,arial,tahoma,verdana,helvetica'; //$fontlist='verdana,helvetica,arial,sans-serif';
if (getDolGlobalString('THEME_FONT_FAMILY')) {
$fontlist = getDolGlobalString('THEME_FONT_FAMILY').', '.$fontlist;
}

$img_head = '';
$img_button = dol_buildpath($path.'/theme/'.$theme.'/img/button_bg.png', 1);
$dol_hide_topmenu = $conf->dol_hide_topmenu;
Expand Down

0 comments on commit fed71b0

Please sign in to comment.