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