| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="UTF-8"> |
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 |
<title><?= isset($title) ? $title : 'Conversational Form'; ?></title> |
| 7 |
<style> |
| 8 |
* { |
| 9 |
padding: 0; |
| 10 |
margin: 0; |
| 11 |
box-sizing: border-box; |
| 12 |
} |
| 13 |
|
| 14 |
body.bit-conversational-form { |
| 15 |
height: 100vh; |
| 16 |
overflow: hidden; |
| 17 |
} |
| 18 |
|
| 19 |
@media (max-width: 575.98px) { |
| 20 |
.standalone-form-wrapper { |
| 21 |
width: 100%; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
</style> |
| 26 |
<?php |
| 27 |
$baseCSSPath = "/form-styles/bitform-{$formID}.css"; |
| 28 |
$baseConversationalCSSPath = "/form-styles/bitform-conversational-{$formID}.css"; |
| 29 |
$customCSSPath = "/form-styles/bitform-custom-{$formID}.css"; |
| 30 |
$standaloneCSSPath = "/form-styles/bitform-standalone-{$formID}.css"; |
| 31 |
?> |
| 32 |
<link rel="stylesheet" href="<?= BITFORMS_UPLOAD_BASE_URL . $baseCSSPath ?>" /> |
| 33 |
<link rel="stylesheet" href="<?= BITFORMS_UPLOAD_BASE_URL . $baseConversationalCSSPath ?>" /> |
| 34 |
|
| 35 |
<?php if (file_exists(BITFORMS_CONTENT_DIR . $customCSSPath)) : ?> |
| 36 |
<link rel="stylesheet" href="<?= BITFORMS_UPLOAD_BASE_URL . $customCSSPath ?>" /> |
| 37 |
<?php endif; ?> |
| 38 |
|
| 39 |
<?php if (file_exists(BITFORMS_CONTENT_DIR . $standaloneCSSPath)) : ?> |
| 40 |
<link rel="stylesheet" href="<?= BITFORMS_UPLOAD_BASE_URL . $standaloneCSSPath ?>" /> |
| 41 |
<?php endif; ?> |
| 42 |
|
| 43 |
<?php if (isset($font) && '' !== $font) : ?> |
| 44 |
<link rel="preconnect" href="https://fonts.googleapis.com"> |
| 45 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 46 |
<link rel="stylesheet" href="<?= $font ?>" /> |
| 47 |
<?php endif; ?> |
| 48 |
|
| 49 |
</head> |
| 50 |
<body class="bit-conversational-form"> |
| 51 |
<?=$formHTML?> |
| 52 |
<script> |
| 53 |
<?= $bfGlobals ?>; |
| 54 |
</script> |
| 55 |
<script src="<?= BITFORMS_UPLOAD_BASE_URL ?>/form-scripts/bitform-conversational-<?= $formID ?>.js"></script> |
| 56 |
</body> |
| 57 |
</html> |