Add logout_icon_visible to theme category in default settings.

This commit is contained in:
markjcrane 2015-08-14 09:08:57 -06:00
parent edd9d75ab0
commit e2d0af1ca9
2 changed files with 8 additions and 1 deletions

View File

@ -57,6 +57,13 @@ if ($domains_processed == 1) {
$array[$x]['default_setting_description'] = 'Set the visibility of the name of the domain currently being managed.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'logout_icon_visible';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = 'false';
$array[$x]['default_setting_enabled'] = 'true';
$array[$x]['default_setting_description'] = 'Set the visibility of the logout icon.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'domain_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#000000';

View File

@ -1570,7 +1570,7 @@ if (strlen($_SESSION['message']) > 0) {
}
//logout icon
if ($_SESSION['username'] != '') {
if ($_SESSION['username'] != '' && $_SESSION['theme']['logout_icon_visible'] == "true") {
$username_full = $_SESSION['username'].((count($_SESSION['domains']) > 1) ? "@".$_SESSION["user_context"] : null);
echo "<a href='".PROJECT_PATH."/logout.php' onclick=\"return confirm('".$text['theme-confirm-logout']."');\"><img id='logout_icon' src='".PROJECT_PATH."/themes/enhanced/images/icon_logout.png' style='width: 28px; height: 23px; border: none;' title='".$text['theme-label-logout']." ".$username_full."' align='absmiddle'></a>";
unset($username_full);