source: trunk/template-extension/distributed/samples/my-picture.tpl @ 13115

Last change on this file since 13115 was 13115, checked in by rvelices, 12 years ago

improvement of picture title on picture page, drop boxes on index page ...
sharpening uses a zider scale range

  • Property svn:eol-style set to LF
File size: 4.5 KB
Line 
1
2{if isset($errors)}
3<div class="errors">
4  <ul>
5    {foreach from=$errors item=error}
6    <li>{$error}</li>
7    {/foreach}
8  </ul>
9</div>
10{/if}
11
12{if isset($infos)}
13<div class="infos">
14  <ul>
15    {foreach from=$infos item=info}
16    <li>{$info}</li>
17    {/foreach}
18  </ul>
19</div>
20{/if}
21
22<div id="imageHeaderBar">
23  <div class="browsePath">
24    <a href="{$U_HOME}" rel="Home">{'Home'|@translate}</a>
25    {if !$IS_HOME}{$LEVEL_SEPARATOR}{$SECTION_TITLE}{/if}
26    {$LEVEL_SEPARATOR}{$current.TITLE}
27  </div>
28  <div class="imageNumber">{$PHOTO}</div>
29  <h2>{$current.TITLE}</h2>
30</div>
31
32{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
33<div id="imageToolBar">
34        <div class="actionButtons">
35{if isset($U_SLIDESHOW_START)}
36                <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
37                        <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'slideshow'|@translate}</span>
38                </a>
39{/if}
40{if isset($U_SLIDESHOW_STOP)}
41                <a href="{$U_SLIDESHOW_STOP}" title="{'stop the slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
42                        <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'stop the slideshow'|@translate}</span>
43                </a>
44{/if}
45{if isset($U_METADATA)}
46                <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
47                        <span class="pwg-icon pwg-icon-camera-info">&nbsp;</span><span class="pwg-button-text">{'Show file metadata'|@translate}</span>
48                </a>
49{/if}
50{if isset($current.U_DOWNLOAD)}
51                <a href="{$current.U_DOWNLOAD}" title="{'Download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
52                        <span class="pwg-icon pwg-icon-save">&nbsp;</span><span class="pwg-button-text">{'Download'|@translate}</span>
53                </a>
54{/if}
55{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
56{if isset($favorite)}
57                <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="nofollow">
58                        <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}">&nbsp;</span><span class="pwg-button-text">{'Favorites'|@translate}</span>
59                </a>
60{/if}
61{if isset($U_SET_AS_REPRESENTATIVE)}
62                <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
63                        <span class="pwg-icon pwg-icon-representative">&nbsp;</span><span class="pwg-button-text">{'representative'|@translate}</span>
64                </a>
65{/if}
66{if isset($U_ADMIN)}
67                <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
68                        <span class="pwg-icon pwg-icon-edit">&nbsp;</span><span class="pwg-button-text">{'Edit'|@translate}</span>
69                </a>
70{/if}
71{if isset($U_CADDIE)}{*caddie management BEGIN*}
72<script type="text/javascript">
73{literal}function addToCadie(aElement, rootUrl, id)
74{
75if (aElement.disabled) return;
76aElement.disabled=true;
77var y = new PwgWS(rootUrl);
78
79y.callService(
80        "pwg.caddie.add", {image_id: id} ,
81        {
82                onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
83                onSuccess: function(result) { aElement.disabled = false; }
84        }
85        );
86}{/literal}
87</script>
88                <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
89                        <span class="pwg-icon pwg-icon-caddie-add">&nbsp;</span><span class="pwg-button-text">{'Caddie'|@translate}</span>
90                </a>
91{/if}{*caddie management END*}
92        </div>   
93  {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
94</div> <!-- imageToolBar -->
95
96<div id="theImage">
97{$ELEMENT_CONTENT}
98
99{if isset($COMMENT_IMG)}
100<p>{$COMMENT_IMG}</p>
101{/if}
102
103{if isset($U_SLIDESHOW_STOP) }
104<p>
105  [ <a href="{$U_SLIDESHOW_STOP}">{'stop the slideshow'|@translate}</a> ]
106</p>
107{/if}
108
109</div>
110
111{if isset($previous) }
112<a class="navThumb" id="linkPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev">
113  <img src="{$previous.THUMB_SRC}" alt="{$previous.TITLE}">
114</a>
115{/if}
116{if isset($next) }
117<a class="navThumb" id="linkNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next">
118  <img src="{$next.THUMB_SRC}" alt="{$next.TITLE}">
119</a>
120{/if}
121
122{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.