source: branches/2.2/template-extension/distributed/samples/my-picture.tpl @ 11979

Last change on this file since 11979 was 8665, checked in by rvelices, 14 years ago

feature 2102 : rename item/image/picture to photo

  • 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  {if $SHOW_PICTURE_NAME_ON_TITLE }
30  <h2>{$current.TITLE}</h2>
31  {/if}
32</div>
33
34{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
35<div id="imageToolBar">
36        <div class="actionButtons">
37{if isset($U_SLIDESHOW_START)}
38                <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
39                        <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'slideshow'|@translate}</span>
40                </a>
41{/if}
42{if isset($U_SLIDESHOW_STOP)}
43                <a href="{$U_SLIDESHOW_STOP}" title="{'stop the slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
44                        <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'stop the slideshow'|@translate}</span>
45                </a>
46{/if}
47{if isset($U_METADATA)}
48                <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
49                        <span class="pwg-icon pwg-icon-camera-info">&nbsp;</span><span class="pwg-button-text">{'Show file metadata'|@translate}</span>
50                </a>
51{/if}
52{if isset($current.U_DOWNLOAD)}
53                <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
54                        <span class="pwg-icon pwg-icon-save">&nbsp;</span><span class="pwg-button-text">{'download'|@translate}</span>
55                </a>
56{/if}
57{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
58{if isset($favorite)}
59                <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">
60                        <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>
61                </a>
62{/if}
63{if isset($U_SET_AS_REPRESENTATIVE)}
64                <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
65                        <span class="pwg-icon pwg-icon-representative">&nbsp;</span><span class="pwg-button-text">{'representative'|@translate}</span>
66                </a>
67{/if}
68{if isset($U_ADMIN)}
69                <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
70                        <span class="pwg-icon pwg-icon-edit">&nbsp;</span><span class="pwg-button-text">{'edit'|@translate}</span>
71                </a>
72{/if}
73{if isset($U_CADDIE)}{*caddie management BEGIN*}
74<script type="text/javascript">
75{literal}function addToCadie(aElement, rootUrl, id)
76{
77if (aElement.disabled) return;
78aElement.disabled=true;
79var y = new PwgWS(rootUrl);
80
81y.callService(
82        "pwg.caddie.add", {image_id: id} ,
83        {
84                onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
85                onSuccess: function(result) { aElement.disabled = false; }
86        }
87        );
88}{/literal}
89</script>
90                <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">
91                        <span class="pwg-icon pwg-icon-caddie-add">&nbsp;</span><span class="pwg-button-text">{'caddie'|@translate}</span>
92                </a>
93{/if}{*caddie management END*}
94        </div>   
95  {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
96</div> <!-- imageToolBar -->
97
98<div id="theImage">
99{$ELEMENT_CONTENT}
100
101{if isset($COMMENT_IMG)}
102<p>{$COMMENT_IMG}</p>
103{/if}
104
105{if isset($U_SLIDESHOW_STOP) }
106<p>
107  [ <a href="{$U_SLIDESHOW_STOP}">{'stop the slideshow'|@translate}</a> ]
108</p>
109{/if}
110
111</div>
112
113{if isset($previous) }
114<a class="navThumb" id="linkPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev">
115  <img src="{$previous.THUMB_SRC}" alt="{$previous.TITLE}">
116</a>
117{/if}
118{if isset($next) }
119<a class="navThumb" id="linkNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next">
120  <img src="{$next.THUMB_SRC}" alt="{$next.TITLE}">
121</a>
122{/if}
123
124{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.