- Uyumlu XF Sürümleri
- hepsine uyumlu.
message_macros şablonunda bulun[REPLYTHANKS]
message_macros kodu:
<xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image">
Aşağıdaki kodla değiştirin:
message_macros değişen kod:
<xf:if is="$xf.options.showMessageOnlineStatus && $user && $user.isOnline()">
<div class="cf-avatar2">
<div class="cf-avatar-border2">
<xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
</div>
</div>
<xf:else />
<div class="cf-avatar">
<div class="cf-avatar-border">
<xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
</div>
</div>
</xf:if>
Extra.less şablonuna aşağıdaki kodu ekleyin :
extra less:
.cf-avatar{
display: block;
background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
border-radius: 50%;
padding: 4px;
box-shadow: 0px 0px 10px 3px rgba(178, 34, 34, 0.38);
}
.cf-avatar-border{
display: block;
border: 4px solid #fff;
border-radius: 50%;
}
@media (max-width: @xf-publicNavCollapseWidth)
{
.cf-avatar{
padding: 2px;
}
.cf-avatar-border{
border-width: 2px;
}
}
.cf-avatar2{
display: block;
background: linear-gradient(to right, green, yellow);
border-radius: 50%;
padding: 4px;
box-shadow: 0px 0px 10px 3px rgba(4, 90, 15, 0.38);
}
.cf-avatar-border2{
display: block;
border: 4px solid #fff;
border-radius: 50%;
}
@media (max-width: @xf-publicNavCollapseWidth)
{
.cf-avatar2{
padding: 2px;
}
.cf-avatar-border2{
border-width: 2px;
}
}

Son düzenleme: