From: Marc MAURICE Date: Mon, 13 Jun 2011 13:55:10 +0000 (+0200) Subject: Put viewer template in a separate file X-Git-Tag: v1.5~5 X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=commitdiff_plain;h=b5f42b9009e03f432117b10361fb7eb52c7cf81e Put viewer template in a separate file --- 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'; - - +?>