mirror of
https://github.com/openvk/openvk
synced 2024-11-14 02:59:12 +03:00
66 lines
2.5 KiB
XML
66 lines
2.5 KiB
XML
{extends "@layout.xml"}
|
|
|
|
{block wrap}
|
|
<div class="page_wrap">
|
|
<div n:ifset="tabs" n:ifcontent class="tabs">
|
|
{include tabs}
|
|
</div>
|
|
|
|
{ifset size}
|
|
{include size, x => $dat}
|
|
{/ifset}
|
|
|
|
<div class="container_gray">
|
|
{var data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
|
|
|
{if sizeof($data) > 0}
|
|
<div class="content" n:foreach="$data as $dat">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td valign="top">
|
|
<a href="{include link, x => $dat}">
|
|
{include preview, x => $dat}
|
|
</a>
|
|
</td>
|
|
<td valign="top" style="width: 100%">
|
|
{ifset infoTable}
|
|
{include infoTable, x => $dat}
|
|
{else}
|
|
<a href="{include link, x => $dat}">
|
|
<b>
|
|
{include name, x => $dat}
|
|
</b>
|
|
</a>
|
|
<br/>
|
|
{include description, x => $dat}
|
|
{/ifset}
|
|
</td>
|
|
<td n:ifset="actions" valign="top" class="action_links" style="width: 150px; text-transform: lowercase;">
|
|
{include actions, x => $dat}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{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}
|
|
</div>
|
|
|
|
{ifset bottom}
|
|
{include bottom}
|
|
{/ifset}
|
|
</div>
|
|
{/block}
|