From 6b66fbdda7970103a5286e2dbce92816d763aca9 Mon Sep 17 00:00:00 2001 From: Marc MAURICE Date: Sat, 17 Aug 2013 21:01:29 +0200 Subject: [PATCH] Use short tags for php echo --- plugins/_disabled/balanced/before_content.php | 2 +- plugins/tar/after_content.php | 2 +- plugins/viewer/template.php | 26 ++++++++++++------------- template.php | 20 +++++++++---------- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/plugins/_disabled/balanced/before_content.php b/plugins/_disabled/balanced/before_content.php index 63cbb11..2abced6 100644 --- a/plugins/_disabled/balanced/before_content.php +++ b/plugins/_disabled/balanced/before_content.php @@ -1 +1 @@ - + diff --git a/plugins/tar/after_content.php b/plugins/tar/after_content.php index 8629df6..1bc535a 100644 --- a/plugins/tar/after_content.php +++ b/plugins/tar/after_content.php @@ -1,5 +1,5 @@
-">Download all files in this directory +">Download all files in this directory
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 @@ - <?php echo IMAGES_DIR.$simpleImagePath ?> + <?= 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 = ''; var req = new XMLHttpRequest(); - req.open('GET', '', false); + req.open('GET', '', false); req.send(null); }; @@ -87,17 +87,17 @@ function keyup(e) { switch (e.keyCode) { case 37: // left - window.location = ""; + window.location = ""; break; case 39: // right case 32: // space - window.location = ""; + window.location = ""; break; case 38: // up (down is 40) - window.location = ""; + window.location = ""; break; case 13: // enter - window.location = ""; + window.location = ""; break; } } diff --git a/template.php b/template.php index 1508f8b..5a4487e 100644 --- a/template.php +++ b/template.php @@ -1,7 +1,7 @@ - <?php echo $realDir ?> + <?= $realDir ?> - " /> + " /> -
+
^ @@ -61,10 +61,10 @@ a {
-
-
+
">
-
">
-
">
+
">
+
">
@@ -73,14 +73,14 @@ a {
- +
-- 1.7.10.4