aboutsummaryrefslogtreecommitdiff
path: root/app/views/profile/widget-avatar.php
blob: 74b142c6a196e68bb7ce2347a42244954507160d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<div class="avatar-widget">
    <? if ($GLOBALS['perm']->have_profile_perm('user', $current_user)) : ?>
        <a class="profile-avatar"
           href="<?= URLHelper::getURL('dispatch.php/settings/avatar/') ?>">
            <?= $avatar->getImageTag(Avatar::NORMAL) ?>
            <div id="avatar-overlay" class="avatar-overlay">
                <div class="text">
                    <?= _('Profilbild ändern') ?>
                </div>
            </div>
        </a>
    <? else : ?>
        <?= $avatar->getImageTag(Avatar::NORMAL) ?>
    <? endif ?>
</div>
<div class="profile-sidebar-details">
    <? if ($kings): ?>
        <div><?= $kings ?></div>
    <? endif; ?>
        <div class="minor">
            <?= _('Profilbesuche:') ?>
            <?= number_format($views, 0, ',', '.') ?>
        </div>
    <? if ($score && $score_title): ?>
        <div class="minor">
            <a href="<?= URLHelper::getLink('dispatch.php/score') ?>" title="<?= _('Zur Rangliste') ?>">
                <?= _('Stud.IP-Punkte') ?>: <?= number_format($score, 0, ',', '.') ?>
                <br />
                <?= _('Rang') ?>: <?= htmlReady($score_title) ?>
            </a>
        </div>
    <? endif; ?>
</div>