Add votes-balance noticebox to sidebar

Resolves #539
This commit is contained in:
Celestora 2022-04-18 18:54:50 +03:00
parent dc34646981
commit cacc223eb9
4 changed files with 21 additions and 0 deletions

View file

@ -186,6 +186,14 @@
<div n:if="$thisUser->getPinnedClubCount() > 0" class="menu_divider"></div>
<a n:foreach="$thisUser->getPinnedClubs() as $club" href="{$club->getURL()}" class="link group_link">{$club->getName()}</a>
</div>
<div n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce']" id="votesBalance">
{tr("you_still_have_x_points", $thisUser->getCoins())|noescape}
<br/><br/>
<a href="/settings?act=finance">{_top_up_your_account} &#xbb;</a>
</div>
<a n:if="OPENVK_ROOT_CONF['openvk']['preferences']['adPoster']['enable'] && $thisUser->getLeftMenuItemStatus('poster')" href="{php echo OPENVK_ROOT_CONF['openvk']['preferences']['adPoster']['link']}" >
<img src="{php echo OPENVK_ROOT_CONF['openvk']['preferences']['adPoster']['src']}" alt="{php echo OPENVK_ROOT_CONF['openvk']['preferences']['adPoster']['caption']}" class="psa-poster" style="max-width: 100%; margin-top: 50px;" />
</a>

View file

@ -1905,3 +1905,12 @@ table td[width="120"] {
.center {
margin: 0 auto;
}
#votesBalance {
margin-top: 50px;
padding: 7px;
background-color: #f6f6f6;
border-bottom: 1.5px solid #707070;
text-align: center;
user-select: none;
}

View file

@ -558,6 +558,8 @@
"points" = "Votes";
"points_count" = "votes";
"on_your_account" = "on your account";
"top_up_your_account" = "Get more";
"you_still_have_x_points" = "You have <b>$1</b> unused votes.";
"vouchers" = "Vouchers";
"have_voucher" = "Have voucher";

View file

@ -588,6 +588,8 @@
"points" = "Голоса";
"points_count" = "голосов";
"on_your_account" = "на вашем счету";
"top_up_your_account" = "Пополнить баланс";
"you_still_have_x_points" = "У Вас <b>$1</b> неиспользованных голосов.";
"vouchers" = "Ваучеры";
"have_voucher" = "Есть ваучер";