Changeset 12321 for extensions/stripped/template/picture.tpl
- Timestamp:
- Oct 2, 2011, 10:12:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/template/picture.tpl
r12153 r12321 24 24 </div> 25 25 <ul class="randomButtons"> 26 {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} 26 <li id="imageToolBar"> 27 {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} 28 </li> 29 {strip}{if isset($U_SLIDESHOW_START) } 30 <li><a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li> 31 {/if}{/strip} 32 {strip}{if isset($U_ADMIN) } 33 <li><a href="{$U_ADMIN}" title="{'Modify information'|@translate}">{'edit'|@translate}</a></li> 34 {/if}{/strip} 35 {strip}{if isset($U_CADDIE)} 36 <li><a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'add to caddie'|@translate}" rel="nofollow">{'caddie'|@translate}</a></li> 37 {/if}{/strip} 27 38 {strip}{if isset($favorite) } 28 39 <li><a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}">{'Favorites'|@translate}</a></li> 40 {/if}{/strip} 41 {strip}{if !empty($U_SET_AS_REPRESENTATIVE) } 42 <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}">{'representative'|@translate}</a></li> 29 43 {/if}{/strip} 30 44 {strip}{if isset($current.U_DOWNLOAD)} 31 45 <li><a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}">{'download'|@translate}</a></li> 32 46 {/if}{/strip} 33 {strip}{if !empty($U_SET_AS_REPRESENTATIVE) } 34 <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}">{'representative'|@translate}</a></li> 35 {/if}{/strip} 36 {strip}{if isset($U_ADMIN) } 37 <li><a href="{$U_ADMIN}" title="{'Modify information'|@translate}">{'edit'|@translate}</a></li> 38 {/if}{/strip} 39 {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} 40 41 {footer_script} 42 {literal}function addToCadie(aElement, rootUrl, id) 43 { 44 if (aElement.disabled) return; 45 aElement.disabled=true; 46 var y = new PwgWS(rootUrl); 47 48 y.callService( 49 "pwg.caddie.add", {image_id: id} , 50 { 51 onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, 52 onSuccess: function(result) { aElement.disabled = false; } 53 } 54 ); 55 }{/literal} 56 {/footer_script} 57 <li><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"> 58 <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'caddie'|@translate}</span> 59 </a></li> 60 {/if}{/strip}{*caddie management END*} 61 {strip}{if isset($U_SLIDESHOW_START) } 62 <li><a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li> 63 {/if}{/strip} 64 <li id="imageToolBar"> 65 {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} 66 </li> 67 <!-- <li class="imageNumber">{$PHOTO}</li>--> 47 {strip}{if isset($PLUGIN_PICTURE_ACTIONS)} 48 <li class="plugin_buttons plugin_buttons_group1">{$PLUGIN_PICTURE_ACTIONS}</li> 49 {/if}{/strip} 50 {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} 51 {footer_script} 52 {literal} 53 function addToCadie(aElement, rootUrl, id) 54 { 55 if (aElement.disabled) return; 56 aElement.disabled=true; 57 var y = new PwgWS(rootUrl); 58 y.callService( 59 "pwg.caddie.add", {image_id: id} , 60 { 61 onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, 62 onSuccess: function(result) { aElement.disabled = false; } 63 } 64 ); 65 } 66 {/literal} 67 {/footer_script} 68 {/if}{/strip} 69 <li class="plugin_buttons plugin_buttons_group2">{*caddie management END*}</li> 70 </ul> 68 71 {php} 69 72 global $pwg_loaded_plugins; … … 71 74 {/php} 72 75 {if ($GMaps_loaded)}<div id="text_gmaps" style="display:none">{'GMap'|@translate}</div>{/if} 73 </ul>74 76 <div style="clear:both;"></div> 75 77 </div> <!-- imageHeaderBar --> … … 166 168 {/if} 167 169 {if (isset($COMMENT_COUNT) and ($COMMENT_COUNT>0)) or isset($comment_add) } 168 <li id="tabT _comments" class="tabTitle" title="{'Add a comment'|@translate}" name="comments">{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</li>170 <li id="tabTcomments" class="tabTitle" title="{'Add a comment'|@translate}" name="comments">{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</li> 169 171 {/if} 170 172 </ul>
Note: See TracChangeset
for help on using the changeset viewer.