mirror of
https://github.com/claradex/nativegallery.git
synced 2024-11-15 03:31:10 +03:00
fix profile picture
This commit is contained in:
parent
b01f2fa8f4
commit
151a1056a8
1 changed files with 7 additions and 6 deletions
|
@ -29,13 +29,13 @@ $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
|
||||||
if ($userprofile->i('id') === Auth::userid()) { ?>
|
if ($userprofile->i('id') === Auth::userid()) { ?>
|
||||||
<p><b><a href="/lk/profile">Редактировать мой профиль</a></b></p>
|
<p><b><a href="/lk/profile">Редактировать мой профиль</a></b></p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
<div class="p20" style="padding-right:12px">
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<?php if ($userprofile->content('badge') !== null) { ?>
|
<?php if ($userprofile->content('badge') !== null) { ?>
|
||||||
<div style="float:left; border:solid 1px #3b7dc1; padding:6px 10px 7px; margin-bottom:13px; background-color:#0199ff44"><b><?=nl2br($userprofile->content('badge'))?></div><br>
|
<div style="float:left; border:solid 1px #3b7dc1; padding:6px 10px 7px; margin-bottom:13px; background-color:#0199ff44"><b><?=nl2br($userprofile->content('badge'))?></div><br>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<td style="vertical-align:top; width:100%" valign="top" width="100%">
|
<td style="vertical-align:top; width:100%" valign="top" width="100%">
|
||||||
<div class="p20" style="padding-right:12px">
|
|
||||||
<table style="margin-bottom: 15px;">
|
<table style="margin-bottom: 15px;">
|
||||||
<colgroup><col width="170px">
|
<colgroup><col width="170px">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
|
@ -166,7 +166,7 @@ $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
|
||||||
<td><span class="sm"><?= Date::zmdate($userprofile->i('online')) ?> <?php if (time() - 300 <= $userprofile->i('online')) { ?>(<b>online</b>)<?php } ?></span></td>
|
<td><span class="sm"><?= Date::zmdate($userprofile->i('online')) ?> <?php if (time() - 300 <= $userprofile->i('online')) { ?>(<b>online</b>)<?php } ?></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div><br />
|
<br />
|
||||||
<div class="sm" style="float:right"><a href="/lk/ticket.php?action=add&aid=140"></a></div>
|
<div class="sm" style="float:right"><a href="/lk/ticket.php?action=add&aid=140"></a></div>
|
||||||
<?php
|
<?php
|
||||||
if (json_decode($userprofile->i('content'), true)['aboutmemo']['value'] != null) { ?>
|
if (json_decode($userprofile->i('content'), true)['aboutmemo']['value'] != null) { ?>
|
||||||
|
@ -175,7 +175,7 @@ $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
|
||||||
<?=nl2br(json_decode($userprofile->i('content'), true)['aboutmemo']['value'])?>
|
<?=nl2br(json_decode($userprofile->i('content'), true)['aboutmemo']['value'])?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign="top" align="right">
|
<td valign="top" align="right">
|
||||||
<script>
|
<script>
|
||||||
|
@ -207,15 +207,16 @@ $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="<?= $userprofile->i('photourl') ?>" onclick="showUserPhoto(); return false;"><img onerror="this.src = '/static/img/avatar.png'; this.onerror = null;" src="<?= $userprofile->i('photourl') ?>" alt="" id="userphoto_img" class="f" style="width:auto; max-width:100px"></a>
|
<a href="<?= $userprofile->i('photourl') ?>" onclick="showUserPhoto(); return false;"><img onerror="this.src = '/static/img/avatar.png'; this.onerror = null;" src="<?= $userprofile->i('photourl') ?>" alt="" id="userphoto_img" class="f" style="width:auto; max-width:100px"></a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div><b><a href="/search?id=<?=$userprofile->i('id')?>">Найти все фотографии, сделанные этим пользователем</a></b></div>
|
</div>
|
||||||
|
<div style="margin-top: 25px;"><b><a href="/search?id=<?=$userprofile->i('id')?>">Найти все фотографии, сделанные этим пользователем</a></b></div>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<center><h1>Пользователь не найден</h1></center>
|
<center><h1>Пользователь не найден</h1></center>
|
||||||
<center><img src="/static/img/404.jpg"></center>
|
<center><img src="/static/img/404.jpg"></center>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<?php include($_SERVER['DOCUMENT_ROOT'] . '/views/components/Footer.php'); ?>
|
<?php include($_SERVER['DOCUMENT_ROOT'] . '/views/components/Footer.php'); ?>
|
||||||
|
|
Loading…
Reference in a new issue