From b5f42b9009e03f432117b10361fb7eb52c7cf81e Mon Sep 17 00:00:00 2001 From: Marc MAURICE Date: Mon, 13 Jun 2011 15:55:10 +0200 Subject: [PATCH] Put viewer template in a separate file --- plugins/viewer/template.php | 111 ++++++++++++++++++++++++++++++++++++++++++ plugins/viewer/view.php | 113 ++----------------------------------------- 2 files changed, 114 insertions(+), 110 deletions(-) create mode 100644 plugins/viewer/template.php diff --git a/plugins/viewer/template.php b/plugins/viewer/template.php new file mode 100644 index 0000000..7da8acd --- /dev/null +++ b/plugins/viewer/template.php @@ -0,0 +1,111 @@ + + + <?php echo IMAGES_DIR.$simpleImagePath ?> + + + + + + + + + + + + +
+^ +
+ + + + + + + + + + + + + diff --git a/plugins/viewer/view.php b/plugins/viewer/view.php index e8400cd..ae5e686 100644 --- a/plugins/viewer/view.php +++ b/plugins/viewer/view.php @@ -76,117 +76,10 @@ $directoryUrl = $bizouRootUrl."index.php".dirname($simpleImagePath); $firefox = strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== false; +///// template starts here ///// header('Content-Type: text/html; charset=utf-8'); header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600)); -?> - - - <?php echo IMAGES_DIR.$simpleImagePath ?> - - - - - - - - - - - - -
-^ -
- - - - - - - - - - +require 'template.php'; - - +?> -- 1.7.10.4