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;
|
|
|
|
}
|
2021-04-19 11:31:24 +02:00
|
|
|
<?php if ($zoom == true) { ?>
|
|
|
|
#<?= $id ?> {
|
|
|
|
cursor:crosshair;
|
|
|
|
}
|
|
|
|
<?php } ?>
|
2021-04-17 22:18:36 +02:00
|
|
|
</style>
|
|
|
|
|
2021-04-18 12:12:26 +02:00
|
|
|
<div class="archive-img">
|
|
|
|
<img id="<?= $id ?>"
|
|
|
|
src="<?= $image ?>"
|
|
|
|
/>
|
|
|
|
</div>
|
2021-04-17 22:18:36 +02:00
|
|
|
|
|
|
|
<?php if ($zoom == true) { ?>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
wheelzoom(document.querySelector('#<?= $id ?>'));
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
</div>
|