From 022469d981bbe5801ed99d82f15b0ea37bb57248 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Mon, 30 Sep 2024 22:30:50 +0200 Subject: [PATCH] Publish 3.0.6 (#166) * Fix CSS (badges & Areatabaction) * ChangeLog * fix print_oblyon_menu with noout (#165) Co-authored-by: Ulysse Valdenaire * ChangeLog --------- Co-authored-by: UltraViolet33 <93035200+UltraViolet33@users.noreply.github.com> Co-authored-by: Ulysse Valdenaire --- CHANGELOG.md | 5 + VERSION | 2 +- core/menus/standard/oblyon.lib.php | 6 +- themeoblyon/badges.inc.php | 179 ++++++++++++++++------------- themeoblyon/global.inc.php | 4 +- 5 files changed, 109 insertions(+), 87 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d6db4b..c0656ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## Changelog ## +### Version 3.0.6 - Compatibility 14.0.x - 20.0.x (2024/09/30) +- Fix CSS badges +- Fix CSS for FIX_AREAREF_TABACTION +- Fix print_oblyon_menu function with $noout=1 still prints something (Thanks UltraViolet33 from Easya Solutions) + ### Version 3.0.5 - Compatibility 14.0.x - 20.0.x (2024/09/01) - Fix Z-index with option FIX_AREAREF_TABACTION activated - Add Use specific landing page to home menu entry (Thanks Christophe from Altairis) diff --git a/VERSION b/VERSION index 7da3c16..8ffc1ad 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.0.5 \ No newline at end of file +3.0.6 \ No newline at end of file diff --git a/core/menus/standard/oblyon.lib.php b/core/menus/standard/oblyon.lib.php index dbf63e5..582caa3 100644 --- a/core/menus/standard/oblyon.lib.php +++ b/core/menus/standard/oblyon.lib.php @@ -116,7 +116,7 @@ function print_oblyon_menu($db, $atarget, $type_user = 0, &$tabMenu, &$menu, $no } */ - if (is_array($moredata) && ! empty($moredata['searchform'])) // searchform can contains select2 code or link to show old search form or link to switch on search page + if (is_array($moredata) && ! empty($moredata['searchform']) && empty($noout)) // searchform can contains select2 code or link to show old search form or link to switch on search page { print "\n"; print "\n"; @@ -126,7 +126,7 @@ function print_oblyon_menu($db, $atarget, $type_user = 0, &$tabMenu, &$menu, $no print "\n"; } - if (is_array($moredata) && ! empty($moredata['bookmarks'])) + if (is_array($moredata) && ! empty($moredata['bookmarks']) && empty($noout)) { print "\n"; print "\n"; @@ -136,7 +136,7 @@ function print_oblyon_menu($db, $atarget, $type_user = 0, &$tabMenu, &$menu, $no print "\n"; } - if ( empty($menu_invert) && (getDolGlobalInt('OBLYON_HIDE_LEFTMENU') || $conf->dol_optimize_smallscreen) ) { + if ( empty($menu_invert) && (getDolGlobalInt('OBLYON_HIDE_LEFTMENU') || $conf->dol_optimize_smallscreen) && empty($noout) ) { print '
'; } diff --git a/themeoblyon/badges.inc.php b/themeoblyon/badges.inc.php index f246315..88252e5 100644 --- a/themeoblyon/badges.inc.php +++ b/themeoblyon/badges.inc.php @@ -1,29 +1,30 @@ -/*