mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Multiple user profile page layout improvements
Co-authored-by: Kos Furler <35310076+kosfurler@users.noreply.github.com>
This commit is contained in:
parent
f34e0ea88a
commit
5bc9f7ff58
2 changed files with 58 additions and 51 deletions
|
@ -250,16 +250,20 @@
|
|||
<a href="/notes{$user->getId()}">{_"all_title"}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding: 5px;">
|
||||
<div class="ovk-album" style="display: inline-block;" n:foreach="$notes as $note">
|
||||
<div style="text-align: center;float: left;height: 30pt;width: 35px;">
|
||||
<img src="/assets/packages/static/openvk/img/note_icon.png" />
|
||||
</div>
|
||||
<div>
|
||||
<b><a href="/note{$user->getId()}_{$note->getId()}">{$note->getName()}</a></b><br>
|
||||
<span class="nobold">{$note->getPreview(35)}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="padding: 5px 8px 15px 8px;">
|
||||
<ul class="notes_titles" n:foreach="$notes as $note">
|
||||
<li class="written">
|
||||
<a href="/note{$user->getId()}_{$note->getId()}">
|
||||
{$note->getName()}
|
||||
</a>
|
||||
<small>
|
||||
{$note->getPublicationTime()}
|
||||
<span class="divide">|</span>
|
||||
<a href="/note{$user->getId()}_{$note->getId()}">{_comments}</a>
|
||||
</small>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -306,41 +310,44 @@
|
|||
|
||||
<div class="right_big_block">
|
||||
<div class="page_info">
|
||||
<h4>
|
||||
{$user->getFullName()}
|
||||
|
||||
{if !is_null($user->getStatus())}
|
||||
|
||||
<div class="accountInfo clearFix">
|
||||
<div class="profileName">
|
||||
<h2>{$user->getFullName()}</h2>
|
||||
{if !is_null($user->getStatus())}
|
||||
<div class="page_status">{$user->getStatus()}</div>
|
||||
{elseif !is_null($thisUser) && $user->getId() == $thisUser->getId()}
|
||||
<div class="page_status">
|
||||
<a href="/edit" class="edit_link">[ {_"change_status"} ]</a>
|
||||
</div>
|
||||
{/if}
|
||||
</h4>
|
||||
<table class="ugc-table" n:if=" $user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)">
|
||||
</div>
|
||||
</div><div>
|
||||
<table id="basicInfo" class="ugc-table" border="0" cellspacing="0" cellpadding="0" border="0" cellspacing="0" cellpadding="0" n:if=" $user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="nobold">{_"gender"}: </span></td>
|
||||
<td>{$user->isFemale() ? tr("female") : tr("male")}</td>
|
||||
<td class="label"><span class="nobold">{_"gender"}: </span></td>
|
||||
<td class="data">{$user->isFemale() ? tr("female") : tr("male")}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="nobold">{_"relationship"}:</span></td>
|
||||
<td>{var $marialStatus = $user->getMaritalStatus()}{_"relationship_$marialStatus"}</td>
|
||||
<td class="label"><span class="nobold">{_"relationship"}:</span></td>
|
||||
<td class="data">{var $marialStatus = $user->getMaritalStatus()}{_"relationship_$marialStatus"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="nobold">{_"registration_date"}: </span></td>
|
||||
<td>{$user->getRegistrationTime()}</td>
|
||||
<td class="label"><span class="nobold">{_"registration_date"}: </span></td>
|
||||
<td class="data">{$user->getRegistrationTime()}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getHometown())">
|
||||
<td><span class="nobold">{_"hometown"}:</span></td>
|
||||
<td>{$user->getHometown()}</td>
|
||||
<td class="label"><span class="nobold">{_"hometown"}:</span></td>
|
||||
<td class="data">{$user->getHometown()}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="nobold">{_"politViews"}:</span></td>
|
||||
<td>{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}</td>
|
||||
<td class="label"><span class="nobold">{_"politViews"}:</span></td>
|
||||
<td class="data">{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div n:if=" $user->getPrivacyPermission('page.info.read', $thisUser ?? NULL)">
|
||||
<div class="content_title_expanded" onclick="hidePanel(this);">
|
||||
|
@ -348,11 +355,11 @@
|
|||
</div>
|
||||
|
||||
{capture $contactInfo_Tmp}
|
||||
<table class="ugc-table" n:ifcontent>
|
||||
<table class="ugc-table" border="0" cellspacing="0" cellpadding="0" border="0" cellspacing="0" cellpadding="0" n:ifcontent>
|
||||
<tbody n:ifcontent>
|
||||
<!--sse-->
|
||||
<tr n:if="!is_null($user->getContactEmail())">
|
||||
<td><span class="nobold">{_"email"}: </span></td>
|
||||
<td class="label"><span class="nobold">{_"email"}: </span></td>
|
||||
<td>
|
||||
<a href="mailto:{$user->getContactEmail()}" rel="ugc">
|
||||
{$user->getContactEmail()}
|
||||
|
@ -360,7 +367,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getTelegram())">
|
||||
<td><span class="nobold">{_"telegram"}: </span></td>
|
||||
<td class="label"><span class="nobold">{_"telegram"}: </span></td>
|
||||
<td>
|
||||
<a href="https://t.me/{$user->getTelegram()}" rel="ugc" target="_blank">
|
||||
@{$user->getTelegram()}
|
||||
|
@ -369,52 +376,52 @@
|
|||
</tr>
|
||||
<!--/sse-->
|
||||
<tr n:if="!is_null($user->getCity())">
|
||||
<td><span class="nobold">{_"city"}:</span></td>
|
||||
<td>{$user->getCity()}</td>
|
||||
<td class="label"><span class="nobold">{_"city"}:</span></td>
|
||||
<td class="data">{$user->getCity()}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getPhysicalAddress())">
|
||||
<td><span class="nobold">{_"address"}:</span></td>
|
||||
<td>{$user->getPhysicalAddress()}</td>
|
||||
<td class="label"><span class="nobold">{_"address"}:</span></td>
|
||||
<td class="data">{$user->getPhysicalAddress()}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/capture}
|
||||
{capture $uInfo_Tmp}
|
||||
<table class="ugc-table" n:ifcontent>
|
||||
<table class="ugc-table" border="0" cellspacing="0" cellpadding="0" border="0" cellspacing="0" cellpadding="0" n:ifcontent>
|
||||
<tbody n:ifcontent>
|
||||
<tr n:if="!is_null($user->getInterests())">
|
||||
<td><span class="nobold">{_"interests"}: </span></td>
|
||||
<td>{$user->getInterests()}</td>
|
||||
<td class="label"><span class="nobold">{_"interests"}: </span></td>
|
||||
<td class="data">{$user->getInterests()}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getFavoriteMusic())">
|
||||
<td><span class="nobold">{_"favorite_music"}: </span></td>
|
||||
<td>{$user->getFavoriteMusic()}</td>
|
||||
<td class="label"><span class="nobold">{_"favorite_music"}: </span></td>
|
||||
<td class="data">{$user->getFavoriteMusic()}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getFavoriteFilms())">
|
||||
<td><span class="nobold">{_"favorite_films"}: </span></td>
|
||||
<td>{$user->getFavoriteFilms()}</td>
|
||||
<td class="label"><span class="nobold">{_"favorite_films"}: </span></td>
|
||||
<td class="data">{$user->getFavoriteFilms()}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getFavoriteShows())">
|
||||
<td><span class="nobold">{_"favorite_shows"}: </span></td>
|
||||
<td>{$user->getFavoriteShows()}</td>
|
||||
<td class="label"><span class="nobold">{_"favorite_shows"}: </span></td>
|
||||
<td class="data">{$user->getFavoriteShows()}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getFavoriteBooks())">
|
||||
<td><span class="nobold">{_"favorite_books"}: </span></td>
|
||||
<td>{$user->getFavoriteBooks()}</td>
|
||||
<td class="label"><span class="nobold">{_"favorite_books"}: </span></td>
|
||||
<td class="data">{$user->getFavoriteBooks()}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getFavoriteQuote())">
|
||||
<td><span class="nobold">{_"favorite_quotes"}: </span></td>
|
||||
<td>{$user->getFavoriteQuote()}</td>
|
||||
<td class="label"><span class="nobold">{_"favorite_quotes"}: </span></td>
|
||||
<td class="data">{$user->getFavoriteQuote()}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($user->getDescription())">
|
||||
<td><span class="nobold">О себе: </span></td>
|
||||
<td>{$user->getDescription()}</td>
|
||||
<td class="label"><span class="nobold">О себе: </span></td>
|
||||
<td class="data">{$user->getDescription()}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{/capture}
|
||||
|
||||
<div style="padding: 20px 10px" n:ifcontent>
|
||||
<div>
|
||||
<div style="padding: 10px 8px 15px 8px;" n:ifcontent>
|
||||
{if !empty($contactInfo_Tmp)}
|
||||
<h4 style="border-bottom: none; font-size: 11px; padding: 0; display: inline-block;">{_"contact_information"} {ifset $thisUser}{if $thisUser->getId() == $user->getId()}<a href="/edit?act=contacts" class="edit_link">[ {_"edit"} ]</a>{/if}{/ifset}</h4>
|
||||
{if !empty($contactInfo_Tmp)}
|
||||
|
@ -431,7 +438,7 @@
|
|||
<div style="padding-top: 15px;color:gray;text-align: center;">Информация отсутствует.</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<p n:if="empty($contactInfo_Tmp) && empty($uInfo_Tmp)">
|
||||
Пользователь предпочёл оставить о себе только воздух тайны.
|
||||
</p>
|
||||
|
|
BIN
Web/static/img/note.gif
Normal file
BIN
Web/static/img/note.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 369 B |
Loading…
Reference in a new issue