Don't make gutters and stuff when embedded

This commit is contained in:
Skylar Ittner 2020-04-07 15:36:09 -06:00
parent 870d93ffe3
commit b7cb91d4ca

View File

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