source: extensions/luciano/template/picture.tpl @ 12534

Last change on this file since 12534 was 12534, checked in by plg, 9 years ago

bug fixed: keyboard navigation available on Luciano (thanks to sichr.net for the tip)

bug fixed: compatibility with Google+1 plugin on picture.php

File size: 5.3 KB
Line 
1{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
2
3{include file='picture_nav_keys.tpl'|@get_extent:'picture_nav_keys'}
4
5<div id="imageHeaderBar">
6    <div class="browsePath">
7      {$SECTION_TITLE}
8      {$LEVEL_SEPARATOR}{$current.TITLE}
9    </div>
10  <div class="imageNumber">{$PHOTO}</div>
11  <ul class="randomButtons">
12    {if isset($U_SLIDESHOW_START)               }<li><a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" id="bn-slideshowPlay" rel="nofollow">{'slideshow'|@translate}</a></li>{/if}
13    {if isset($U_SLIDESHOW_STOP)                }<li><a href="{$U_SLIDESHOW_STOP}" title="{'slideshow_stop'|@translate}" id="bn-slideshowStop" rel="nofollow">{'slideshow_stop'|@translate}</a></li>{/if}
14    {if isset($PLUGIN_PICTURE_ACTIONS)  }<li>{$PLUGIN_PICTURE_ACTIONS}</li>{/if}
15    {if isset($favorite)                                }<li><a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}" id="bn-favourite">{$favorite.FAVORITE_HINT}</a></li>{/if}
16    {if !empty($U_SET_AS_REPRESENTATIVE)}<li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}" id="bn-higlight">{'representative'|@translate}</a></li>{/if}
17    {if isset($U_ADMIN)                                 }<li><a href="{$U_ADMIN}" title="{'link_info_image'|@translate}" id="bn-edit">{'edit'|@translate}</a></li>{/if}
18    {if isset($U_CADDIE)                                }{*caddie management BEGIN*}
19                      <script type="text/javascript">{literal}function addToCadie(aElement, rootUrl, id){if (aElement.disabled) return;aElement.disabled=true;var y=new PwgWS(rootUrl);y.callService("pwg.caddie.add",{image_id: id},{onFailure:function(num,text){alert(num+" "+text);document.location=aElement.href;},onSuccess:function(result){aElement.disabled=false;}});}{/literal}</script>
20                      <li><a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}" id="bn-caddie">{'caddie'|@translate}</a></li>
21    {/if}{*caddie management END*}
22  </ul>
23</div>
24
25<div id="theImage">
26  <div id="imageContainer">
27    {if isset($previous) }<a class="navThumb" id="linkPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"><img src="{$previous.THUMB_SRC}" alt="{$previous.TITLE}" /></a>{/if}
28    {if isset($next) }<a class="navThumb" id="linkNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"><img src="{$next.THUMB_SRC}" alt="{$next.TITLE}" /></a>{/if}
29    <div id="theImg">{$ELEMENT_CONTENT}</div>
30  </div>
31  {if isset($U_SLIDESHOW_STOP) }<p>[ <a href="{$U_SLIDESHOW_STOP}">{'slideshow_stop'|@translate}</a>]</p>{/if}
32</div>
33
34{if isset($COMMENT_IMG)}
35<p>{$COMMENT_IMG}</p>
36{/if}
37
38<div id="imageInfo">
39  <div id="imageInfoLeft">
40    <div id="viewRatign"><span class="viewTxt">{'Visits'|@translate} </span><span class="viewValue">{$INFO_VISITS}</span></div>
41    {if isset($related_tags)}
42    <div id="imageTags"><span class="tagTxt">{'Tags'|@translate}: </span><span class="tagValue">{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}<a href="{$tag.URL}">{$tag.name}</a>{/foreach}</span></div>
43    {/if}
44  </div>
45
46  {if $display_info.rating_score and isset($rate_summary) }
47  <div id="imageInfoRight">
48    <div class="value" id="ratingSummary">
49        {'Rating score'|@translate}:
50    {if $rate_summary.count}
51        <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({assign var='rate_text' value='%d rates'|@translate}{$pwg->sprintf($rate_text, $rate_summary.count)})</span>
52    {else}
53        <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span>
54    {/if}
55    </div>
56   
57    {if isset($rating)}
58    <form action="{$rating.F_ACTION}" method="post" id="rateForm">
59      <div>
60      {assign var="ratingExploded" value=$rate_summary.score|@explode:'.'}
61      {foreach from=$rating.marks item=mark name=rate_loop}
62        {if !$smarty.foreach.rate_loop.first} | {/if}
63       
64        <input type="{if isset($rating.USER_RATE) && $mark==$rating.USER_RATE}button{else}submit{/if}" name="rate" value="{$mark}" class="
65        {if $smarty.foreach.rate_loop.first} rateButtonReset
66        {elseif $mark<=$rating.USER_RATE}
67            rateButtonUser{if $mark<=$ratingExploded[0]}Full{elseif $mark==$ratingExploded[0]+1 && $ratingExploded[1]>49}Half{else}Empty{/if}
68          {elseif $mark<=$ratingExploded[0]} rateButtonFull
69          {elseif $mark==$ratingExploded[0]+1 && $ratingExploded[1]>49} rateButtonHalf
70        {else}
71        rateButtonEmpty
72        {/if}
73       
74        " title="{$mark}" />
75        {/foreach}
76
77{combine_script id='rating' load='header' require='core.scripts' path='themes/default/js/rating.js'}
78{footer_script}
79makeNiceRatingForm({ldelim}
80  rootUrl: '{$ROOT_URL|@escape:"javascript"}',
81  image_id: {$current.id},
82  ratingSummaryText: "{'Rating score'|@translate}: %.2f ({'%d rates'|@translate|@escape:'javascript'})",
83  ratingSummaryElement: document.getElementById("ratingSummary")
84{rdelim});
85{/footer_script}
86
87      </div>
88    </form>
89    {else}
90    <div class="rateShow">
91      {assign var="ratingExploded" value=$rate_summary.average|@explode:'.'}
92      <span class="rateFull{$ratingExploded[0]}"></span>{if $ratingExploded[1]>49}<span class="rateHalf"></span>{/if}
93    </div>
94    {/if}
95  </div>
96  {/if}
97  <div class="clear"></div>
98</div>
99{if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.