Changeset 16016 for extensions/gally/gally-default/template/picture.tpl
- Timestamp:
- Jun 24, 2012, 9:26:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gally/gally-default/template/picture.tpl
r12604 r16016 1 1 <!-- **GBL** >PICTURE> --> 2 2 3 {include file=' dialogs.tpl'}3 {include file='infos_errors.tpl'} 4 4 5 5 <div id="content" {if isset($MENUBAR)}class="pictureContent"{/if}> … … 11 11 <div id="theImgHighZoomButton" class="fit" onclick="gallyPP.switchZoomHigh();"></div> 12 12 <div id="theImgHighContainer2"> 13 <img id="theImgHigh" src="" style="display:none;" alt="{$ALT_IMG}" 14 {if isset($COMMENT_IMG)} 15 title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" 16 {/if}> 13 <img id="theImgHigh" src="" style="display:none;" alt="{$ALT_IMG}"> 17 14 </div> 18 15 </div> 19 16 </div> 20 21 17 22 18 {if isset($MENUBAR)} … … 37 33 {/if} 38 34 35 36 39 37 <div class="browsePath"> 40 38 <h2> … … 44 42 <div class="imageNumber">{$PHOTO}</div> 45 43 <h2> </h2> 46 </div> <!-- imageHeaderBar -->44 </div> 47 45 48 46 {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} 49 47 48 {if $DISPLAY_NAV_THUMB} 49 {if isset($previous) } 50 <div id="navThumbPrev"> 51 <table id="navThumbPrevContainer" class="uiImg"><tr><td> 52 <div class="navThumbPrevBg"> </div> 53 <div class="navThumbPrevContent"> 54 <a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> 55 <img src="{$previous.derivatives.square->get_url()}" class="thumbLink" id="linkPrev" alt="{$previous.TITLE}"> 56 </a> 57 </div> 58 </td></tr></table> 59 </div> <!-- navThumbPrev --> 60 {/if} 61 62 {if isset($next) } 63 <div id="navThumbNext"> 64 <table id="navThumbNextContainer" class="uiImg"><tr><td> 65 <div class="navThumbNextBg"> </div> 66 <div class="navThumbNextContent"> 67 <a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> 68 <img src="{$next.derivatives.square->get_url()}" class="thumbLink" id="linkNext" alt="{$next.TITLE}"> 69 </a> 70 </div> 71 </td></tr></table> 72 </div> <!-- navThumbNext --> 73 {/if} 74 {/if} 75 50 76 <div id="imageToolBar"> 51 <div id="imageToolBarContainer" class="uiImg">77 <div id="imageToolBarContainer" class="uiImg"> 52 78 <div class="imageToolBarBg"> </div> 53 79 80 {if count($current.unique_derivatives)>1} 81 <div id="derivativeSwitchBox" class="switchBox"> 82 <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> 83 {foreach from=$current.unique_derivatives item=derivative key=derivative_type} 84 <span class="switchCheck" id="derivativeChecked{$derivative_type}"{if $derivative->get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>✔ </span> 85 <a onclick="gallyPP.changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}', '{$COOKIE_PATH}')"> 86 {$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span> 87 </a><br> 88 {/foreach} 89 {if isset($U_ORIGINAL)} 90 <span class="switchCheck" style="visibility:hidden">✔ </span><a onclick="gallyPP.openDisplayHigh('{$U_ORIGINAL}');">{'Original'|@translate}</a> 91 {/if} 92 </div> 93 {/if} 94 54 95 <div class="randomButtons"> 55 {if isset($U_SLIDESHOW_START) } 56 <a id="icon_start_slideshow" class="button" href="{$U_SLIDESHOW_START}" title="{'Play of slideshow'|@translate}" rel="nofollow"></a> 57 {/if} 58 {if isset($U_SLIDESHOW_STOP) } 59 <a id="icon_stop_slideshow" class="button" href="{$U_SLIDESHOW_STOP}" title="{'Pause of slideshow'|@translate}" rel="nofollow"></a> 60 {/if} 96 97 {if count($current.unique_derivatives)>1} 98 <a id="icon_derivatives" title="{'Photo sizes'|@translate}" rel="nofollow" class="button" ></a> 99 {/if} 100 101 {if isset($U_SLIDESHOW_START)} 102 <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow" id="icon_start_slideshow" class="button" ></a> 103 {/if} 104 61 105 {if isset($U_METADATA)} 62 <a id="icon_metadata" class="button" href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow"></a> 63 {/if} 64 65 {if #displayHighResIcon#=="yes" and isset($high) } 66 <a id="icon_high_res" class="button pointer" onclick="gallyPP.openDisplayHigh('{$high.U_HIGH}');" title="" rel="nofollow" ></a> 67 {/if} 68 69 {if isset($current.U_DOWNLOAD) } 70 <a id="icon_save" class="button" href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}"></a> 106 <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow" id="icon_metadata" class="button" ></a> 107 {/if} 108 109 {if isset($current.U_DOWNLOAD)} 110 <a href="{$current.U_DOWNLOAD}" title="{'Download this file'|@translate}" id="icon_save" class="button" ></a> 71 111 {/if} 72 112 73 113 {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 74 114 75 76 {if isset($favorite) } 77 <a id="icon_{if $favorite.IS_FAVORITE}del_{/if}favorite" class="button" 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}"></a> 78 {/if} 79 {if !empty($U_SET_AS_REPRESENTATIVE) } 80 <a id="icon_representative" class="button" href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}"></a> 81 {/if} 82 {if isset($U_ADMIN) } 83 <a id="icon_preferences" class="button" href="{$U_ADMIN}" title="{'Modify information'|@translate}"></a> 115 {if isset($favorite)} 116 <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}" id="icon_{if $favorite.IS_FAVORITE}del_{/if}favorite" class="button"></a> 117 {/if} 118 {if isset($U_SET_AS_REPRESENTATIVE)} 119 <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" id="icon_representative" class="button" ></a> 120 {/if} 121 {if isset($U_ADMIN)} 122 <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" id="icon_preferences" class="button"></a> 84 123 {/if} 85 124 {if isset($U_CADDIE) }{*caddie management BEGIN*} 86 <script type="text/javascript"> 87 {literal} 88 function addToCadie(aElement, rootUrl, id) 125 {footer_script} 126 {literal}function addToCadie(aElement, rootUrl, id) 89 127 { 90 128 if (aElement.disabled) return; 91 129 aElement.disabled=true; 92 130 var y = new PwgWS(rootUrl); 93 94 131 y.callService( 95 132 "pwg.caddie.add", {image_id: id} , … … 100 137 ); 101 138 }{/literal} 102 </script>103 <a id="icon_caddie" class="button" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}"></a>104 {/if} 105 <script type="text/javascript">106 $('div.randomButtons a.button').addClass('sTipOn Right');107 </script>139 {/footer_script} 140 <a onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'Add to caddie'|@translate}" id="icon_caddie" class="button"></a> 141 {/if}{*caddie management END*} 142 {footer_script} 143 $('div.randomButtons a.button').addClass('sTipOnTop'); 144 {/footer_script} 108 145 </div> 109 146 110 147 {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} 111 148 112 {if $SHOW_PICTURE_NAME_ON_TITLE }113 <div><h2>{$current.TITLE}</h2></div>114 {/if}115 116 149 </div> 117 </div> <!-- imageToolBar --> 118 119 {if $DISPLAY_NAV_THUMB} 120 {if isset($previous) } 121 <div id="navThumbPrev"> 122 <table id="navThumbPrevContainer" class="uiImg"><tr><td> 123 <div class="navThumbPrevBg"> </div> 124 <div class="navThumbPrevContent"> 125 <a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> 126 <img src="{$previous.THUMB_SRC}" class="thumbLink" id="linkPrev" alt="{$previous.TITLE}"> 127 </a> 128 </div> 129 </td></tr></table> 130 </div> <!-- navThumbPrev --> 131 {/if} 132 133 {if isset($next) } 134 <div id="navThumbNext"> 135 <table id="navThumbNextContainer" class="uiImg"><tr><td> 136 <div class="navThumbNextBg"> </div> 137 <div class="navThumbNextContent"> 138 <a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> 139 <img src="{$next.THUMB_SRC}" class="thumbLink" id="linkNext" alt="{$next.TITLE}"> 140 </a> 141 </div> 142 </td></tr></table> 143 </div> <!-- navThumbNext --> 144 {/if} 145 {/if} 150 </div>{*<!-- imageToolBar -->*} 146 151 147 152 <div id="theImage"> … … 153 158 <p> </p> 154 159 {/if} 155 156 {if isset($U_SLIDESHOW_STOP) } 160 {if isset($U_SLIDESHOW_STOP)} 157 161 <p> 158 162 [ <a href="{$U_SLIDESHOW_STOP}">{'stop the slideshow'|@translate}</a> ] … … 201 205 <tr class="emptyrow" style="line-height:0px;"> 202 206 <td colspan="2"> </td> 203 <td width="10px"> </td> 204 <td width="12%"> </td> 205 <td width="18%"> </td> 206 <td width="10px"> </td> 207 <td width="12%"> </td> 208 <td width="18%"> </td> 207 <td class='cTitle'> </td> 208 <td class='cNfo' > </td> 209 <td class='cTitle'> </td> 210 <td class='cNfo' > </td> 209 211 </tr> 210 212 211 213 {if $display_info.author or $display_info.created_on or $display_info.posted_on} 212 214 <tr> 213 {assign var='colspan' value= 8}215 {assign var='colspan' value=6} 214 216 {if $display_info.author} 215 {assign var='colspan' value=`$colspan- 3`}217 {assign var='colspan' value=`$colspan-2`} 216 218 <td class="label">{'Author'|@translate}</td> 217 219 <td class="value" style="min-width:214px;">{if isset($INFO_AUTHOR)}{$INFO_AUTHOR}{else}{'N/A'|@translate}{/if}</td> 218 <td> </td>219 220 {/if} 220 221 221 222 {if $display_info.created_on} 222 {assign var='colspan' value=`$colspan- 3`}223 {assign var='colspan' value=`$colspan-2`} 223 224 <td class="label">{'Created on'|@translate}</td> 224 225 <td class="value">{if isset($INFO_CREATION_DATE)}{$INFO_CREATION_DATE}{else}{'N/A'|@translate}{/if}</td> 225 <td> </td>226 226 {/if} 227 227 … … 241 241 {if $display_info.dimensions or $display_info.file or $display_info.filesize} 242 242 <tr> 243 {assign var='colspan' value= 8}243 {assign var='colspan' value=6} 244 244 245 245 {if $display_info.dimensions} 246 {assign var='colspan' value=`$colspan- 3`}246 {assign var='colspan' value=`$colspan-2`} 247 247 <td class="label">{'Dimensions'|@translate}</td> 248 248 <td class="value">{if isset($INFO_DIMENSIONS)}{$INFO_DIMENSIONS|@replace:"*":"x"}{else}{'N/A'|@translate}{/if}</td> 249 <td> </td>250 249 {/if} 251 250 252 251 {if $display_info.file} 253 {assign var='colspan' value=`$colspan- 3`}252 {assign var='colspan' value=`$colspan-2`} 254 253 <td class="label">{'File'|@translate}</td> 255 254 <td class="value">{$INFO_FILE}</td> 256 <td> </td>257 255 {/if} 258 256 … … 270 268 271 269 {if isset($related_tags) and $display_info.tags} 272 <tr class="emptyrow"><td colspan=" 8"> </td></tr>270 <tr class="emptyrow"><td colspan="6"> </td></tr> 273 271 <tr id="infoTags"> 274 272 <td class="label">{'Tags'|@translate}</td> 275 <td colspan=" 7" class="value">273 <td colspan="5" class="value"> 276 274 {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if} 277 275 <a href="{$tag.URL}">{$tag.name}</a>{/foreach} … … 281 279 282 280 {if isset($related_categories) and $display_info.categories} 283 <tr class="emptyrow"><td colspan=" 8"> </td></tr>281 <tr class="emptyrow"><td colspan="6"> </td></tr> 284 282 <tr id="infoCats"> 285 283 <td class="label">{'Albums'|@translate}</td> 286 <td colspan=" 7" class="value">284 <td colspan="5" class="value"> 287 285 {foreach from=$related_categories item=cat name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if} 288 286 {$cat} … … 291 289 </tr> 292 290 {/if} 293 294 291 {if $display_info.visits} 295 <tr class="emptyrow"><td colspan=" 8"> </td><tr>292 <tr class="emptyrow"><td colspan="6"> </td><tr> 296 293 <tr> 297 294 <td class="label">{'Visits'|@translate}</td> 298 <td colspan="7" class="value">{$INFO_VISITS}</td> 295 <td {if !($display_info.privacy_level and isset($available_permission_levels))}colspan="5"{/if} class="value">{$INFO_VISITS}</td> 296 297 {if $display_info.privacy_level and isset($available_permission_levels)} 298 <td colspan="4" class="label"><a id="iPrivacyLevelLink">{'Who can see this photo?'|@translate}</a> 299 300 <div id="privacyLevelBox" class="switchBox"> 301 {foreach from=$available_permission_levels item=label key=level} 302 <span id="levelCheck{$level}" class="switchCheck" {if $level != $current.level} style="visibility:hidden"{/if}>✔ </span> 303 <a id="switchLevel{$level}" onclick="gallyPP.setPrivacyLevel('{$ROOT_URL}', {$current.id}, {$level})">{$label}</a><br> 304 {/foreach} 305 </div> 306 </td> 307 {/if} 308 299 309 </tr> 300 310 {/if} … … 315 325 <td colspan="2"> </td> 316 326 {/if} 317 <td> </td>318 327 319 328 {if isset($rating)} 320 <td class="label" colspan=" 5">329 <td class="label" colspan="4"> 321 330 <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> 322 331 … … 355 364 </td> 356 365 {else} 357 <td colspan=" 5"> </td>366 <td colspan="4"> </td> 358 367 {/if} 359 </tr>360 {/if}361 362 {if isset($available_permission_levels) and $display_info.privacy_level}363 <tr>364 <td class="label">{'Who can see this photo?'|@translate}:</td>365 <td colspan="4" class="value">366 <script type="text/javascript">367 {literal}function setPrivacyLevel(selectElement, rootUrl, id, level)368 {369 selectElement.disabled = true;370 var y = new PwgWS(rootUrl);371 y.callService(372 "pwg.images.setPrivacyLevel", {image_id: id, level:level} ,373 {374 method: "POST",375 onFailure: function(num, text) { selectElement.disabled = false; alert(num + " " + text); },376 onSuccess: function(result) { selectElement.disabled = false; }377 }378 );379 }{/literal}380 </script>381 <select onchange="setPrivacyLevel(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}, this.options[selectedIndex].value)">382 {foreach from=$available_permission_levels item=label key=level}383 <option label="{$label}" value="{$level}"{if $level == $current.level} selected="selected"{/if}>{$label}</option>384 {/foreach}385 </select>386 </td>387 368 </tr> 388 369 {/if} … … 437 418 {/if} 438 419 <h4>{'Add a comment'|@translate}</h4> 439 <form 420 <form method="post" action="{$comment_add.F_ACTION}" class="filter" id="addComment"> 440 421 <table> 441 422 {if $comment_add.SHOW_AUTHOR} … … 450 431 <tr> 451 432 <td {if $comment_add.SHOW_AUTHOR}colspan="2"{/if}> 452 <input type="hidden" name="key" value="{$comment_add.KEY}" />453 <input class="submit" type="submit" value="{'Submit'|@translate}" />433 <input type="hidden" name="key" value="{$comment_add.KEY}"> 434 <input class="submit" type="submit" value="{'Submit'|@translate}"> 454 435 </td> 455 436 </tr>
Note: See TracChangeset
for help on using the changeset viewer.