Use class instead of hard coded style
This commit is contained in:
parent
1af3881796
commit
f4ef8a3285
@ -1658,9 +1658,11 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead
|
|||||||
$mode = '';
|
$mode = '';
|
||||||
$helpresent = '';
|
$helpresent = '';
|
||||||
|
|
||||||
if (empty($helppagename)) $helppagename = 'EN:User_documentation|FR:Documentation_utilisateur|ES:Documentación_usuarios';
|
if (empty($helppagename)) {
|
||||||
else
|
$helppagename = 'EN:User_documentation|FR:Documentation_utilisateur|ES:Documentación_usuarios';
|
||||||
$helpresent = 'style="color:yellow !important"';
|
} else {
|
||||||
|
$helpresent = 'helppresent';
|
||||||
|
}
|
||||||
|
|
||||||
// Get helpbaseurl, helppage and mode from helppagename and langs
|
// Get helpbaseurl, helppage and mode from helppagename and langs
|
||||||
$arrayres = getHelpParamFor($helppagename, $langs);
|
$arrayres = getHelpParamFor($helppagename, $langs);
|
||||||
@ -1678,7 +1680,7 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead
|
|||||||
if ($mode == 'wiki') $text .= sprintf($helpbaseurl, urlencode(html_entity_decode($helppage)));
|
if ($mode == 'wiki') $text .= sprintf($helpbaseurl, urlencode(html_entity_decode($helppage)));
|
||||||
else $text .= sprintf($helpbaseurl, $helppage);
|
else $text .= sprintf($helpbaseurl, $helppage);
|
||||||
$text .= '">';
|
$text .= '">';
|
||||||
$text .= '<span class="fa fa-question-circle atoplogin valignmiddle" '.$helpresent.'></span>';
|
$text .= '<span class="fa fa-question-circle atoplogin valignmiddle'.($helppresent ? ' '.$helppresent : '')."></span>';
|
||||||
$text .= '</a>';
|
$text .= '</a>';
|
||||||
$toprightmenu .= @Form::textwithtooltip('', $title, 2, 1, $text, 'login_block_elem', 2);
|
$toprightmenu .= @Form::textwithtooltip('', $title, 2, 1, $text, 'login_block_elem', 2);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user