{extends "@layout.xml"} {block wrap}
{include tabs}
{ifset size} {include size, x => $dat} {/ifset} {ifset before_content} {include before_content, x => $dat} {/ifset} {ifset specpage} {include specpage, x => $dat} {else}
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)} {ifset top} {include top, x => $dat} {/ifset} {if sizeof($data) > 0}
{include preview, x => $dat} {ifset infotable} {include infotable, x => $dat} {else} {include name, x => $dat}
{include description, x => $dat} {/ifset}
{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}
{/ifset} {ifset bottom} {include bottom} {/ifset}
{/block}