2021-10-07 11:48:55 +03:00
|
|
|
{extends "@layout.xml"}
|
|
|
|
|
|
|
|
{block wrap}
|
|
|
|
<div class="ovk-lw-container">
|
|
|
|
<div class="ovk-lw--list">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
2021-10-07 11:48:55 +03:00
|
|
|
{if sizeof($data) > 0}
|
|
|
|
<table n:foreach="$data as $dat" border="0" style="font-size:11px;" class="post">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td width="54" valign="top">
|
|
|
|
{include preview, x => $dat}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td width="345" valign="top">
|
|
|
|
<div class="post-author">
|
|
|
|
<a href="{include link, x => $dat}">
|
|
|
|
<b>
|
|
|
|
{include name, x => $dat}
|
|
|
|
</b>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="post-content" style="padding: 4px;font-size: 11px;">
|
|
|
|
{include description, x => $dat}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
<div style="padding: 8px;">
|
|
|
|
{include "components/paginator.xml", conf => (object) [
|
|
|
|
"page" => $page,
|
|
|
|
"count" => $count,
|
|
|
|
"amount" => sizeof($data),
|
|
|
|
"perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE,
|
|
|
|
]}
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
{else}
|
2021-10-07 11:48:55 +03:00
|
|
|
{ifset customErrorMessage}
|
|
|
|
{include customErrorMessage}
|
|
|
|
{else}
|
|
|
|
{include "components/nothing.xml"}
|
|
|
|
{/ifset}
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ovk-lw--actions">
|
|
|
|
{include actions}
|
|
|
|
<hr/>
|
|
|
|
<div n:if="$sorting ?? true" class="tile">
|
2022-08-09 09:37:08 +03:00
|
|
|
<a href="?C=I;O=R" class="profile_link">{_sort_randomly}</a>
|
|
|
|
<a href="?C=M;O=D" class="profile_link">{_sort_up}</a>
|
|
|
|
<a href="?C=M;O=A" class="profile_link">{_sort_down}</a>
|
2021-10-07 11:48:55 +03:00
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-07 11:48:55 +03:00
|
|
|
{/block}
|