source: branches/2.0/template-extension/distributed/samples/my-picture.tpl @ 6503

Last change on this file since 6503 was 2779, checked in by vdigital, 16 years ago

0 comment is removed (Start with 1)
Accurate samples/my-picture.tpl...

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1{* $Id: my-picture.tpl 2779 2008-10-19 21:00:18Z vdigital $ *}
2
3{if isset($errors)}
4<div class="errors">
5  <ul>
6    {foreach from=$errors item=error}
7    <li>{$error}</li>
8    {/foreach}
9  </ul>
10</div>
11{/if}
12
13{if isset($infos)}
14<div class="infos">
15  <ul>
16    {foreach from=$infos item=info}
17    <li>{$info}</li>
18    {/foreach}
19  </ul>
20</div>
21{/if}
22
23<div id="imageHeaderBar">
24  <div class="browsePath">
25    <a href="{$U_HOME}" rel="home">{'home'|@translate}</a>
26    {if !$IS_HOME}{$LEVEL_SEPARATOR}{$SECTION_TITLE}{/if}
27    {$LEVEL_SEPARATOR}{$current.TITLE}
28  </div>
29  <div class="imageNumber">{$PHOTO}</div>
30  {if $SHOW_PICTURE_NAME_ON_TITLE }
31  <h2>{$current.TITLE}</h2>
32  {/if}
33</div>
34
35{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
36<div id="imageToolBar">
37  <div class="randomButtons">
38    {if isset($U_SLIDESHOW_START) }
39      <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_slideshow.png" class="button" alt="{'slideshow'|@translate}"></a>
40    {/if}
41    {if isset($U_SLIDESHOW_STOP) }
42      <a href="{$U_SLIDESHOW_STOP}" title="{'slideshow_stop'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_slideshow.png" class="button" alt="{'slideshow_stop'|@translate}"></a>
43    {/if}
44      <a href="{$U_METADATA}" title="{'picture_show_metadata'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/metadata.png" class="button" alt="metadata" /></a>
45    {if isset($current.U_DOWNLOAD) }
46      <a href="{$current.U_DOWNLOAD}" title="{'download_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"></a>
47    {/if}
48    {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
49    {if isset($favorite) }
50      <a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}"><img src="{$favorite.FAVORITE_IMG}" class="button" alt="favorite" title="{$favorite.FAVORITE_HINT}"></a>
51    {/if}
52    {if !empty($U_SET_AS_REPRESENTATIVE) }
53      <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/representative.png" class="button" alt="{'representative'|@translate}"></a>
54    {/if}
55    {if isset($U_ADMIN) }
56      <a href="{$U_ADMIN}" title="{'link_info_image'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/preferences.png" class="button" alt="{'edit'|@translate}"></a>
57    {/if}
58    {if isset($U_CADDIE) }{*caddie management BEGIN*}
59<script type="text/javascript">
60{literal}function addToCadie(aElement, rootUrl, id)
61{
62if (aElement.disabled) return;
63aElement.disabled=true;
64var y = new PwgWS(rootUrl);
65
66y.callService(
67  "pwg.caddie.add", {image_id: id} ,
68  {
69    onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
70    onSuccess: function(result) { aElement.disabled = false; }
71  }
72  );
73}{/literal}
74</script>
75      <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"></a>
76    {/if}{*caddie management END*}
77  </div>
78  {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
79</div> <!-- imageToolBar -->
80
81<div id="theImage">
82{$ELEMENT_CONTENT}
83
84{if isset($COMMENT_IMG)}
85<p>{$COMMENT_IMG}</p>
86{/if}
87
88{if isset($U_SLIDESHOW_STOP) }
89<p>
90  [ <a href="{$U_SLIDESHOW_STOP}">{'slideshow_stop'|@translate}</a> ]
91</p>
92{/if}
93
94</div>
95
96{if isset($previous) }
97<a class="navThumb" id="linkPrev" href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev">
98  <img src="{$previous.THUMB_SRC}" alt="{$previous.TITLE}">
99</a>
100{/if}
101{if isset($next) }
102<a class="navThumb" id="linkNext" href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next">
103  <img src="{$next.THUMB_SRC}" alt="{$next.TITLE}">
104</a>
105{/if}
106
107{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.