diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php
index a4ce200d9f9..b51cdedfd0a 100644
--- a/htdocs/core/class/conf.class.php
+++ b/htdocs/core/class/conf.class.php
@@ -686,8 +686,6 @@ class Conf
if (empty($this->global->MAIN_MODULE_DOLISTORE_API_SRV)) $this->global->MAIN_MODULE_DOLISTORE_API_SRV = 'https://www.dolistore.com';
if (empty($this->global->MAIN_MODULE_DOLISTORE_API_KEY)) $this->global->MAIN_MODULE_DOLISTORE_API_KEY = 'dolistorecatalogpublickey1234567';
- if (! isset($this->global->MAIN_USE_TOP_MENU_BOOKMARK_DROPDOWN)) $this->global->MAIN_USE_TOP_MENU_BOOKMARK_DROPDOWN = 1;
-
// If we are in develop mode, we activate the option MAIN_SECURITY_CSRF_WITH_TOKEN to 1 if not already defined.
if (!isset($this->global->MAIN_SECURITY_CSRF_WITH_TOKEN) && $this->global->MAIN_FEATURES_LEVEL >= 2) $this->global->MAIN_SECURITY_CSRF_WITH_TOKEN = 1;
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index cb95d143b97..0f1f0e01a87 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -1623,31 +1623,6 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead
print '
'."\n";
-
- // Add login user link
- $toprightmenu .= '
';
-
- // Login name with photo and tooltip
- $mode = -1;
- $toprightmenu .= '
';
-
- if (!empty($conf->global->MAIN_USE_TOP_MENU_SEARCH_DROPDOWN)) {
- // Add search dropdown
- $toprightmenu .= top_menu_search();
- }
-
- if (!empty($conf->global->MAIN_USE_TOP_MENU_BOOKMARK_DROPDOWN)) {
- // Add bookmark dropdown
- $toprightmenu .= top_menu_bookmark();
- }
-
- // Add user dropdown
- $toprightmenu .= top_menu_user();
-
- $toprightmenu .= '
';
-
- $toprightmenu .= '
'."\n";
-
$toprightmenu .= '
';
// Execute hook printTopRightMenu (hooks should output string like '
')
@@ -1739,7 +1714,31 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead
// Logout link
$toprightmenu .= @Form::textwithtooltip('', $logouthtmltext, 2, 1, $logouttext, 'login_block_elem logout-btn', 2);
- $toprightmenu .= '
';
+ $toprightmenu .= '
'; // end div class="login_block_other"
+
+
+ // Add login user link
+ $toprightmenu .= '';
+
+ // Login name with photo and tooltip
+ $mode = -1;
+ $toprightmenu .= '
';
+
+ if (!empty($conf->global->MAIN_USE_TOP_MENU_SEARCH_DROPDOWN)) {
+ // Add search dropdown
+ $toprightmenu .= top_menu_search();
+ }
+
+ // Add bookmark dropdown
+ $toprightmenu .= top_menu_bookmark();
+
+ // Add user dropdown
+ $toprightmenu .= top_menu_user();
+
+ $toprightmenu .= '
';
+
+ $toprightmenu .= '
'."\n";
+
print $toprightmenu;
diff --git a/htdocs/theme/eldy/dropdown.inc.php b/htdocs/theme/eldy/dropdown.inc.php
index 1a87ee39deb..580e9366bc1 100644
--- a/htdocs/theme/eldy/dropdown.inc.php
+++ b/htdocs/theme/eldy/dropdown.inc.php
@@ -124,7 +124,7 @@ button.dropdown-item.global-search-item {
}
.tmenu .dropdown-menu, .login_block .dropdown-menu {
position: absolute;
- right: 0;
+ right: 2px;
: auto;
line-height:1.3em;
}
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index ce7e707e53d..1de1f734f55 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -1150,7 +1150,7 @@ td.showDragHandle {
#id-left {
padding-top: 20px;
padding-bottom: 5px;
- global->MAIN_USE_TOP_MENU_SEARCH_DROPDOWN) && !empty($conf->global->MAIN_USE_TOP_MENU_BOOKMARK_DROPDOWN)) { ?>
+ global->MAIN_USE_TOP_MENU_SEARCH_DROPDOWN)) { ?>
padding-top: 8px;
}
@@ -1340,7 +1340,7 @@ div.fichetwothirdright {
browser->layout == 'phone') { print "padding-bottom: 6px\n"; } ?>
}
div.fichetwothirdright div.ficheaddleft {
- padding-left: 20px;
+ padding-: 20px;
}
div.fichehalfleft {
browser->layout != 'phone') { print "float: ".$left.";\n"; } ?>
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 4c8a5f2d8ee..39fcd003335 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -204,7 +204,7 @@ if (!empty($conf->global->THEME_TOPMENU_DISABLE_IMAGE)) { $disableimages = 1; $m
if (!empty($conf->global->MAIN_USE_TOP_MENU_SEARCH_DROPDOWN)) { $maxwidthloginblock = $maxwidthloginblock + 55; }
-if (!empty($conf->bookmark->enabled) && !empty($conf->global->MAIN_USE_TOP_MENU_BOOKMARK_DROPDOWN)) { $maxwidthloginblock = $maxwidthloginblock + 55; }
+if (!empty($conf->bookmark->enabled)) { $maxwidthloginblock = $maxwidthloginblock + 55; }
print '/*'."\n";
diff --git a/htdocs/theme/md/dropdown.inc.php b/htdocs/theme/md/dropdown.inc.php
index 93856795107..93dfc532197 100644
--- a/htdocs/theme/md/dropdown.inc.php
+++ b/htdocs/theme/md/dropdown.inc.php
@@ -16,7 +16,9 @@ div#topmenu-bookmark-dropdown {
top: 0px;
}
-
+#topmenu-login-dropdown .dropdown-toggle:after {
+ display: none;
+}
button.dropdown-item.global-search-item {
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 049eb0e88ba..597ffb1d9f7 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -2280,7 +2280,7 @@ div.login_block_other { padding-top: 3px; }
float: right;
vertical-align: top;
padding: 0px 0px 0px 2px !important;
- height: 16px;
+ height: 18px;
}
.login_block_elem_name {
margin-top: 1px;