| 1 | {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} |
|---|
| 2 | <div id="imageHeaderBar"> |
|---|
| 3 | <div class="browsePath"> |
|---|
| 4 | {$SECTION_TITLE} |
|---|
| 5 | {$LEVEL_SEPARATOR}{$current.TITLE} |
|---|
| 6 | </div> |
|---|
| 7 | <div class="imageNumber">{$PHOTO}</div> |
|---|
| 8 | <ul class="randomButtons"> |
|---|
| 9 | {if isset($U_SLIDESHOW_START) }<li><a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" id="bn-slideshowPlay" rel="nofollow">{'slideshow'|@translate}</a></li>{/if} |
|---|
| 10 | {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} |
|---|
| 11 | {if isset($PLUGIN_PICTURE_ACTIONS) }<li>{$PLUGIN_PICTURE_ACTIONS}</li>{/if} |
|---|
| 12 | {if isset($favorite) }<li><a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}" id="bn-favourite">{$favorite.FAVORITE_HINT}</a></li>{/if} |
|---|
| 13 | {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} |
|---|
| 14 | {if isset($U_ADMIN) }<li><a href="{$U_ADMIN}" title="{'link_info_image'|@translate}" id="bn-edit">{'edit'|@translate}</a></li>{/if} |
|---|
| 15 | {if isset($U_CADDIE) } |
|---|
| 16 | <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> |
|---|
| 17 | <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> |
|---|
| 18 | {/if} |
|---|
| 19 | </ul> |
|---|
| 20 | </div> |
|---|
| 21 | |
|---|
| 22 | <div id="theImage"> |
|---|
| 23 | <div id="imageContainer"> |
|---|
| 24 | {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} |
|---|
| 25 | {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} |
|---|
| 26 | <div id="theImg">{$ELEMENT_CONTENT}</div> |
|---|
| 27 | </div> |
|---|
| 28 | {if isset($U_SLIDESHOW_STOP) }<p>[ <a href="{$U_SLIDESHOW_STOP}">{'slideshow_stop'|@translate}</a>]</p>{/if} |
|---|
| 29 | </div> |
|---|
| 30 | |
|---|
| 31 | {if isset($COMMENT_IMG)} |
|---|
| 32 | <p>{$COMMENT_IMG}</p> |
|---|
| 33 | {/if} |
|---|
| 34 | |
|---|
| 35 | <div id="imageInfo"> |
|---|
| 36 | <div id="imageInfoLeft"> |
|---|
| 37 | <div id="viewRatign"><span class="viewTxt">{'Visits'|@translate} </span><span class="viewValue">{$INFO_VISITS}</span></div> |
|---|
| 38 | {if isset($related_tags)} |
|---|
| 39 | <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> |
|---|
| 40 | {/if} |
|---|
| 41 | </div> |
|---|
| 42 | |
|---|
| 43 | {if $display_info.average_rate and isset($rate_summary) } |
|---|
| 44 | <div id="imageInfoRight"> |
|---|
| 45 | <div class="value" id="ratingSummary"> |
|---|
| 46 | {'Average rate'|@translate}: |
|---|
| 47 | {assign var='rate_text' value='%.2f (rated %d times)'|@translate } |
|---|
| 48 | {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count) } |
|---|
| 49 | </div> |
|---|
| 50 | |
|---|
| 51 | {if isset($rating)} |
|---|
| 52 | <form action="{$rating.F_ACTION}" method="post" id="rateForm"> |
|---|
| 53 | <div> |
|---|
| 54 | {assign var="ratingExploded" value=$rate_summary.average|@explode:'.'} |
|---|
| 55 | {foreach from=$rating.marks item=mark name=rate_loop} |
|---|
| 56 | {if !$smarty.foreach.rate_loop.first} | {/if} |
|---|
| 57 | |
|---|
| 58 | <input type="{if isset($rating.USER_RATE) && $mark==$rating.USER_RATE}button{else}submit{/if}" name="rate" value="{$mark}" class=" |
|---|
| 59 | {if $smarty.foreach.rate_loop.first} rateButtonReset |
|---|
| 60 | {elseif $mark<=$rating.USER_RATE} |
|---|
| 61 | rateButtonUser{if $mark<=$ratingExploded[0]}Full{elseif $mark==$ratingExploded[0]+1 && $ratingExploded[1]>49}Half{else}Empty{/if} |
|---|
| 62 | {elseif $mark<=$ratingExploded[0]} rateButtonFull |
|---|
| 63 | {elseif $mark==$ratingExploded[0]+1 && $ratingExploded[1]>49} rateButtonHalf |
|---|
| 64 | {else} |
|---|
| 65 | rateButtonEmpty |
|---|
| 66 | {/if} |
|---|
| 67 | |
|---|
| 68 | " title="{$mark}" /> |
|---|
| 69 | {/foreach} |
|---|
| 70 | |
|---|
| 71 | {combine_script id='rating' load='header' require='core.scripts' path='themes/default/js/rating.js'} |
|---|
| 72 | {footer_script} |
|---|
| 73 | makeNiceRatingForm({ldelim} |
|---|
| 74 | rootUrl: '{$ROOT_URL|@escape:"javascript"}', |
|---|
| 75 | image_id: {$current.id}, |
|---|
| 76 | ratingSummaryText: "{'Average rate'|@translate}: {'%.2f (rated %d times)'|@translate|@escape:'javascript'}", |
|---|
| 77 | ratingSummaryElement: document.getElementById("ratingSummary") |
|---|
| 78 | {rdelim}); |
|---|
| 79 | {/footer_script} |
|---|
| 80 | |
|---|
| 81 | </div> |
|---|
| 82 | </form> |
|---|
| 83 | {else} |
|---|
| 84 | <div class="rateShow"> |
|---|
| 85 | {assign var="ratingExploded" value=$rate_summary.average|@explode:'.'} |
|---|
| 86 | <span class="rateFull{$ratingExploded[0]}"></span>{if $ratingExploded[1]>49}<span class="rateHalf"></span>{/if} |
|---|
| 87 | </div> |
|---|
| 88 | {/if} |
|---|
| 89 | </div> |
|---|
| 90 | {/if} |
|---|
| 91 | <div class="clear"></div> |
|---|
| 92 | </div> |
|---|
| 93 | {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if} |
|---|