From d88f3edc0c959509b30b9acee1a89c59ea79e4f8 Mon Sep 17 00:00:00 2001
From: buttle
Date: Mon, 19 Apr 2021 16:28:59 +0200
Subject: [PATCH] updates readme
---
README.md | 4 +++-
view/common/block-layout/imageViewer.phtml | 5 +++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 17dd69a..45026d4 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,8 @@
# ImageViewer media for Omeka S
[ImageViewer] is a module for [Omeka S] that optionally enables [wheelzoom],
-a script for zooming IMG elements with the mousewheel/trackpad.
+a script for zooming IMG elements with the mousewheel/trackpad and [zoom],
+a script to enlarge images on touch, click, or mouseover.
## Install
@@ -18,6 +19,7 @@ The module is released under the [MIT] License.
[arc-hive]: https://arc-hive.zone/
[wheelzoom]: https://github.com/jackmoore/wheelzoom
+[zoom]: https://github.com/jackmoore/zoom
[Omeka S]: https://omeka.org/s
[ImageViewer]: https://git.hangar.org/arcHIVE-tech/ImageViewer
[MIT]: http://opensource.org/licenses/MIT
diff --git a/view/common/block-layout/imageViewer.phtml b/view/common/block-layout/imageViewer.phtml
index 1a719b4..2be22db 100644
--- a/view/common/block-layout/imageViewer.phtml
+++ b/view/common/block-layout/imageViewer.phtml
@@ -8,12 +8,13 @@
if ($zoom_type == "zoom") {
$this->headScript()->appendFile($this->assetUrl('vendor/zoom/jquery.zoom.min.js',
'ImageViewer'));
+ }
+ if ($zoom_type == "zoom" || $zoom_type == "wheelzoom") {
$this->headLink()->appendStylesheet($this->assetUrl('css/zoom.css',
'ImageViewer'));
}
?>
-
%s
', $title);
@@ -29,7 +30,7 @@