Skip to content

Commit

Permalink
compatibility PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Apr 23, 2024
1 parent ea512cd commit 311624e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions template/picture_nav_buttons.tpl
Expand Up @@ -14,23 +14,23 @@ function keyboardNavigation(e)
case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth ){ldelim}window.location="{$next.U_IMG}".replace( "&", "&" ); return false; } break;
{/if}
{if isset($previous)}
case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;
case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0){ldelim}window.location="{$previous.U_IMG|@escape:javascript}".replace("&","&"); return false; } break;
{/if}
{if isset($first)}
/*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;
/*Home*/case 36: if (e.ctrlKey){ldelim}window.location="{$first.U_IMG|@escape:javascript}".replace("&","&"); return false; } break;
{/if}
{if isset($last)}
/*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:jasvascript}".replace("&","&"); return false; } break;
/*End*/case 35: if (e.ctrlKey){ldelim}window.location="{$last.U_IMG|@escape:javascript}".replace("&","&"); return false; } break;
{/if}
{if isset($U_UP) and !isset($slideshow)}
/*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&","&"); return false; } break;
/*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:javascript}".replace("&","&"); return false; } break;
{/if}
{if isset($slideshow.U_START_PLAY)}
/*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:jasvascript}".replace("&","&"); return false; } break;
/*Pause*/case 32: {ldelim}window.location="{$slideshow.U_START_PLAY|@escape:javascript}".replace("&","&"); return false; } break;
{/if}
{if isset($slideshow.U_STOP_PLAY)}
/*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:jasvascript}".replace("&","&"); return false; } break;
/*Play*/case 32: {ldelim}window.location="{$slideshow.U_STOP_PLAY|@escape:javascript}".replace("&","&"); return false; } break;
{/if}
}
return true;
Expand Down

0 comments on commit 311624e

Please sign in to comment.