- Совместимость с XenForo
- 1.2
- 1.3
Картинку из архива заливаем в папку xenforo, Вашего стиля.
Открываем шаблон EXTRA.css и добавляем:
Код:
.lb {
background: url('@imagePath/xenforo/up.png') no-repeat 2px 0 #518cc6;
border: 1px solid #2a65a0;
cursor: pointer;
border-radius: 3px;
color: #fff;
cursor: pointer;
overflow: visible;
padding: 1px 5px 1px 18px;
position: relative;
text-decoration: none;
white-space: nowrap;
}
.lb-count {
background-color: #fafafa;
border: 1px solid #d4d4d4;
border-radius: 3px;
color: #4183c4;
cursor: pointer;
overflow: visible;
padding: 1px 5px;
position: relative;
text-decoration: none;
white-space: nowrap;
}
.lb, .lb-count {display: inline-block;}
.lb-count i, .lb-count u {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border: 4px transparent solid;
border-right-color: #aaa;
border-left: 0;
border-color: transparent #aaa transparent -moz-use-text-color;
border-image: none;
border-style: solid solid solid none;
border-width: 4px 4px 4px 0;
height: 0;
left: 0;
line-height: 0;
margin: -4px 0 0 -4px;
position: absolute;
top: 50%;
width: 0;
}
.lb-count u {
border-right-color: #fff;
margin-left: -3px;
}
Код:
<xen:if is="@messageShowTotalLikes AND {$user.user_id}">
<dl class="pairsJustified">
<dt>{xen:phrase likes_received}:</dt>
<dd>{xen:number $user.like_count}</dd>
</dl>
</xen:if>
Код:
<xen:if is="@messageShowTotalLikes AND {$user.user_id}">
<dl class="pairsJustified">
<dt><span class="lb">{xen:phrase likes_received}:</span></dt>
<dd><span class="lb-count">{xen:number $user.like_count}<i></i><u></u></span></dd>
</dl>
</xen:if>