aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/picture_nav_buttons.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2010-12-25 12:15:46 +0000
committerrvelices <rv-github@modusoptimus.com>2010-12-25 12:15:46 +0000
commit07866088243c7aec025c51d605a2c1adfe93f407 (patch)
treeda2fdb0cd17af459dc4845583bc50a7833a1b40d /themes/default/template/picture_nav_buttons.tpl
parent2f90ae92512d409e275d786177649c50af5d6e18 (diff)
- simplified inneficient css rules
- template language key - group picture scripts on the bottom of the page git-svn-id: http://piwigo.org/svn/trunk@8299 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--themes/default/template/picture_nav_buttons.tpl19
1 files changed, 9 insertions, 10 deletions
diff --git a/themes/default/template/picture_nav_buttons.tpl b/themes/default/template/picture_nav_buttons.tpl
index 03000676b..1a0e2c315 100644
--- a/themes/default/template/picture_nav_buttons.tpl
+++ b/themes/default/template/picture_nav_buttons.tpl
@@ -84,7 +84,7 @@
{/if}
</div>
-<script type="text/javascript">// <![CDATA[ {literal}
+{footer_script}{literal}
document.onkeydown = function(e)
{
e=e||window.event;
@@ -97,29 +97,28 @@ document.onkeydown = function(e)
switch(keyCode) {
{/literal}
{if isset($next)}
- case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG|@escape:jasvascript}"; break;
+ case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break;
{/if}
{if isset($previous)}
- case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG|@escape:jasvascript}"; break;
+ case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break;
{/if}
{if isset($first)}
- /*Home*/case 36: if (e.ctrlKey)url="{$first.U_IMG|@escape:jasvascript}"; break;
+ /*Home*/case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
{/if}
{if isset($last)}
- /*End*/case 35: if (e.ctrlKey)url="{$last.U_IMG|@escape:jasvascript}"; break;
+ /*End*/case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
{/if}
{if isset($U_UP) and !isset($slideshow)}
- /*Up*/case 38: if (e.ctrlKey)url="{$U_UP|@escape:jasvascript}"; break;
+ /*Up*/case 38: if (e.ctrlKey)url="{$U_UP}"; break;
{/if}
-
{if isset($slideshow.U_START_PLAY)}
- /*Pause*/case 32: url="{$slideshow.U_START_PLAY|@escape:jasvascript}"; break;
+ /*Pause*/case 32: url="{$slideshow.U_START_PLAY}"; break;
{/if}
{if isset($slideshow.U_STOP_PLAY)}
- /*Play*/case 32: url="{$slideshow.U_STOP_PLAY|@escape:jasvascript}"; break;
+ /*Play*/case 32: url="{$slideshow.U_STOP_PLAY}"; break;
{/if}
}
if (url) {ldelim}window.location=url.replace("&amp;","&"); return false;}
return true;
}
-// ]]></script>
+{/footer_script}