source: extensions/stripped_responsive/template/picture_content.tpl @ 31946

Last change on this file since 31946 was 29476, checked in by JanisV, 10 years ago

Updated picture navigation

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1{assign var=derivative value=$pwg->derivative($stripped_responsive.imageSize, $current.src_image)}
2
3{if ((!isset($stripped_responsive.HDlightbox)) or ($stripped_responsive.HDlightbox))}
4        {assign var='HDlightbox' value=true}
5{/if}
6
7{if isset($HDlightbox)}
8        {if ($stripped_responsive.hdSize == 'original')}
9                {if isset($U_ORIGINAL)}
10                        {assign var='displayHD' value=true}
11                        {assign var='HD_url' value=$U_ORIGINAL}
12                {else}
13                        {foreach from=$current.unique_derivatives item=deriv key=derivative_type}
14                                {if ($deriv->get_type() == 'Original')}
15                                        {assign var='HD_url' value=$deriv->get_url()}
16                                        {if ($deriv->get_size() != $derivative->get_size())}
17                                                {assign var='displayHD' value=true}
18                                        {/if}
19                                {/if}
20                        {/foreach}
21                {/if}
22        {else}
23                {assign var='HDderivative' value=$pwg->derivative($stripped_responsive.hdSize, $current.src_image)}
24                {assign var='HD_url' value=$HDderivative->get_url()}
25                {if (($HDderivative->get_size() != $derivative->get_size()) or ($stripped_responsive.hdSize == $stripped_responsive.imageSize))}
26                        {assign var='displayHD' value=true}
27                {/if}
28        {/if}
29        {if ($stripped_responsive.forceLightboxOn)}
30                {assign var='displayHD' value=true}
31                {if !isset($HD_url)}
32                        {assign var='HD_url' value=$derivative->get_url()}
33                {/if}
34        {/if}
35        {if isset($displayHD)}
36                {if ($HDShadowbox_loaded)}
37                        {assign var='pwghigh' value=true}
38                {else}
39                        {assign var='winhigh' value=true}
40                {/if}
41        {/if}
42{/if}
43
44{if ($stripped_responsive.imageArrows) }
45    {if isset($previous)}
46        <a href="{$previous.U_IMG}" class="img_nav img_prev" alt="{$previous.TITLE}"><span class="img_nav_content">&nbsp;</span></a>
47    {/if}
48{/if}
49<div id="theImg" {if ($stripped_responsive.imageFrame)}class="img_frame"{/if}>
50        {if isset($displayHD)}
51                {if isset($pwghigh)}<a href="{$HD_url}" rel="shadowbox" class="hd_link">&nbsp;</a>{/if}
52                {if isset($winhigh)}<div onclick="openDisplayHigh('{$HD_url}');" class="hd_link">&nbsp;</div>{/if}
53                {if ($stripped_responsive.imagePreloadHD)}<div class="preload" style="display:none;">{$HD_url}</div>{/if}
54        {/if}
55        <img src="{$derivative->get_url()}" {$derivative->get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" class="hideTabs">
56</div>
57{if ($stripped_responsive.imageArrows) }
58    {if isset($next)}
59        <a href="{$next.U_IMG}" class="img_nav img_next" alt="{$next.TITLE}"><span class="img_nav_content">&nbsp;</span></a>
60    {/if}
61{/if}
Note: See TracBrowser for help on using the repository browser.