PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.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 All 138 releases
← All changes | includes/Admin/Form/Template/ContactFormTemplate.php +23 -21 1.43.3.1 View file →
@@ -1,30 +1,32 @@
1 1 <?php
2 2
3 3 namespace BitCode\BitForm\Admin\Form\Template;
4 4
5 -use BitCode\BitForm\Admin\Form\Template\TemplateBase;
6 -
7 5 final class ContactFormTemplate extends TemplateBase
8 6 {
9 - protected $title = "Contact Form";
10 - protected $description = "Desc";
11 - protected $status = "free";
12 - protected $thumbnail = "";
13 - protected $category = "general";
7 + protected $title = 'Contact Form';
8 + protected $description = 'Desc';
9 + protected $status = 'free';
10 + protected $thumbnail = '';
11 + protected $category = 'general';
14 12
15 - protected function layout($newFormId)
16 - {
17 - $layoutData = <<<lay
18 -{"lg":[{"w":3,"h":2,"x":0,"y":0,"i":"bf$newFormId-1","minH":2,"maxH":2,"moved":false,"static":false},{"w":3,"h":2,"x":3,"y":0,"i":"bf$newFormId-2","minH":2,"maxH":2,"moved":false,"static":false},{"w":6,"h":2,"x":0,"y":2,"i":"bf$newFormId-3","minH":2,"maxH":2,"moved":false,"static":false},{"w":6,"h":2,"x":0,"y":4,"i":"bf$newFormId-4","minH":2,"maxH":2,"moved":false,"static":false},{"w":6,"h":3,"x":0,"y":6,"i":"bf$newFormId-5","moved":false,"static":false},{"w":6,"h":2,"x":0,"y":8,"i":"bf$newFormId-6","moved":false,"static":false}],"md":[{"i":"bf$newFormId-1","x":0,"y":0,"w":4,"h":2,"minH":2,"maxH":2},{"i":"bf$newFormId-2","x":0,"y":2,"w":4,"h":2,"minH":2,"maxH":2},{"i":"bf$newFormId-3","x":0,"y":4,"w":4,"h":2,"minH":2,"maxH":2},{"i":"bf$newFormId-4","x":0,"y":6,"w":4,"h":2,"minH":2,"maxH":2},{"i":"bf$newFormId-5","x":0,"y":8,"w":4,"h":3},{"i":"bf$newFormId-6","x":0,"y":10,"w":4,"h":2}],"sm":[{"i":"bf$newFormId-1","x":0,"y":0,"w":2,"h":2,"minH":2,"maxH":2},{"i":"bf$newFormId-2","x":0,"y":2,"w":2,"h":2,"minH":2,"maxH":2},{"i":"bf$newFormId-3","x":0,"y":4,"w":2,"h":2,"minH":2,"maxH":2},{"i":"bf$newFormId-4","x":0,"y":6,"w":2,"h":2,"minH":2,"maxH":2},{"i":"bf$newFormId-5","x":0,"y":8,"w":2,"h":3},{"i":"bf$newFormId-6","x":0,"y":10,"w":2,"h":2}]}
19 -lay;
20 - return $layoutData;
21 - }
13 + protected function layout($newFormId)
14 + {
15 + $layoutData = sprintf(
16 + '{"lg":[{"w":30,"h":40,"x":0,"y":0,"i":"bf%1$s-1","minH":40,"maxH":40,"moved":false,"static":false},{"w":30,"h":40,"x":30,"y":0,"i":"bf%1$s-2","minH":40,"maxH":40,"moved":false,"static":false},{"w":60,"h":40,"x":0,"y":40,"i":"bf%1$s-3","minH":40,"maxH":40,"moved":false,"static":false},{"w":60,"h":40,"x":0,"y":80,"i":"bf%1$s-4","minH":40,"maxH":40,"moved":false,"static":false},{"w":60,"h":60,"x":0,"y":120,"i":"bf%1$s-5","moved":false,"static":false},{"w":60,"h":40,"x":0,"y":160,"i":"bf%1$s-6","moved":false,"static":false}],"md":[{"i":"bf%1$s-1","x":0,"y":0,"w":40,"h":40,"minH":40,"maxH":40},{"i":"bf%1$s-2","x":0,"y":40,"w":4,"h":40,"minH":40,"maxH":40},{"i":"bf%1$s-3","x":0,"y":80,"w":40,"h":40,"minH":40,"maxH":40},{"i":"bf%1$s-4","x":0,"y":120,"w":40,"h":40,"minH":40,"maxH":40},{"i":"bf%1$s-5","x":0,"y":160,"w":40,"h":60},{"i":"bf%1$s-6","x":0,"y":200,"w":40,"h":20}],"sm":[{"i":"bf%1$s-1","x":0,"y":0,"w":20,"h":40,"minH":40,"maxH":40},{"i":"bf%1$s-2","x":0,"y":40,"w":20,"h":40,"minH":40,"maxH":40},{"i":"bf%1$s-3","x":0,"y":80,"w":20,"h":40,"minH":40,"maxH":40},{"i":"bf%1$s-4","x":0,"y":120,"w":20,"h":40,"minH":40,"maxH":40},{"i":"bf%1$s-5","x":0,"y":160,"w":20,"h":60},{"i":"bf%1$s-6","x":0,"y":200,"w":20,"h":40}]}
17 +',
18 + $newFormId
19 + );
20 + return $layoutData;
21 + }
22 22
23 - protected function fields($newFormId)
24 - {
25 - $fieldData = <<<F
26 -{"bf$newFormId-1":{"typ":"text","lbl":"First Name","ph":"Enter Your First Name","valid":{},"err":{}},"bf$newFormId-2":{"typ":"text","lbl":"Last Name","ph":"Enter Your Last Name","valid":{},"err":{}},"bf$newFormId-3":{"typ":"email","lbl":"Email","ph":"example@mail.com","pattern":"^[^\$_bf_\$s@]+@[^\$_bf_\$s@]+\$_bf_\$.[^\$_bf_\$s@]+$","valid":{},"err":{"invalid":{"dflt":"Email is invalid","show":true}}},"bf$newFormId-4":{"typ":"text","lbl":"Subject","ph":"Contact Reason","valid":{},"err":{}},"bf$newFormId-5":{"typ":"textarea","lbl":"Message","ph":"Placeholder Text...","valid":{},"err":{}},"bf$newFormId-6":{"typ":"button","btnTyp":"submit","align":"right","btnSiz":"md","txt":"Submit","valid":{}}}
27 -F;
28 - return $fieldData;
29 - }
23 + protected function fields($newFormId)
24 + {
25 + $fieldData = sprintf(
26 + '{"bf%1$s-1":{"typ":"text","lbl":"First Name","ph":"Enter Your First Name","valid":{},"err":{}},"bf%1$s-2":{"typ":"text","lbl":"Last Name","ph":"Enter Your Last Name","valid":{},"err":{}},"bf%1$s-3":{"typ":"email","lbl":"Email","ph":"example@mail.com","pattern":"^[^\\$_bf_\\$s@]+@[^\\$_bf_\\$s@]+\\$_bf_\\$.[^\\$_bf_\\$s@]+$","valid":{},"err":{"invalid":{"dflt":"Email is invalid","show":true}}},"bf%1$s-4":{"typ":"text","lbl":"Subject","ph":"Contact Reason","valid":{},"err":{}},"bf%1$s-5":{"typ":"textarea","lbl":"Message","ph":"Placeholder Text...","valid":{},"err":{}},"bf%1$s-6":{"typ":"button","btnTyp":"submit","align":"right","btnSiz":"md","txt":"Submit","valid":{}}}
27 +',
28 + $newFormId
29 + );
30 + return $fieldData;
31 + }
30 32 }