summaryrefslogtreecommitdiff
path: root/templates/gallery_nav.tpl
blob: 97d6638249c5cf00275620aeefbdd2109cf8ae53 (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
{strip}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='nav' serviceHash=$gContent->mInfo}

{if $gGallery}
	<div class="navigation">
		<span class="pull-left">
			{if !empty( $gGallery->mInfo.previous_image_id )}
				<a href="{$gContent->getImageUrl($gGallery->mInfo.previous_image_id)|escape}">
					{if $gBitSystem->isFeatureActive( 'gallerybar_use_icons' )}
						{biticon ipackage="icons" iname="go-previous" iexplain=previous}
					{else}
						&laquo;&nbsp;{tr}previous{/tr}
					{/if}
					{if $gBitSystem->isFeatureActive( 'gallery_bar_use_thumbnails' )}
						<br />
						<img src="{$gGallery->mInfo.previous_image_avatar}" />
					{/if}
				</a>
			{else}&nbsp;{/if}
		</span>

		<span class="pull-right">
			{if !empty( $gGallery->mInfo.next_image_id )}
				<a href="{$gContent->getImageUrl($gGallery->mInfo.next_image_id)|escape}">
					{if $gBitSystem->isFeatureActive( 'gallerybar_use_icons' )}
						{biticon ipackage="icons" iname="go-next" iexplain=next}
					{else}
						{tr}next{/tr}&nbsp;&raquo;
					{/if}
					{if $gBitSystem->isFeatureActive( 'gallery_bar_use_thumbnails' )}
						<br />
						<img src="{$gGallery->mInfo.next_image_avatar}" />
					{/if}
				</a>
			{else}&nbsp;{/if}
		</span>
	</div><!-- end .navigation -->
{/if}
{/strip}