| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
|
| 4 |
<head> |
| 5 |
<meta charset="UTF-8"> |
| 6 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 |
<title><?php echo isset($title) ? $title : ''; ?></title> |
| 9 |
<style> |
| 10 |
html, |
| 11 |
body { |
| 12 |
min-height: 100%; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
display: flex; |
| 17 |
justify-content: center; |
| 18 |
align-items: center; |
| 19 |
flex-direction: column; |
| 20 |
/* background-color: #f1f1f1; */ |
| 21 |
} |
| 22 |
|
| 23 |
._frm-bg-b<?php echo $formID; |
| 24 |
|
| 25 |
?> { |
| 26 |
width: 600px; |
| 27 |
margin-block: 100px; |
| 28 |
} |
| 29 |
</style> |
| 30 |
<?php |
| 31 |
$formUpdateVersion = get_option('bit-form_form_update_version'); |
| 32 |
?> |
| 33 |
<link rel="stylesheet" |
| 34 |
href="<?php echo BITFORMS_UPLOAD_BASE_URL?>/form-styles/bitform-<?php echo $formID?>.css?ver=<?php echo $formUpdateVersion?>" /> |
| 35 |
<?php |
| 36 |
$customCssSubPath = "/form-styles/bitform-custom-{$formID}.css"; |
| 37 |
?> |
| 38 |
<?php if(file_exists(BITFORMS_CONTENT_DIR . $customCssSubPath)) : ?> |
| 39 |
<link rel="stylesheet" |
| 40 |
href="<?php echo BITFORMS_UPLOAD_BASE_URL . $customCssSubPath ?>?ver=<?php echo $formUpdateVersion?>" /> |
| 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="<?php echo $font?>" /> |
| 47 |
<?php endif; ?> |
| 48 |
|
| 49 |
</head> |
| 50 |
|
| 51 |
<body> |
| 52 |
<?php echo $formHTML?> |
| 53 |
|
| 54 |
<script> |
| 55 |
<?php echo $bfGlobals?>; |
| 56 |
</script> |
| 57 |
<script src="<?php echo BITFORMS_UPLOAD_BASE_URL?>/form-scripts/preview-<?php echo $formID?>.js"></script> |
| 58 |
|
| 59 |
</body> |
| 60 |
|
| 61 |
</html> |