Changeset 12534 for extensions
- Timestamp:
- Oct 31, 2011, 3:39:26 PM (13 years ago)
- Location:
- extensions/luciano/template
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/luciano/template/picture.tpl
r12531 r12534 1 1 {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} 2 3 {include file='picture_nav_keys.tpl'|@get_extent:'picture_nav_keys'} 4 2 5 <div id="imageHeaderBar"> 3 6 <div class="browsePath"> … … 13 16 {if !empty($U_SET_AS_REPRESENTATIVE)}<li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}" id="bn-higlight">{'representative'|@translate}</a></li>{/if} 14 17 {if isset($U_ADMIN) }<li><a href="{$U_ADMIN}" title="{'link_info_image'|@translate}" id="bn-edit">{'edit'|@translate}</a></li>{/if} 15 {if isset($U_CADDIE) } 18 {if isset($U_CADDIE) }{*caddie management BEGIN*} 16 19 <script type="text/javascript">{literal}function addToCadie(aElement, rootUrl, id){if (aElement.disabled) return;aElement.disabled=true;var y=new PwgWS(rootUrl);y.callService("pwg.caddie.add",{image_id: id},{onFailure:function(num,text){alert(num+" "+text);document.location=aElement.href;},onSuccess:function(result){aElement.disabled=false;}});}{/literal}</script> 17 20 <li><a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}" id="bn-caddie">{'caddie'|@translate}</a></li> 18 {/if} 21 {/if}{*caddie management END*} 19 22 </ul> 20 23 </div> -
extensions/luciano/template/picture_nav_buttons.tpl
r5921 r12534 1 {* $Id: picture_nav_buttons.tpl 2700 2008-10-10 13:11:31Z rvelices $ *}2 1 <div class="navButtons"> 3 2 … … 51 50 52 51 </div> 53 54 <script type="text/javascript">// <![CDATA[55 {literal}56 function keyboardNavigation(e)57 {58 if(!e) e=window.event;59 if (e.altKey) return true;60 var target = e.target || e.srcElement;61 if (target && target.type) return true; //an input editable element62 var keyCode=e.keyCode || e.which;63 var docElem = document.documentElement;64 switch(keyCode) {65 {/literal}66 {if isset($next)}67 case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&", "&" ); return false; } break;68 {/if}69 {if isset($previous)}70 case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;71 {/if}72 {if isset($first)}73 /*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;74 {/if}75 {if isset($last)}76 /*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;77 {/if}78 {if isset($U_UP) and !isset($slideshow)}79 /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&","&"); return false; } break;80 {/if}81 82 {if isset($slideshow.U_START_PLAY)}83 /*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&","&"); return false; } break;84 {/if}85 {if isset($slideshow.U_STOP_PLAY)}86 /*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&","&"); return false; } break;87 {/if}88 }89 return true;90 }91 document.onkeydown=keyboardNavigation;92 // ]]></script> -
extensions/luciano/template/slideshow.tpl
r5934 r12534 2 2 <div class="imageNumber">{$PHOTO}</div> 3 3 </div> 4 5 {include file='picture_nav_keys.tpl'|@get_extent:'picture_nav_keys'} 6 4 7 <div id="slidshowToolBar">{include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}</div> 5 8 <div id="imageContainer">
Note: See TracChangeset
for help on using the changeset viewer.