mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
parent
47c13e1234
commit
2fa36e123d
9 changed files with 69 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
||||||
{extends "../@listView.xml"}
|
{extends "../@layout.xml"}
|
||||||
{var $sorting = false}
|
{var $sorting = false}
|
||||||
|
|
||||||
{block title}
|
{block title}
|
||||||
|
@ -10,29 +10,47 @@
|
||||||
{_feedback}
|
{_feedback}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block tabs}
|
{block content}
|
||||||
|
<div n:ifcontent class="tabs">
|
||||||
<div n:attr="id => ($mode === 'new' ? 'activetabs' : 'ki')" class="tab">
|
<div n:attr="id => ($mode === 'new' ? 'activetabs' : 'ki')" class="tab">
|
||||||
<a n:attr="id => ($mode === 'new' ? 'act_tab_a' : 'ki')" href="?act=new">{_unread}</a>
|
<a n:attr="id => ($mode === 'new' ? 'act_tab_a' : 'ki')" href="?act=new">{_unread}</a>
|
||||||
</div>
|
</div>
|
||||||
<div n:attr="id => ($mode === 'archived' ? 'activetabs' : 'ki')" class="tab">
|
<div n:attr="id => ($mode === 'archived' ? 'activetabs' : 'ki')" class="tab">
|
||||||
<a n:attr="id => ($mode === 'archived' ? 'act_tab_a' : 'ki')" href="?act=archived">{_archive}</a>
|
<a n:attr="id => ($mode === 'archived' ? 'act_tab_a' : 'ki')" href="?act=archived">{_archive}</a>
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
</div>
|
||||||
|
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
||||||
{* BEGIN ELEMENTS DESCRIPTION *}
|
{if sizeof($data) > 0}
|
||||||
|
<table class="post post-divider" border="0" style="font-size: 11px;" n:foreach="$data as $dat">
|
||||||
{block link|strip|stripHtml}
|
<tbody>
|
||||||
javascript:void(0)
|
<tr>
|
||||||
{/block}
|
<td width="54" valign="top">
|
||||||
|
<a href="/sysop">
|
||||||
{block preview}
|
<img src="{$dat->getModel(1)->getAvatarUrl('miniscule')}" width=50 />
|
||||||
<img src="{$x->getModel(1)->getAvatarUrl('miniscule')}" width=64 />
|
</a>
|
||||||
{/block}
|
</td>
|
||||||
|
<td width="100%" valign="top">
|
||||||
{block name}
|
<div class="post-content">
|
||||||
<span style="color: #000; font-weight: 100;"></span>
|
<div class="text" style="line-height: 12pt;">
|
||||||
{/block}
|
{include $dat->getTemplatePath(), notification => $dat}
|
||||||
|
</div>
|
||||||
{block description}
|
</div>
|
||||||
{include $x->getTemplatePath(), notification => $x}
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{include "../components/paginator.xml", conf => (object) [
|
||||||
|
"page" => $page,
|
||||||
|
"count" => $count,
|
||||||
|
"amount" => sizeof($data),
|
||||||
|
"perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE,
|
||||||
|
"atBottom" => true,
|
||||||
|
]}
|
||||||
|
{else}
|
||||||
|
{ifset customErrorMessage}
|
||||||
|
{include customErrorMessage}
|
||||||
|
{else}
|
||||||
|
{include "../components/nothing.xml"}
|
||||||
|
{/ifset}
|
||||||
|
{/if}
|
||||||
{/block}
|
{/block}
|
|
@ -2,5 +2,8 @@
|
||||||
{var $user = $notification->getModel(1)}
|
{var $user = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{$notification->getDateTime()} {_nt_liked_yours}
|
{_nt_liked_yours}
|
||||||
<a href="/wall{$post->getPrettyId()}"><b>{_nt_post_nominative}</b></a> {_nt_from} {$post->getPublicationTime()}.
|
<a href="/wall{$post->getPrettyId()}"><b>{_nt_post_nominative}</b></a> {_nt_from} {$post->getPublicationTime()}.
|
||||||
|
<div class="nobold">
|
||||||
|
{$notification->getDateTime()}
|
||||||
|
</div>
|
||||||
|
|
|
@ -2,5 +2,8 @@
|
||||||
{var $user = $notification->getModel(1)}
|
{var $user = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{$notification->getDateTime()} {_nt_shared_yours}
|
{_nt_shared_yours}
|
||||||
<a href="/wall{$post->getPrettyId()}"><b>{_nt_post_instrumental}</b></a> {_nt_from} {$post->getPublicationTime()}.
|
<a href="/wall{$post->getPrettyId()}"><b>{_nt_post_instrumental}</b></a> {_nt_from} {$post->getPublicationTime()}.
|
||||||
|
<div class="nobold">
|
||||||
|
{$notification->getDateTime()}
|
||||||
|
</div>
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{var $user = $notification->getModel(1)}
|
{var $user = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{$notification->getDateTime()} {_nt_commented_yours} {include under}: "{$notification->getData()}".
|
{_nt_commented_yours} {include under}: "{$notification->getData()}".
|
||||||
|
<div class="nobold">
|
||||||
|
{$notification->getDateTime()}
|
||||||
|
</div>
|
|
@ -2,5 +2,8 @@
|
||||||
{var $user = $notification->getModel(1)}
|
{var $user = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{$notification->getDateTime()} {_nt_written_on_your_wall}
|
{_nt_written_on_your_wall}
|
||||||
<a href="/wall{$post->getPrettyId()}"><b>{_nt_post_nominative}</b></a>: "{$notification->getData()}".
|
<a href="/wall{$post->getPrettyId()}"><b>{_nt_post_nominative}</b></a>: "{$notification->getData()}".
|
||||||
|
<div class="nobold">
|
||||||
|
{$notification->getDateTime()}
|
||||||
|
</div>
|
|
@ -3,4 +3,7 @@
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{_nt_made_you_admin}
|
{_nt_made_you_admin}
|
||||||
<a href="{$club->getURL()}"><b>{$club->getCanonicalName()}</b></a> {$notification->getDateTime()}.
|
<a href="{$club->getURL()}"><b>{$club->getCanonicalName()}</b></a>.
|
||||||
|
<div class="nobold">
|
||||||
|
{$notification->getDateTime()}
|
||||||
|
</div>
|
|
@ -1,4 +1,7 @@
|
||||||
{var $gift = $notification->getModel(0)}
|
{var $gift = $notification->getModel(0)}
|
||||||
{var $sender = $notification->getModel(1)}
|
{var $sender = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> отправил вам {$notification->getDateTime()} подарок.
|
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> отправил вам подарок.
|
||||||
|
<div class="nobold">
|
||||||
|
{$notification->getDateTime()}
|
||||||
|
</div>
|
|
@ -6,3 +6,6 @@
|
||||||
{if !empty($message)}
|
{if !empty($message)}
|
||||||
{_message}: "{$message}".
|
{_message}: "{$message}".
|
||||||
{/if}
|
{/if}
|
||||||
|
<div class="nobold">
|
||||||
|
{$notification->getDateTime()}
|
||||||
|
</div>
|
|
@ -6,3 +6,6 @@
|
||||||
{if !empty($message)}
|
{if !empty($message)}
|
||||||
{_message}: "{$message}".
|
{_message}: "{$message}".
|
||||||
{/if}
|
{/if}
|
||||||
|
<div class="nobold">
|
||||||
|
{$notification->getDateTime()}
|
||||||
|
</div>
|
Loading…
Reference in a new issue