PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.9.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.9.1
V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 2.10.2 All 137 releases
bit-form / views / standalone-form.php

standalone-form.php in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 2.9.1, at views/standalone-form.php

75 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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><?= isset($title) ? $title : ''; ?></title>
9 <style>
10 * {
11 padding: 0;
12 margin: 0;
13 box-sizing: border-box;
14 }
15
16 .standalone-form-container {
17 min-height: 100vh;
18 display: flex;
19 justify-content: center;
20 align-items: center;
21 }
22
23 .standalone-form-wrapper {
24 width: 40%;
25 /* Additional styling for the container, if needed */
26 }
27
28 @media (max-width: 575.98px) {
29 .standalone-form-wrapper {
30 width: 100%;
31 }
32 }
33
34 ._frm-bg-b<?= $formID; ?> {
35 width: 100%;
36 }
37 </style>
38 <?php
39 $baseCSSPath = "/form-styles/bitform-{$formID}.css";
40 $customCSSPath = "/form-styles/bitform-custom-{$formID}.css";
41 $standaloneCSSPath = "/form-styles/bitform-standalone-{$formID}.css";
42 ?>
43 <link rel="stylesheet" href="<?= BITFORMS_UPLOAD_BASE_URL . $baseCSSPath ?>" />
44
45 <?php if (file_exists(BITFORMS_CONTENT_DIR . $customCSSPath)) : ?>
46 <link rel="stylesheet" href="<?= BITFORMS_UPLOAD_BASE_URL . $customCSSPath ?>" />
47 <?php endif; ?>
48
49 <?php if (file_exists(BITFORMS_CONTENT_DIR . $standaloneCSSPath)) : ?>
50 <link rel="stylesheet" href="<?= BITFORMS_UPLOAD_BASE_URL . $standaloneCSSPath ?>" />
51 <?php endif; ?>
52
53 <?php if (isset($font) && '' !== $font) : ?>
54 <link rel="preconnect" href="https://fonts.googleapis.com">
55 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
56 <link rel="stylesheet" href="<?= $font ?>" />
57 <?php endif; ?>
58
59 </head>
60
61 <body>
62 <div class="standalone-form-container">
63 <div class="standalone-form-wrapper">
64 <?= $formHTML ?>
65 </div>
66 </div>
67
68 <script>
69 <?= $bfGlobals ?>;
70 </script>
71 <script src="<?= BITFORMS_UPLOAD_BASE_URL ?>/form-scripts/preview-<?= $formID ?>.js"></script>
72 </div>
73 </body>
74
75 </html>