Changeset 12321 for extensions/stripped/template
- Timestamp:
- Oct 2, 2011, 10:12:02 PM (13 years ago)
- Location:
- extensions/stripped/template
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/template/footer.tpl
r11833 r12321 33 33 34 34 {if isset($U_ADMIN)} 35 <a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}" >{'Administration'|@translate}</a>35 <a href="{$U_ADMIN}" title="{'available for administrators only'|@translate}" class="uadmin">{'Administration'|@translate}</a> 36 36 {/if} 37 37 -
extensions/stripped/template/index.tpl
r12269 r12321 5 5 </div> 6 6 {if isset($U_EDIT) or isset($U_SLIDESHOW) or !empty($PLUGIN_INDEX_ACTIONS)} 7 <ul class="categoryActions"> 8 {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} 9 {if isset($U_EDIT)} 10 <li><a href="{$U_EDIT}" title="{'edit'|@translate}">{'edit'|@translate}</a></li> 11 {/if} 12 {if isset($U_CADDIE) } 13 <li><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}">{'caddie'|@translate}</a></li> 14 {/if} 15 {if isset($U_SLIDESHOW)} 16 <li><a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li> 17 {/if} 18 </ul> 7 <div class="categoryActionsContainer"> 8 <ul class="categoryActions group1"> 9 {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if} 10 {if isset($U_SLIDESHOW)} 11 <li class="mainAction"><a href="{$U_SLIDESHOW}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li> 12 {/if} 13 {if isset($U_EDIT)} 14 <li class="mainAction"><a href="{$U_EDIT}" title="{'edit'|@translate}">{'edit'|@translate}</a></li> 15 {/if} 16 {if isset($U_CADDIE) } 17 <li class="mainAction"><a href="{$U_CADDIE}" title="{'add to caddie'|@translate}">{'caddie'|@translate}</a></li> 18 {/if} 19 </ul> 20 </div> 19 21 {/if} 20 22 {php} -
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> -
extensions/stripped/template/picture_content.tpl
r12153 r12321 1 1 {php} 2 global $pwg_loaded_plugins, $conf ;2 global $pwg_loaded_plugins, $conf, $stripped; 3 3 $this->assign('HDShadowbox_loaded', isset($pwg_loaded_plugins[ 'HDShadowbox' ])); 4 $config = unserialize( $conf['stripped'] ); 5 $this->assign( 'stripped', $config ); 4 $this->assign( 'stripped', $stripped ); 6 5 {/php} 7 6 {if isset($high)} -
extensions/stripped/template/thumbnails.tpl
r12153 r12321 1 1 {if !empty($thumbnails)} 2 2 {php} 3 global $pwg_loaded_plugins, $conf ;3 global $pwg_loaded_plugins, $conf, $stripped; 4 4 $this->assign('downloadMulti_loaded', isset($pwg_loaded_plugins[ 'download_multi' ])); 5 $config = unserialize( $conf['stripped'] ); 6 $this->assign( 'stripped', $config ); 5 $this->assign( 'stripped', $stripped ); 7 6 {/php} 8 7 <ul class="thumbList">
Note: See TracChangeset
for help on using the changeset viewer.