2022-08-27 01:18:51 +03:00
|
|
|
{extends "../@layout.xml"}
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $sorting = false}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
{block title}
|
|
|
|
{_feedback}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block header}
|
|
|
|
<a href="{$thisUser->getURL()}">{$thisUser->getCanonicalName()}</a> »
|
|
|
|
{_feedback}
|
|
|
|
{/block}
|
|
|
|
|
2022-08-27 01:18:51 +03:00
|
|
|
{block content}
|
|
|
|
<div n:ifcontent class="tabs">
|
2020-06-07 19:04:43 +03:00
|
|
|
<div n:attr="id => ($mode === 'new' ? 'activetabs' : 'ki')" class="tab">
|
2022-05-26 15:25:16 +03:00
|
|
|
<a n:attr="id => ($mode === 'new' ? 'act_tab_a' : 'ki')" href="?act=new">{_unread}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<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>
|
|
|
|
</div>
|
2022-08-27 01:18:51 +03:00
|
|
|
</div>
|
|
|
|
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
|
|
|
{if sizeof($data) > 0}
|
|
|
|
<table class="post post-divider" border="0" style="font-size: 11px;" n:foreach="$data as $dat">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2022-12-10 22:33:13 +03:00
|
|
|
{var $sxModel = $dat->getModel(1)}
|
|
|
|
{if !(method_exists($sxModel, "getURL") && method_exists($sxModel, "getAvatarUrl"))}
|
|
|
|
{var $sxModel = $dat->getModel(0)}
|
|
|
|
{/if}
|
|
|
|
|
2022-08-27 01:18:51 +03:00
|
|
|
<td width="54" valign="top">
|
2022-12-13 19:57:02 +03:00
|
|
|
<a href="{$sxModel->getURL()}">
|
2022-12-10 22:33:13 +03:00
|
|
|
<img src="{$sxModel->getAvatarUrl('miniscule')}" width=50 />
|
2022-08-27 01:18:51 +03:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td width="100%" valign="top">
|
|
|
|
<div class="post-content">
|
|
|
|
<div class="text" style="line-height: 12pt;">
|
|
|
|
{include $dat->getTemplatePath(), notification => $dat}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</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}
|
2022-12-10 22:33:13 +03:00
|
|
|
{/block}
|