- Timestamp:
- Nov 11, 2011, 3:04:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gally/gally-black-graphite/template/picture.tpl
r11031 r12602 1 1 <!-- **GBL** >PICTURE> --> 2 2 3 4 5 6 7 3 8 {include file='dialogs.tpl'} 4 9 5 <div id="content" >10 <div id="content" {if isset($MENUBAR)}class="pictureContent"{/if}> 6 11 7 12 <div id="theImageHigh" style="display:none;"> … … 11 16 <div id="theImgHighZoomButton" class="fit" onclick="gallyPP.switchZoomHigh();"></div> 12 17 <div id="theImgHighContainer2"> 13 <img id="theImgHigh" src="" style="display:none;" alt="{$ALT_IMG}"> 18 <img id="theImgHigh" src="" style="display:none;" alt="{$ALT_IMG}" 19 {if isset($COMMENT_IMG)} 20 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" 21 {/if}> 14 22 </div> 15 23 </div> 16 24 </div> 17 25 26 27 {if isset($MENUBAR)} 28 <div id="imageHeaderBar" class="borderMenu"> 29 <div class="titrePage" id='titrePageID'> 30 {if #menuAnimated# == "noswitch"} 31 {$MENUBAR} 32 {else} 33 <div class="titrePage" id='titrePageID'> 34 <div id="menuswitcher"> 35 <a id="icon_menu" class="button" onclick="gallyCP.switchmenu('', '{$ROOT_URL}{$themeconf.icon_dir}/');"> 36 </a> 37 </div> 38 </div> 39 {$MENUBAR} 40 {/if} 41 </div> 42 {else} 18 43 <div id="imageHeaderBar"> 44 {/if} 45 19 46 <div class="imageNumber">{$PHOTO}</div> 20 47 <div class="browsePath"> … … 25 52 </div> <!-- imageHeaderBar --> 26 53 27 28 54 {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} 29 55 … … 38 64 39 65 {if isset($COMMENT_IMG)} 40 <p >{$COMMENT_IMG}</p>66 <p class="imageComment">{$COMMENT_IMG}</p> 41 67 {else} 42 68 <p> </p> … … 261 287 {/if} 262 288 263 {if (isset($rate_summary) or isset($rating)) and $display_info. average_rate}264 <tr >289 {if (isset($rate_summary) or isset($rating)) and $display_info.rating_score} 290 <tr id="rating"> 265 291 {if isset($rate_summary)} 266 <td class="label">{' Average rate'|@translate}</td>267 <td class="value" id="ratingSummary">292 <td class="label">{'Rating score'|@translate}</td> 293 <td class="value"> 268 294 {if $rate_summary.count} 269 {assign var='rate_text' value='%.2f (rated %d times)'|@translate }270 {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count) }295 <span id="ratingScore">{$rate_summary.score}</span> 296 <span id="ratingCount">({assign var='rate_text' value='%d rates'|@translate}{$pwg->sprintf($rate_text, $rate_summary.count)})</span> 271 297 {else} 272 {'no rate'|@translate}298 <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span> 273 299 {/if} 274 300 </td> … … 283 309 284 310 <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> 285 <div> 286 {foreach from=$rating.marks item=mark name=rate_loop} 287 {if !$smarty.foreach.rate_loop.first} | {/if} 288 {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} 289 <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}" /> 290 {else} 291 <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}" /> 292 {/if} 293 {/foreach} 294 <script type="text/javascript" src="{$ROOT_URL}themes/default/js/rating.js"></script> 295 <script type="text/javascript"> 296 makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id}, 297 updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), 298 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} ); 299 </script> 300 </div> 311 <div> 312 {foreach from=$rating.marks item=mark name=rate_loop} 313 {if !$smarty.foreach.rate_loop.first} | {/if} 314 315 {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} 316 <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}" /> 317 {else} 318 <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}" /> 319 {/if} 320 321 {/foreach} 322 323 {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 324 {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} 325 326 327 {footer_script} 328 var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[]; 329 _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id}, 330 onSuccess : function(rating) {ldelim} 331 var e = document.getElementById("updateRate"); 332 if (e) e.innerHTML = "{'Update your rating'|@translate|@escape:'javascript'}"; 333 e = document.getElementById("ratingScore"); 334 if (e) e.innerHTML = rating.score; 335 e = document.getElementById("ratingCount"); 336 if (e) e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count); 337 {rdelim}{rdelim} ); 338 {/footer_script} 339 340 </div> 301 341 </form> 302 342 </td>
Note: See TracChangeset
for help on using the changeset viewer.