echo $unique_id; ?> "> <img src="<?php echo $image_url; ?> " class="openseadragon-image tmp-img" alt=""> </div> <script type="text/javascript"> var config = osdSettings({ // shared/openseadragon/settings.js _id: "<?php echo $unique_id; ?> ", prefixUrl: "<?php echo $button_path; ?> " }); var viewer = OpenSeadragon(config); var ts = new OpenSeadragon.LegacyTileSource(<?php echo openseadragon_create_pyramid($image); ?> ); viewer.openTileSource(ts); </script> <?php } ?> </div>
public function openseadragon_pyramid($image, $size) { return openseadragon_create_pyramid($image, $size); }