44 lines
766 B
PHTML
44 lines
766 B
PHTML
<div class="pannemmul-wrap" style="position:relative;">
|
|
|
|
<?php
|
|
if ($title !== false && $title !== "") {
|
|
$title = sprintf('<p id="panorama-viewer-title">%s</p>', $title);
|
|
} else {
|
|
$title = false;
|
|
}
|
|
?>
|
|
|
|
<style>
|
|
#<?= $id ?> {
|
|
height: <?= $height ?>px;
|
|
width: <?= $width ?>px;
|
|
}
|
|
</style>
|
|
|
|
<div class="pannellum-wrap">
|
|
<?php if ($media_type == "video") { ?>
|
|
|
|
<iframe
|
|
id="<?= $id ?>"
|
|
src="<?= $url ?>"
|
|
frameborder="0"
|
|
webkitallowfullscreen="true"
|
|
mozallowfullscreen="true"
|
|
allowfullscreen >;
|
|
</iframe>
|
|
|
|
<?php } ?>
|
|
<?php if ($media_type == "audio") { ?>
|
|
|
|
<iframe
|
|
src="<?= $url ?>"
|
|
frameborder="0"
|
|
webkitallowfullscreen="true"
|
|
mozallowfullscreen="true"
|
|
allowfullscreen >;
|
|
</iframe>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|