diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index ad150bccac3..68224a8e87c 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -8159,8 +8159,8 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u return ''; } - $class = 'title-button' ; - + $class = 'btnTitle' ; + $conf->global->MAIN_USE_NEW_TITLE_BUTTON = 1; // hidden conf keep during button transition TODO: remove this block if(empty($conf->global->MAIN_USE_NEW_TITLE_BUTTON)){ $class = 'butActionNew'; @@ -8176,11 +8176,11 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u } if($status <= 0){ - $attr['class'] .= ' title-button-refused'; + $attr['class'] .= ' refused'; // hidden conf keep during button transition TODO: remove this block if(empty($conf->global->MAIN_USE_NEW_TITLE_BUTTON)){ - $attr['class'] = 'butActionRefused'; + $attr['class'] = 'butActionNewRefused'; } $attr['href'] = ''; @@ -8236,8 +8236,8 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u $button ='<'.$tag.' '.$compiledAttributes.' >'; - $button.= ''; - $button.= ''.$label.''; + $button.= ''; + $button.= ''.$label.''; $button.= ''; // hidden conf keep during button transition TODO: remove this block diff --git a/htdocs/theme/eldy/btn.inc.php b/htdocs/theme/eldy/btn.inc.php index 3b15d3101c2..c3bd2c490f4 100644 --- a/htdocs/theme/eldy/btn.inc.php +++ b/htdocs/theme/eldy/btn.inc.php @@ -139,7 +139,7 @@ a.butActionNewRefused>span.fa-plus-circle, a.butActionNewRefused>span.fa-plus-ci TITLE BUTTON */ -.title-button, a.title-button { +.btnTitle, a.btnTitle { display: inline-block; padding: 6px 12px; font-size: 14px @@ -168,15 +168,15 @@ TITLE BUTTON background-color: #fbfbfb; } -.title-button > .title-button-icon{ +.btnTitle > .btnTitle-icon{ } -.title-button > .title-button-label{ +.btnTitle > .btnTitle-label{ color: #666666; } -.title-button:hover, a.title-button:hover { +.btnTitle:hover, a.btnTitle:hover { border-radius: 3px; position: relative; margin: 0 0 0 10px; @@ -188,22 +188,22 @@ TITLE BUTTON box-shadow: none; } -.title-button.title-button-refused, a.title-button.title-button-refused, .title-button.title-button-refused:hover, a.title-button.title-button-refused:hover { +.btnTitle.refused, a.btnTitle.refused, .btnTitle.refused:hover, a.btnTitle.refused:hover { color: #8a8a8a; cursor: not-allowed; background-color: #fbfbfb; background: repeating-linear-gradient( 45deg, #ffffff, #f1f1f1 4px, #f1f1f1 4px, #f1f1f1 4px ); } -.title-button:hover .title-button-label{ +.btnTitle:hover .btnTitle-label{ color: #ffffff; } -.title-button.title-button-refused .title-button-label, .title-button.title-button-refused:hover .title-button-label{ +.btnTitle.refused .btnTitle-label, .btnTitle.refused:hover .btnTitle-label{ color: #8a8a8a; } -.title-button>.fa { +.btnTitle>.fa { font-size: 20px; display: block; } @@ -213,7 +213,7 @@ TITLE BUTTON global->MAIN_BUTTON_HIDE_UNAUTHORIZED) && (! $user->admin)) { ?> -.butActionRefused, .butActionNewRefused, .title-button.title-button-refused { +.butActionRefused, .butActionNewRefused, .btnTitle.refused { display: none !important; } \ No newline at end of file