Changeset 9675 for extensions/floOS/OS_glass/template/picture.tpl
- Timestamp:
- Mar 14, 2011, 5:12:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/floOS/OS_glass/template/picture.tpl
r9109 r9675 37 37 <div id="imageToolBar"> 38 38 <div class="randomButtons"> 39 {if isset($U_SLIDESHOW_START) } 40 <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> 41 {/if} 42 {if isset($U_METADATA) } 43 <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/metadata.png" class="button" alt="metadata"></a> 44 {/if} 45 {if isset($current.U_DOWNLOAD) } 46 <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@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="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/{if $favorite.IS_FAVORITE}del_favorite{else}favorite{/if}.png" class="button" alt="favorite" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}"></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="{'Modify information'|@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"> 39 {strip}{if isset($U_SLIDESHOW_START)} 40 <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 41 <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span> 42 </a> 43 {/if}{/strip} 44 {strip}{if isset($U_METADATA)} 45 <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 46 <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span> 47 </a> 48 {/if}{/strip} 49 {strip}{if isset($current.U_DOWNLOAD)} 50 <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 51 <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'download'|@translate}</span> 52 </a> 53 {/if}{/strip} 54 {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 55 {strip}{if isset($favorite)} 56 <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"> 57 <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span> 58 </a> 59 {/if}{/strip} 60 {strip}{if isset($U_SET_AS_REPRESENTATIVE)} 61 <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 62 <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span> 63 </a> 64 {/if}{/strip} 65 {strip}{if isset($U_ADMIN)} 66 <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 67 <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'edit'|@translate}</span> 68 </a> 69 {/if}{/strip} 70 {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} 71 {footer_script} 60 72 {literal}function addToCadie(aElement, rootUrl, id) 61 73 { 62 74 if (aElement.disabled) return; 63 aElement.disabled=true; 75 aElement.disabled=true; 64 76 var y = new PwgWS(rootUrl); 65 66 77 y.callService( 67 68 69 70 71 72 78 "pwg.caddie.add", {image_id: id} , 79 { 80 onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, 81 onSuccess: function(result) { aElement.disabled = false; } 82 } 83 ); 73 84 }{/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*} 85 {/footer_script} 86 <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> 87 <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span> 88 </a> 89 {/if}{/strip}{*caddie management END*} 77 90 </div> 78 91 {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} 79 </div> <!-- imageToolBar -->92 </div>{*<!-- imageToolBar -->*} 80 93 81 94 <div id="theImage"> … … 142 155 </div> 143 156 144 <table id="standard" class="infoTable" summary="{'Some info about this picture'|@translate}"> 145 {if $display_info.author} 157 <table id="standard" class="infoTable"> 158 {strip} 159 {if $display_info.author} 146 160 <tr id="Author"> 147 161 <td class="label">{'Author'|@translate}</td> … … 228 242 <tr id="rating"> 229 243 <td class="label"> 230 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this p icture'|@translate}{/if}</span>244 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> 231 245 </td> 232 246 <td class="value"> 233 247 <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> 234 <div> 248 <div> 235 249 {foreach from=$rating.marks item=mark name=rate_loop} 236 {if !$smarty.foreach.rate_loop.first} | {/if}237 250 {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} 238 251 <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> 239 252 {else} 240 253 <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> 241 254 {/if} 242 255 {/foreach} 243 <script type="text/javascript" src="{$ROOT_URL}themes/default/js/rating.js"></script> 244 <script type="text/javascript"> 245 makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id}, 246 updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), 247 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} ); 248 </script> 256 {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 257 {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} 258 {footer_script} 259 var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[]; 260 _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id}, 261 updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"), 262 ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary"){rdelim} ); 263 {/footer_script} 264 {/strip} 249 265 </div> 250 266 </form> … … 253 269 {/if} 254 270 255 {if $display_info.privacy_level and isset($available_permission_levels) 271 {if $display_info.privacy_level and isset($available_permission_levels)} 256 272 <tr id="Privacy"> 257 273 <td class="label">{'Who can see this photo?'|@translate}</td> 258 <td class="value"> 259 <script type="text/javascript"> 274 <td class="value"> 275 {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} 276 {footer_script} 260 277 {literal}function setPrivacyLevel(selectElement, rootUrl, id, level) 261 278 { … … 271 288 ); 272 289 }{/literal} 273 </script> 274 <select onchange="setPrivacyLevel(this, '{$ROOT_URL |@escape:'javascript'}', {$current.id}, this.options[selectedIndex].value)">290 {/footer_script} 291 <select onchange="setPrivacyLevel(this, '{$ROOT_URL}', {$current.id}, this.options[selectedIndex].value)"> 275 292 {foreach from=$available_permission_levels item=label key=level} 276 293 <option label="{$label}" value="{$level}"{if $level == $current.level} selected="selected"{/if}>{$label}</option> … … 279 296 </td></tr> 280 297 {/if} 281 298 {/strip} 282 299 </table> 283 300
Note: See TracChangeset
for help on using the changeset viewer.