X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=blobdiff_plain;f=plugins%2Fviewer%2Ftemplate.php;h=fe75c4096c72907eb45982ae7f6a4d5f69f86237;hp=7da8acdc22a4bd51ad6d7fc9be70328fca5c4e0a;hb=6b66fbdda7970103a5286e2dbce92816d763aca9;hpb=4e42aa333de60c15e6b3f9a6bb2a66086d78730f
diff --git a/plugins/viewer/template.php b/plugins/viewer/template.php
index 7da8acd..fe75c40 100644
--- a/plugins/viewer/template.php
+++ b/plugins/viewer/template.php
@@ -1,6 +1,6 @@
-
+ = IMAGES_DIR.$simpleImagePath ?>
-
-
+
+
-
+
@@ -75,9 +75,9 @@ img {
window.onload = function() { // for browsers not supporting link rel=prefetch
var im = new Image();
- im.src = '';
+ im.src = '= $nextImageUrl ?>';
var req = new XMLHttpRequest();
- req.open('GET', '', false);
+ req.open('GET', '= $nextPageUrl ?>', false);
req.send(null);
};
@@ -87,17 +87,17 @@ function keyup(e)
{
switch (e.keyCode) {
case 37: // left
- window.location = "";
+ window.location = "= $prevPageUrl ?>";
break;
case 39: // right
case 32: // space
- window.location = "";
+ window.location = "= $nextPageUrl ?>";
break;
case 38: // up (down is 40)
- window.location = "";
+ window.location = "= $directoryUrl ?>";
break;
case 13: // enter
- window.location = "";
+ window.location = "= $imageUrl ?>";
break;
}
}