blob: cf0a9734aff51bdec2c0814286c26f6753fde561 (
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
|
{strip}
<div class="display fisheye">
<header>
{include file="bitpackage:fisheye/gallery_icons_inc.tpl"}
<h1>{$gContent->getTitle()|escape}</h1>
{include file="bitpackage:fisheye/gallery_breadcrumb_inc.tpl"}
</header>
{if $gContent->mInfo.data && $gContent->getPreference('show_description') ne 'n'}
<section class="body">
<p>{$gContent->mInfo.data|escape}</p>
</section>
{/if}
<div class="body">
{formfeedback success=$fisheyeSuccess error=$fisheyeErrors warning=$fisheyeWarnings}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo}
<table class="thumbnailblock">
{counter assign="imageCount" start="0" print=false}
{assign var="max" value=100}
{assign var="tdWidth" value="`$max/$gContent->mInfo.cols_per_page`"}
{foreach from=$gContent->mItems item=galItem key=itemContentId}
{if $imageCount % $gContent->mInfo.cols_per_page == 0}
<tr > <!-- Begin Image Row -->
{/if}
<td style="width:{$tdWidth}%; vertical-align:top;"> <!-- Begin Image Cell -->
{box class="box `$galItem->mInfo.content_type_guid`"}
<a href="{$galItem->getDisplayUrl()|escape}">
<img class="thumb" src="{$galItem->getThumbnailUri()}" alt="{$galItem->mInfo.title|escape|default:'image'}" />
</a>
{if $gBitSystem->isFeatureActive( 'fisheye_gallery_list_image_titles' )}
<h2>{$galItem->mInfo.title|escape}</h2>
{/if}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$galItem->mInfo type=mini}
{if $gBitSystem->isFeatureActive( 'fisheye_gallery_list_image_descriptions' )}
<p>{$galItem->mInfo.data|escape}</p>
{/if}
{/box}
</td> <!-- End Image Cell -->
{counter}
{if $imageCount % $gContent->mInfo.cols_per_page == 0}
</tr> <!-- End Image Row -->
{/if}
{foreachelse}
<tr><td class="norecords">{tr}This gallery is empty{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$galleryId}">{tr}Upload pictures{/tr}!</a></td></tr>
{/foreach}
{if $imageCount % $gContent->mInfo.cols_per_page != 0}</tr>{/if}
</table>
</div> <!-- end .body -->
{pagination gallery_id=$galleryId gallery_path=$gContent->mGalleryPath}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='view' serviceHash=$gContent->mInfo}
{if $gContent->getPreference('allow_comments') eq 'y'}
{include file="bitpackage:liberty/comments.tpl"}
{/if}
</div> <!-- end .fisheye -->
{/strip}
|