Don't make gutters and stuff when embedded

master
Skylar Ittner 4 years ago
parent 870d93ffe3
commit b7cb91d4ca

@ -32,9 +32,14 @@ if (isset($_GET["backgroundcolor"]) && !empty($_GET["backgroundcolor"]) && preg_
}
?>
<?php if (!isset($_GET["embed"])) { ?>
<div class="container mt-4">
<div class="row justify-content-center">
<div class="col-12 col-md-8">
<?php } else { ?>
<div class="row justify-content-center">
<div class="col-12">
<?php } ?>
<?php
if (empty($_GET["id"]) || (!Machine::exists($_GET["id"]) && !Machine::serialExists($_GET["id"]))) {
?>
@ -252,9 +257,13 @@ if (isset($_GET["backgroundcolor"]) && !empty($_GET["backgroundcolor"]) && preg_
<?php
}
?>
<?php if (!isset($_GET["embed"])) { ?>
</div>
</div>
</div>
<?php } else { ?></div>
</div>
<?php } ?>
<?php
// Send message to parent frame with our height so they can adjust the iframe

Loading…
Cancel
Save