mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Change framework user avatar to et2-avatar
This commit is contained in:
parent
2eebd56811
commit
e0b98b7c4c
@ -639,10 +639,10 @@ abstract class Framework extends Framework\Extra
|
||||
$stats = Hooks::process('framework_avatar_stat');
|
||||
$stat = array_pop($stats);
|
||||
|
||||
return '<span title="'.Accounts::format_username().'" class="avatar"><img src="'.Egw::link('/api/avatar.php', array(
|
||||
return '<et2-avatar shape="squared" title="'.Accounts::format_username().'" src="'.Egw::link('/api/avatar.php', array(
|
||||
'account_id' => $GLOBALS['egw_info']['user']['account_id'],
|
||||
)).'"/>'.(!empty($stat) ?
|
||||
'<span class="fw_avatar_stat '.$stat['class'].'" title="'.$stat['title'].'">'.$stat['body'].'</span>' : '').'</span>';
|
||||
)).'"></et2-avatar>'.(empty($stat) ?
|
||||
'<span class="fw_avatar_stat '.$stat['class'].'" title="'.$stat['title'].'">'.$stat['body'].'</span>' : '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -5312,21 +5312,10 @@ span.overlayContainer img.overlay {
|
||||
#egw_fw_topmenu_info_items .topmenu_info_item:hover {
|
||||
background-color: rgba(153, 204, 255, 0.4);
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span {
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
display: inline-block;
|
||||
border: none;
|
||||
margin-top: 2px;
|
||||
margin-left: 1px;
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span img {
|
||||
width: 40px;
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat {
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span.fw_avatar_stat {
|
||||
position: absolute;
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.stat1 {
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span.stat1 {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
position: absolute;
|
||||
@ -5343,22 +5332,22 @@ span.overlayContainer img.overlay {
|
||||
line-height: 14px;
|
||||
border: 2px solid #fbfbfb;
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.online {
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span.online {
|
||||
background-color: #2de0a5;
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.offline {
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span.offline {
|
||||
background-color: #cbced1;
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.away {
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span.away {
|
||||
background-color: #ffd21f;
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.busy {
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span.busy {
|
||||
background-color: #f5455c;
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.noconnection {
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span.noconnection {
|
||||
background-color: #E1E16D;
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.noconnection:before {
|
||||
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span.noconnection:before {
|
||||
content: "!";
|
||||
}
|
||||
#egw_fw_topmenu_info_items #topmenu_info_logout {
|
||||
|
@ -42,16 +42,7 @@
|
||||
}
|
||||
}
|
||||
#topmenu_info_user_avatar {
|
||||
span {
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
display: inline-block;
|
||||
border: none;
|
||||
margin-top: 2px;
|
||||
margin-left: 1px;
|
||||
img {
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
span.fw_avatar_stat {
|
||||
position: absolute;
|
||||
}
|
||||
@ -89,7 +80,6 @@
|
||||
&:before {content:"!"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#topmenu_info_logout {
|
||||
background-image: url(../../api/templates/default/images/logout.svg);
|
||||
|
Loading…
Reference in New Issue
Block a user