2021-06-22 11:53:13 +02:00
|
|
|
<div class="sketchfab-wrap" style="position:relative;">
|
2021-06-22 10:19:26 +02:00
|
|
|
|
|
|
|
<?php
|
|
|
|
if ($title !== false && $title !== "") {
|
2021-06-22 11:37:19 +02:00
|
|
|
$title = sprintf('<p id="sketchfab-title">%s</p>', $title);
|
2021-06-22 10:19:26 +02:00
|
|
|
} else {
|
|
|
|
$title = false;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2021-06-22 11:37:19 +02:00
|
|
|
<?= $sketchfab_iframe ?>
|
2021-06-22 10:19:26 +02:00
|
|
|
|
|
|
|
</div>
|
2021-06-22 11:53:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
var sketchfab = $(".sketchfab-wrap").find('iframe');
|
|
|
|
$(sketchfab).prop('width', <?= $width ?>);
|
|
|
|
$(sketchfab).prop('height', <?= $height ?>);
|
|
|
|
});
|
|
|
|
</script>
|