forked from ayaaop/VKify-theme-2016
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path@MilkshakeListView.xml
More file actions
61 lines (55 loc) · 2.4 KB
/
Copy path@MilkshakeListView.xml
File metadata and controls
61 lines (55 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{extends "@layout.xml"}
{block wrap}
<div class="ovk-lw-container">
<div class="ovk-lw--list">
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
{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>
{else}
{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">
<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>
</div>
</div>
</div>
{/block}