2021-04-17 22:18:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
<?php if ($zoom == true) {
|
|
|
|
$this->headScript()->appendFile($this->assetUrl('vendor/wheelzoom/wheelzoom.js',
|
|
|
|
'ImageViewer'));
|
|
|
|
} ?>
|
|
|
|
|
|
|
|
<div class="wheelzoom-wrap" style="position:relative;">
|
|
|
|
|
|
|
|
<?php
|
|
|
|
if ($title !== false && $title !== "") {
|
|
|
|
$title = sprintf('<p id="wheelzoom-title">%s</p>', $title);
|
|
|
|
} else {
|
|
|
|
$title = false;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<style>
|
2021-04-18 12:12:26 +02:00
|
|
|
.archive-img {
|
2021-04-17 22:18:36 +02:00
|
|
|
width: <?= $width ?>px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2021-04-18 12:12:26 +02:00
|
|
|
<div class="archive-img">
|
|
|
|
<img id="<?= $id ?>"
|
|
|
|
src="<?= $image ?>"
|
|
|
|
/>
|
|
|
|
<?php if ($zoom == true) { ?>
|
|
|
|
<div
|
|
|
|
style="font-size: 0.75em; color:white; background-color: gray; padding-left: 1em">
|
|
|
|
You can zoom this image
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
2021-04-17 22:18:36 +02:00
|
|
|
|
|
|
|
<?php if ($zoom == true) { ?>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
wheelzoom(document.querySelector('#<?= $id ?>'));
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
</div>
|