blob: 3bb1171498728e77470fcedfa18928a004bdc5a8 (
plain)
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
62
63
64
65
66
67
68
69
|
{strip}
<div class="listing stock">
<header>
<div class="floaticon">
{minifind prompt="Assemblies" content_id=$smarty.request.content_id}
</div>
<h1>{tr}Assemblies{/tr}{if $gQueryUserId} {tr}by{/tr} {displayname user_id=$gQueryUserId}{/if}</h1>
</header>
<section class="body">
{if $parentAssembly && $parentAssembly->isValid()}
<p>
<a href="{$smarty.const.STOCK_PKG_URL}list_assemblies.php">{tr}All Assemblies{/tr}</a>
› {$parentAssembly->getTitle()|escape}
</p>
{/if}
<table class="table table-striped table-hover">
<thead>
<tr>
<th style="width:60px"></th>
<th>{smartlink ititle="Name" isort="title" idefault=1 icontrol=$listInfo}</th>
{if $gBitSystem->isFeatureActive('stock_list_user')}<th>{tr}Owner{/tr}</th>{/if}
{if $gBitSystem->isFeatureActive('stock_list_created')}<th>{smartlink ititle="Created" isort="created" icontrol=$listInfo}</th>{/if}
{if $gBitSystem->isFeatureActive('stock_list_lastmodif')}<th>{smartlink ititle="Modified" isort="last_modified" icontrol=$listInfo}</th>{/if}
{if $gBitSystem->isFeatureActive('stock_list_hits')}<th>{smartlink ititle="Hits" isort="hits" icontrol=$listInfo}</th>{/if}
</tr>
</thead>
<tbody>
{foreach from=$galleryList key=galleryId item=gal}
<tr>
<td>
{if $gal.thumbnail_url}
<a href="{$gal.display_url|escape}">
<img src="{$gal.thumbnail_url|escape}" alt="{$gal.title|escape}" style="max-height:48px;max-width:56px"/>
</a>
{/if}
</td>
<td>
{if $gal.child_count > 0}
<a href="{$smarty.const.STOCK_PKG_URL}list_assemblies.php?content_id={$gal.content_id}">{$gal.title|escape}</a>
{else}
<a href="{$gal.display_url|escape}">{$gal.title|escape}</a>
{/if}
{if $gal.is_hidden|default:'n' == 'y' || $gal.is_private|default:'n' == 'y' || $gal.access_answer|default:false}
{booticon iname="icon-lock" ipackage="icons" iexplain="Restricted"}
{/if}
{if $gal.data}
<br/><small class="text-muted">{$gal.data|truncate:250|escape}</small>
{/if}
</td>
{if $gBitSystem->isFeatureActive('stock_list_user')}<td>{displayname hash=$gal nolink=true}</td>{/if}
{if $gBitSystem->isFeatureActive('stock_list_created')}<td>{$gal.created|bit_short_date}</td>{/if}
{if $gBitSystem->isFeatureActive('stock_list_lastmodif')}<td>{$gal.last_modified|bit_short_date}</td>{/if}
{if $gBitSystem->isFeatureActive('stock_list_hits')}<td>{$gal.hits}</td>{/if}
</tr>
{foreachelse}
<tr><td colspan="6" class="norecords">{tr}No assemblies found.{/tr}</td></tr>
{/foreach}
</tbody>
</table>
<nav>
{pagination content_id=$smarty.request.content_id}
</nav>
</section>
</div>
{/strip}
|