summaryrefslogtreecommitdiff
path: root/templates/view_image.tpl
blob: b786e91e7492e7501a3ed6ec96be3990691f70f6 (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
70
71
72
73
74
{strip}
{if !$liberty_preview}
	{include file="bitpackage:fisheye/gallery_nav.tpl"}
{/if}

<div class="display fisheye">
	{if !$liberty_preview}
		<div class="floaticon">
			{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$gContent->mInfo}
			{if $gContent->hasEditPermission()}
				<a title="{tr}Edit{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?image_id={$gContent->mImageId}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit Image"}</a>
				<a title="{tr}Delete{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?image_id={$gContent->mImageId}&amp;delete=1">{biticon ipackage="icons" iname="edit-delete" iexplain="Delete Image"}</a>
			{/if}
		</div>
	{/if}

	{formfeedback hash=$feedback}
	<div class="header">
		<h1>{$gContent->getTitle()|default:$gContent->mInfo.image_file.filename|escape}</h1>
	</div>

	<div class="body">
		{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo}
		{box class="box image"}
			{if $gBitSystem->isFeatureActive( 'site_fancy_zoom' )}
				{if $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )}
					<a href="{$gContent->mInfo.image_file.source_url|escape}">
				{else}
					<a href="{$gContent->mInfo.image_file.thumbnail_url.large}">
				{/if}
			{/if}

				<img src="{$gContent->getThumbnailUri()}{$refresh}" alt="{$gContent->getTitle()|default:$gContent->mInfo.image_file.filename|escape}" title="{$gContent->mInfo.data|default:$gContent->mInfo.filename|escape}" />

				{if $gBitSystem->isFeatureActive('fisheye_image_list_description') and $gContent->mInfo.data ne ''}
					<p class="description">{$gContent->mInfo.data|escape}</p>
				{/if}

			{if $gBitSystem->isFeatureActive( 'site_fancy_zoom' )}
				</a>
			{/if}
		{/box}

		{if !$liberty_preview}
			<div class="pagination">
				{if !$gBitSystem->isFeatureActive( 'site_fancy_zoom' )}
					{tr}View other sizes{/tr}<br />
					{foreach name=size key=size from=$gContent->mInfo.image_file.thumbnail_url item=url}
						{if $url != $gContent->mInfo.display_url}<a href="{$gContent->getDisplayUrl(0,$size)|escape}">{/if}{tr}{$size}{/tr}{if $url != $gContent->mInfo.display_url}</a>{/if}
						{if !$smarty.foreach.size.last} &nbsp;&bull;&nbsp;{/if}
					{/foreach}
				{/if}

				{if ( $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )) && !$gBitSystem->isFeatureActive( 'site_fancy_zoom' )}
					&nbsp;&bull;&nbsp;
					<a href="{$gContent->mInfo.image_file.source_url|escape}">{tr}Original{/tr}</a>
					{if $gContent->mInfo.width && $gContent->mInfo.height}
						&nbsp;{$gContent->mInfo.width}x{$gContent->mInfo.height}
					{/if}
				{/if}
			</div>

			{attachhelp hash=$gContent->mInfo.image_file}
		{/if}
	</div>	<!-- end .body -->
	
	{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='view' serviceHash=$gContent->mInfo}

	{if $gGallery && $gGallery->getPreference('allow_comments') eq 'y'}
		{include file="bitpackage:liberty/comments.tpl"}
	{/if}

</div>	<!-- end .fisheye -->
{/strip}