Form Builder | Create Responsive Contact Forms - Version 1.8.4

Version Description

Download this release

Release Info

Developer umarbajwa
Plugin Icon 128x128 Form Builder | Create Responsive Contact Forms
Version 1.8.4
Comparing to
See all releases

Code changes from version 1.8.3 to 1.8.4

admin/assets/css/notification/notification-manager.css CHANGED
@@ -150,10 +150,46 @@ textarea#emailTemplate {
150
  }
151
 
152
  .emailNotSendingInfo {
153
- top: -90px;
154
  font-weight: bold;
155
  left: 600px;
156
- position: relative;
157
  width: 380px;
158
  cursor: pointer;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  }
150
  }
151
 
152
  .emailNotSendingInfo {
153
+
154
  font-weight: bold;
155
  left: 600px;
156
+
157
  width: 380px;
158
  cursor: pointer;
159
+ }
160
+
161
+ #addNewNotificationButton:hover {
162
+ background-color: #f0513c;
163
+ }
164
+ .saveNotificationButton:hover {
165
+ background-color: #f0513c;
166
+ }
167
+
168
+ #addNewNotificationButton {
169
+ text-align: center;
170
+ width: 200px;
171
+ height: 50px;
172
+ line-height: 50px;
173
+ color: #000;
174
+ background-color: #e05038;
175
+ font-weight: bold;
176
+ font-size: 16px;
177
+ }
178
+
179
+ .saveNotificationButton {
180
+ text-align: center !important;
181
+ width: 200px !important;
182
+ height: 50px !important;
183
+ line-height: 50px !important;
184
+ position: relative !important;
185
+ left: 25px !important;
186
+ color: #000 !important;
187
+ background-color: #e05038 !important;
188
+ font-weight: bold !important;
189
+ font-size: 16px !important;
190
+ left-margin: 25px !important;
191
+ }
192
+
193
+ #addNewNotificationButtonCont {
194
+ margin-left: 160px;
195
  }
admin/assets/css/plugin-entrypage/entrypage.css ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wp_smf_delete_img{
2
+ width: 18px;
3
+
4
+ }
5
+ .wp_smf_edit_img{
6
+ width: 40px;
7
+
8
+ }
9
+
10
+ #smf_forms_table{
11
+ width: 97%;
12
+
13
+ border-spacing: 0px;
14
+ }
15
+
16
+
17
+ #f-promotion-list img{
18
+ box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
19
+ -moz-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
20
+ -webkit-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
21
+ background-color: #3f3f3f;
22
+ border: 2px solid #fff;
23
+ max-width: 100%;
24
+ }
25
+
26
+
27
+ #wp_smf_add_new_button { position: relative; left: 50%; }
28
+ .card-recent-forms {
29
+
30
+ box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
31
+ -moz-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
32
+ -webkit-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
33
+ height: 350px;
34
+ padding: 8px;
35
+ padding-top: 5px;
36
+ margin-top: 10px;
37
+
38
+ }
39
+
40
+ .card-recent-entries {
41
+
42
+ box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
43
+ -moz-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
44
+ -webkit-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
45
+ height: 350px;
46
+ padding: 8px;
47
+ padding-top: 5px;
48
+ padding-right: 0px;
49
+ margin-top: 10px;
50
+ overflow: scroll;
51
+
52
+ }
53
+
54
+ @media (min-width: 1200px)
55
+ bootstrap.min.c…esh1&ver=4.8:6
56
+ .col-lg-5 {
57
+ width: 40% !important;
58
+ }
59
+
60
+ .col-lg-5.smuzmain-card { max-width: 40%; }
61
+ .formtitle_link {
62
+ padding-left: 10px;
63
+ }
64
+ table tr.even td{
65
+ background: #f6f6f6;
66
+ background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6f6));
67
+ background: -moz-linear-gradient(top, #f8f8f8, #f6f6f6);
68
+ }
69
+ table tr:last-child td{
70
+ border-bottom: 0;
71
+ }
72
+
73
+ li.even {
74
+ background: #f6f6f6;
75
+ background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6f6));
76
+ background: -moz-linear-gradient(top, #f8f8f8, #f6f6f6);
77
+ }
78
+ li a { cursor: pointer; }
79
+
80
+ .card-recent-entries li {
81
+ padding: 3px;
82
+ }
83
+
84
+ .f-promotion {
85
+ padding-bottom: 10px;
86
+ }
admin/assets/css/style.css CHANGED
@@ -13,7 +13,7 @@ remember to change color #f6f6f6
13
  box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
14
  -moz-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
15
  -webkit-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
16
- background-color: #FFEBD1;
17
 
18
 
19
  }
@@ -83,10 +83,15 @@ remember to change color #f6f6f6
83
 
84
  .mainnavbar {
85
 
86
- background-color: #7F93A5;
87
  border-color: transparent;
88
  border-radius: 0px;
89
  margin-bottom: 0px;
 
 
 
 
 
90
 
91
  }
92
 
@@ -97,9 +102,11 @@ remember to change color #f6f6f6
97
  }
98
  .smuzform-settings {
99
 
100
- background-color: #FFEBD1;
101
  border-color: rgb(250, 235, 204);
102
  padding-right: 0;
 
 
103
 
104
  }
105
 
@@ -112,13 +119,14 @@ remember to change color #f6f6f6
112
 
113
  list-style: none;
114
  margin-top: 15px;
115
-
116
  }
117
 
118
  #fields .field {
119
 
120
  width: 40%;
121
  float: left;
 
122
  }
123
 
124
  .form-group {
@@ -138,9 +146,6 @@ li.selected {
138
 
139
  }
140
 
141
- #noFieldsMessage p:after {
142
- content: "No Fields in the form. You should Add some fields by clicking on the field buttons.";
143
- }
144
 
145
  ul.collection-list {
146
  margin: 0;
@@ -203,13 +208,13 @@ label.required:after {
203
  position: relative;
204
  left: 35%;
205
  color: #000;
206
- background-color: #58927B;
207
  font-weight: bold;
208
  font-size: 16px;
209
  }
210
 
211
  #saveForm:hover {
212
- background-color: #6DA08B;
213
  }
214
 
215
  #serverModalCont {
@@ -275,6 +280,9 @@ input[type=number], input[type=url] {
275
  .headingFieldFeature {
276
  padding: 5px 0px 5px 0 ;
277
  clear: both;
 
 
 
278
  }
279
 
280
  .ruleInlineCont {
@@ -325,8 +333,17 @@ textarea#customHtmlSource, #fieldCssClasses {
325
 
326
  .smuzform-settings .nav-tabs {
327
  margin-top: 15px;
 
 
 
 
 
 
 
 
328
  }
329
 
 
330
  .form-title{
331
  font-weight: bold;
332
  }
@@ -338,4 +355,18 @@ textarea#customHtmlSource, #fieldCssClasses {
338
  }
339
  .loadingSpinner .sk-child:before {
340
  background-color: #ffffff;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  }
13
  box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
14
  -moz-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
15
  -webkit-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
16
+ /**background-color: #FFEBD1;**/
17
 
18
 
19
  }
83
 
84
  .mainnavbar {
85
 
86
+ background-color: #3f3f3f;
87
  border-color: transparent;
88
  border-radius: 0px;
89
  margin-bottom: 0px;
90
+ padding: 5px;
91
+ box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
92
+ -moz-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
93
+ -webkit-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
94
+ border: 1px rgb(221, 221, 221) solid;
95
 
96
  }
97
 
102
  }
103
  .smuzform-settings {
104
 
105
+ background-color: #e7e7e5;
106
  border-color: rgb(250, 235, 204);
107
  padding-right: 0;
108
+ margin: 0;
109
+ padding: 0;
110
 
111
  }
112
 
119
 
120
  list-style: none;
121
  margin-top: 15px;
122
+ margin-left: 0px;
123
  }
124
 
125
  #fields .field {
126
 
127
  width: 40%;
128
  float: left;
129
+ padding-left: 50px;
130
  }
131
 
132
  .form-group {
146
 
147
  }
148
 
 
 
 
149
 
150
  ul.collection-list {
151
  margin: 0;
208
  position: relative;
209
  left: 35%;
210
  color: #000;
211
+ background-color: #e05038;
212
  font-weight: bold;
213
  font-size: 16px;
214
  }
215
 
216
  #saveForm:hover {
217
+ background-color: #f0513c;
218
  }
219
 
220
  #serverModalCont {
280
  .headingFieldFeature {
281
  padding: 5px 0px 5px 0 ;
282
  clear: both;
283
+ -webkit-box-shadow: 0 1px 0 #ccc;
284
+ box-shadow: 0 1px 0 #ccc;
285
+ border: 1px solid grey;
286
  }
287
 
288
  .ruleInlineCont {
333
 
334
  .smuzform-settings .nav-tabs {
335
  margin-top: 15px;
336
+ margin-left: 20px;
337
+ background: none;
338
+ }
339
+
340
+ .smuzform-settings .tab-content {
341
+ margin-left: 20px;
342
+ margin-right: 20px;
343
+ margin-top: 5px;
344
  }
345
 
346
+
347
  .form-title{
348
  font-weight: bold;
349
  }
355
  }
356
  .loadingSpinner .sk-child:before {
357
  background-color: #ffffff;
358
+ }
359
+
360
+ #exportModal { top: 30%; left: 10%; }
361
+ #exportModal .close { color: #e05038; opacity: 0.8; }
362
+ #exportModal .modal-content { border-radius: 0; }
363
+ #exportModal .modal-header {
364
+ border-bottom: 1px solid #e5e5e5;
365
+ background: #3f3f3f;
366
+ color: #fff;
367
+ border-color: transparent;
368
+ box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
369
+ -moz-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
370
+ -webkit-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
371
+ border: 1px rgb(221, 221, 221) solid;
372
  }
admin/assets/css/style/style-manager.css CHANGED
@@ -1,8 +1,8 @@
1
  .smuzform-style-settings {
2
- padding: 0;
 
3
  margin: 0;
4
- margin-top: 30px;
5
- padding-right: 10px;
6
  }
7
 
8
  #formStyleCont input[type="text"], #formStyleCont input[type="number"], #formStyleCont input[type="select"] {
@@ -17,4 +17,13 @@
17
  .smuzform-preview {
18
  background: #fff;
19
  width: 650px;
20
- }
 
 
 
 
 
 
 
 
 
1
  .smuzform-style-settings {
2
+ padding: 10px;
3
+ padding-bottom: 20px;
4
  margin: 0;
5
+ margin-top: 20px;
 
6
  }
7
 
8
  #formStyleCont input[type="text"], #formStyleCont input[type="number"], #formStyleCont input[type="select"] {
17
  .smuzform-preview {
18
  background: #fff;
19
  width: 650px;
20
+ padding-bottom: 10px !important;
21
+ }
22
+
23
+ #inline-preview-cont {
24
+ width: 48%;
25
+ position: fixed;
26
+ padding-bottom: 10px;
27
+ }
28
+
29
+ #formDescription {}
admin/assets/img/paid-version-ad.png ADDED
Binary file
admin/assets/js/notification/notification-manager.js CHANGED
@@ -93,7 +93,6 @@ NotificationUI.Views.AddNew = Backbone.View.extend({
93
 
94
  events: {
95
  'click #addNewNotificationButton': 'addNew',
96
- 'click #saveNotificationButton': 'saveChanges'
97
  },
98
 
99
  addNew: function(e) {
@@ -126,7 +125,8 @@ NotificationUI.Views.AddNew = Backbone.View.extend({
126
  fromText: '',
127
  template: 'Thank you so much for your submission. We\'ll be in touch shortly.',
128
  useHTML: true
129
- },
 
130
  });
131
 
132
  this.collection.add( notification );
@@ -135,26 +135,6 @@ NotificationUI.Views.AddNew = Backbone.View.extend({
135
 
136
  },
137
 
138
- saveChanges: function(e) {
139
-
140
- var old = $(e.currentTarget).text();
141
-
142
- var savingText = 'Saving changes...';
143
-
144
- $(e.currentTarget).text( savingText );
145
-
146
- this.model.set( 'notifications', this.collection.models );
147
-
148
- this.model.save().success( function(response) {
149
-
150
- }).always( function() {
151
-
152
- $(e.currentTarget).text(old);
153
-
154
- });
155
-
156
- },
157
-
158
  render: function() {
159
 
160
  this.$el.html( this.template( {} ) );
@@ -190,6 +170,7 @@ NotificationUI.Views.Notification = Backbone.View.extend({
190
  'change #ruleFieldAction': 'changeRuleFieldAction',
191
  'change #ruleFieldLogicValue': 'changeRuleFieldLogicValue',
192
  'change #ruleFieldOperator': 'changeRuleFieldOperator',
 
193
 
194
  },
195
 
@@ -203,7 +184,7 @@ NotificationUI.Views.Notification = Backbone.View.extend({
203
 
204
  this.model.set( 'extraData', temp );
205
 
206
- console.log( this.model.get( extraData ) );
207
 
208
  },
209
  changeEmailFromText: function(e) {
@@ -264,11 +245,17 @@ NotificationUI.Views.Notification = Backbone.View.extend({
264
 
265
  removeNotification: function(e) {
266
 
267
- if ( ! confirm( 'CONFIRM REMOVE ACTION' ) )
268
  return false;
269
 
270
  this.collection.remove( this.model );
271
 
 
 
 
 
 
 
272
  },
273
 
274
  changeUseHTML: function(e) {
@@ -350,6 +337,26 @@ NotificationUI.Views.Notification = Backbone.View.extend({
350
 
351
  },
352
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
353
  render: function() {
354
 
355
  this.$el.html( this.template( this.model.attributes ) );
@@ -418,6 +425,10 @@ NotificationUI.App = {
418
  collection: NotificationsCol
419
  } );
420
 
 
 
 
 
421
  AddNewButton.render();
422
 
423
  NotificationColView.render();
93
 
94
  events: {
95
  'click #addNewNotificationButton': 'addNew',
 
96
  },
97
 
98
  addNew: function(e) {
125
  fromText: '',
126
  template: 'Thank you so much for your submission. We\'ll be in touch shortly.',
127
  useHTML: true
128
+ }
129
+
130
  });
131
 
132
  this.collection.add( notification );
135
 
136
  },
137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  render: function() {
139
 
140
  this.$el.html( this.template( {} ) );
170
  'change #ruleFieldAction': 'changeRuleFieldAction',
171
  'change #ruleFieldLogicValue': 'changeRuleFieldLogicValue',
172
  'change #ruleFieldOperator': 'changeRuleFieldOperator',
173
+ 'click .saveNotificationButton': 'saveChanges'
174
 
175
  },
176
 
184
 
185
  this.model.set( 'extraData', temp );
186
 
187
+ //console.log( this.model.get( extraData ) );
188
 
189
  },
190
  changeEmailFromText: function(e) {
245
 
246
  removeNotification: function(e) {
247
 
248
+ if ( ! confirm( 'CONFIRM REMOVE ACTION.AFTER YOU CLICK ON "OK" NOTIFICATION WILL BE DELETED PERMANENTLY.' ) )
249
  return false;
250
 
251
  this.collection.remove( this.model );
252
 
253
+ NotificationUI.App.serverModel.set( 'notifications', this.collection.models );
254
+
255
+ NotificationUI.App.serverModel.save().success( function(response) {
256
+ alert( 'Notification Deleted.' );
257
+ });
258
+
259
  },
260
 
261
  changeUseHTML: function(e) {
337
 
338
  },
339
 
340
+ saveChanges: function(e) {
341
+
342
+ var old = $(e.currentTarget).text();
343
+
344
+ var savingText = 'Saving changes...';
345
+
346
+ $(e.currentTarget).text( savingText );
347
+
348
+ NotificationUI.App.serverModel.set( 'notifications', this.collection.models );
349
+
350
+ NotificationUI.App.serverModel.save().success( function(response) {
351
+
352
+ }).always( function() {
353
+
354
+ $(e.currentTarget).text(old);
355
+
356
+ });
357
+
358
+ },
359
+
360
  render: function() {
361
 
362
  this.$el.html( this.template( this.model.attributes ) );
425
  collection: NotificationsCol
426
  } );
427
 
428
+ NotificationUI.App.serverModel = NotificationServerModel;
429
+
430
+
431
+
432
  AddNewButton.render();
433
 
434
  NotificationColView.render();
admin/assets/js/script.js CHANGED
@@ -1396,7 +1396,7 @@ $(document).ready(function() {
1396
 
1397
  collection: smuzform.App.Collections.FieldsCol,
1398
 
1399
- emptyListCaption: '<div id="noFieldsMessage" class="alert alert-warning"><p></p></div>',
1400
 
1401
  reuseModelViews: false,
1402
 
1396
 
1397
  collection: smuzform.App.Collections.FieldsCol,
1398
 
1399
+ emptyListCaption: '<div id="noFieldsMessage" class="alert alert-warning"><p><i class="fa fa-exclamation" aria-hidden="true"></i> No Fields in the form. You should Add some fields by clicking on the field buttons.</p></div>',
1400
 
1401
  reuseModelViews: false,
1402
 
admin/core/class/class-smuzform-admin.php CHANGED
@@ -15,6 +15,10 @@ class SmuzForm_Admin {
15
 
16
  add_action( 'admin_init', array( $this, 'addAssetsStyleManager' ) );
17
 
 
 
 
 
18
  add_action( 'admin_menu', array( $this, 'createMainMenu' ) );
19
 
20
  add_action( 'admin_menu', array( $this, 'createMenu' ) );
@@ -25,6 +29,8 @@ class SmuzForm_Admin {
25
 
26
  add_action( 'admin_menu', array( $this, 'createStyleMenu' ) );
27
 
 
 
28
  add_action( 'init', array( $this, 'registerFormPost' ) );
29
 
30
  add_filter( 'post_row_actions',
@@ -34,6 +40,21 @@ class SmuzForm_Admin {
34
 
35
  }
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  /**
38
  New Menu item with Title $menu_title is added on wp-admin dashboard
39
  **/
@@ -54,6 +75,21 @@ class SmuzForm_Admin {
54
 
55
  }
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  /**
58
  New Menu item with Title $menu_title is added on wp-admin dashboard
59
  **/
@@ -147,11 +183,40 @@ class SmuzForm_Admin {
147
 
148
  if ( $_GET['action'] === 'delete_form' ) {
149
 
 
 
 
150
  wp_delete_post( intval( $_GET['post_id'] ), true );
151
 
152
  }
153
  }
154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  smuzform_admin( 'views/forms-main.php' );
156
 
157
  }
@@ -529,6 +594,31 @@ class SmuzForm_Admin {
529
 
530
  }
531
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
532
  /**
533
  Checks if the admin page is part of forms plugin.
534
  **/
15
 
16
  add_action( 'admin_init', array( $this, 'addAssetsStyleManager' ) );
17
 
18
+ add_action( 'admin_init', array( $this, 'addAssetsToEntryPage' ) );
19
+
20
+ add_action( 'admin_init', array( $this, 'redirectToEntryPage' ) );
21
+
22
  add_action( 'admin_menu', array( $this, 'createMainMenu' ) );
23
 
24
  add_action( 'admin_menu', array( $this, 'createMenu' ) );
29
 
30
  add_action( 'admin_menu', array( $this, 'createStyleMenu' ) );
31
 
32
+ add_action( 'admin_menu', array( $this, 'createAllFormsPage' ) );
33
+
34
  add_action( 'init', array( $this, 'registerFormPost' ) );
35
 
36
  add_filter( 'post_row_actions',
40
 
41
  }
42
 
43
+ /**
44
+ Redirect to admin entry page on plugin activation
45
+ **/
46
+
47
+ function redirectToEntryPage() {
48
+
49
+ if ( get_option( 'smuzform_activated' ) === 'smuzform' ) {
50
+
51
+ delete_option( 'smuzform_activated' );
52
+
53
+ wp_safe_redirect( admin_url( 'admin.php?page=smuz-forms-main' ), 302 );
54
+ }
55
+ }
56
+
57
+
58
  /**
59
  New Menu item with Title $menu_title is added on wp-admin dashboard
60
  **/
75
 
76
  }
77
 
78
+ function createAllFormsPage() {
79
+
80
+ $page_title = 'Form Builder';
81
+
82
+ $menu_title = 'Contact Form';
83
+
84
+ $capability = 'manage_options';
85
+
86
+ $menu_slug = 'smuz-forms-all';
87
+
88
+ $screen_id = add_submenu_page( 'smuzform-main',$page_title, $menu_title, $capability, $menu_slug,
89
+ array( $this, 'allFormsPage' ) );
90
+
91
+ }
92
+
93
  /**
94
  New Menu item with Title $menu_title is added on wp-admin dashboard
95
  **/
183
 
184
  if ( $_GET['action'] === 'delete_form' ) {
185
 
186
+ if ( ! current_user_can( 'manage_options' ) )
187
+ exit( 'permissions error' );
188
+
189
  wp_delete_post( intval( $_GET['post_id'] ), true );
190
 
191
  }
192
  }
193
 
194
+
195
+ smuzform_admin( 'views/plugin-entrypage/page.php' );
196
+
197
+ }
198
+
199
+ /**
200
+ View All Forms created
201
+ **/
202
+ function allFormsPage() {
203
+
204
+ if ( ! class_exists( 'Smuz_Form' ) )
205
+ smuzform_public( 'core/class/class-smuzform-form.php' );
206
+
207
+ if ( isset( $_GET['action'] ) ) {
208
+
209
+ if ( $_GET['action'] === 'delete_form' ) {
210
+
211
+ if ( ! current_user_can( 'manage_options' ) )
212
+ exit( 'permissions error' );
213
+
214
+ wp_delete_post( intval( $_GET['post_id'] ), true );
215
+
216
+ }
217
+ }
218
+
219
+
220
  smuzform_admin( 'views/forms-main.php' );
221
 
222
  }
594
 
595
  }
596
 
597
+ function addAssetsToEntryPage() {
598
+
599
+ if ( ! $this->isSettingsPage( array( 'smuz-forms-main' ) ) )
600
+ return false;
601
+
602
+ //CSS
603
+
604
+ $bootstrap_url = smuzform_admin_asset( 'css/bootstrap.min.css?load=fresh1' );
605
+
606
+ $style_url = smuzform_admin_asset( 'css/style.css' );
607
+
608
+ $entrystyle_url = smuzform_admin_asset( 'css/plugin-entrypage/entrypage.css' );
609
+
610
+
611
+ wp_enqueue_style( 'smuzform-bootstrap', $bootstrap_url );
612
+
613
+ wp_enqueue_style( 'google-font-work-sans', "https://fonts.googleapis.com/css?family=Work+Sans:400,500,600,700,800&amp;subset=latin-ext" );
614
+
615
+ wp_enqueue_style( 'smuzform-main', $style_url );
616
+
617
+
618
+ wp_enqueue_style( 'smuzform-main-entrypage', $entrystyle_url );
619
+
620
+ }
621
+
622
  /**
623
  Checks if the admin page is part of forms plugin.
624
  **/
admin/views/backbone/form-navbar.php CHANGED
@@ -24,7 +24,7 @@
24
  <div class="modal-content">
25
  <div class="modal-header">
26
  <button type="button" class="close" data-dismiss="modal">&times;</button>
27
- <h4 class="modal-title"><?php smuzform_translate_e( 'Export ' ) ?><%= title %></h4>
28
  </div>
29
  <div class="modal-body">
30
  <div class="form-group">
24
  <div class="modal-content">
25
  <div class="modal-header">
26
  <button type="button" class="close" data-dismiss="modal">&times;</button>
27
+ <h4 class="modal-title"><?php smuzform_translate_e( 'Export: ' ) ?><%= title %></h4>
28
  </div>
29
  <div class="modal-body">
30
  <div class="form-group">
admin/views/backbone/form-settings.php CHANGED
@@ -8,7 +8,7 @@
8
  </div>
9
  <div class="form-group">
10
  <label for="formDescription"><?php smuzform_translate_e('Description') ?></label>
11
- <input id="formDescription" type="text" value="<%- description %>" class="form-control" />
12
  </div>
13
 
14
  <div class="form-inline form-group">
@@ -53,7 +53,7 @@
53
  <% if ( confirmationOption === 'redirect' ) { %>
54
  <div class="form-group">
55
 
56
- <input id="formRedirectUrl" type="url" class="form-control" value="<%- redirectUrl %>" />
57
 
58
  </div>
59
  <% } %>
8
  </div>
9
  <div class="form-group">
10
  <label for="formDescription"><?php smuzform_translate_e('Description') ?></label>
11
+ <textarea id="formDescription" class="form-control"><%- description %></textarea>
12
  </div>
13
 
14
  <div class="form-inline form-group">
53
  <% if ( confirmationOption === 'redirect' ) { %>
54
  <div class="form-group">
55
 
56
+ <input id="formRedirectUrl" type="url" class="form-control" value="<%- redirectUrl %>" placeholder="Website URL" />
57
 
58
  </div>
59
  <% } %>
admin/views/entry/edit-entry.php CHANGED
@@ -153,9 +153,9 @@
153
  <h4><?php smuzform_translate_e( "Operating System" ) ?></h4>
154
  <p><strong><?php esc_html_e( ucfirst($userAgent['operating_system']) ) ?></strong></p>
155
 
156
- <h4><?php smuzform_translate_e( "Location" ) ?></h4>
157
  <p><strong id="userIpLocation"></strong></p>
158
- <div id="userIpLocationMap"></div>
159
 
160
  <h4><?php smuzform_translate_e( "Created at" ) ?></h4>
161
  <p><strong><?php esc_html_e( date( 'M jS, Y - g:i a', strtotime( $userInfo->created_at ) ) ) ?></strong></p>
153
  <h4><?php smuzform_translate_e( "Operating System" ) ?></h4>
154
  <p><strong><?php esc_html_e( ucfirst($userAgent['operating_system']) ) ?></strong></p>
155
 
156
+ <!--<h4><?php smuzform_translate_e( "Location" ) ?></h4>
157
  <p><strong id="userIpLocation"></strong></p>
158
+ <div id="userIpLocationMap"></div>-->
159
 
160
  <h4><?php smuzform_translate_e( "Created at" ) ?></h4>
161
  <p><strong><?php esc_html_e( date( 'M jS, Y - g:i a', strtotime( $userInfo->created_at ) ) ) ?></strong></p>
admin/views/notification/backbone/add-new.php CHANGED
@@ -14,7 +14,6 @@
14
 
15
  <div id="addNewNotificationButtonCont">
16
  <a id="addNewNotificationButton" class="button button-primaryNot" role="button">Add New</a>
17
- <a id="saveNotificationButton" class="button button-primaryNot" role="button">Save Changes</a>
18
  </div>
19
 
20
  </div>
14
 
15
  <div id="addNewNotificationButtonCont">
16
  <a id="addNewNotificationButton" class="button button-primaryNot" role="button">Add New</a>
 
17
  </div>
18
 
19
  </div>
admin/views/notification/backbone/collection.php CHANGED
@@ -23,11 +23,11 @@
23
  <p class="description"><?php smuzform_translate_e( 'Receive an email when someone fills your form.' ) ?></p>
24
  </legend>
25
 
26
- <p class='alert alert-info emailNotSendingInfo'><a href='https://kinsta.com/knowledgebase/wordpress-not-sending-emails/' target='_blank'>How to Fix the WordPress Not Sending Emails Issue</a></p>
27
 
 
28
  <fieldset>
29
 
30
- <div class="form-group">
31
 
32
  <label for="notificationLabel"><?php smuzform_translate_e( 'Label' ) ?></label>
33
 
@@ -37,7 +37,11 @@
37
 
38
  </div>
39
 
40
- <div class="form-inline">
 
 
 
 
41
  <div class="form-group">
42
 
43
  <label class="control-label inlineLabel" for="emailSenderName"><?php smuzform_translate_e( 'Sender Name' ) ?></label>
@@ -75,16 +79,12 @@
75
  </div>
76
  </div>
77
 
78
- <div class="form-group">
79
 
80
  <div class="checkbox">
81
  <label><input type="checkbox" id="emailUseHTML" <% if ( extraData.useHTML ) { %> <%= 'checked' %> <% } %> /> <?php smuzform_translate_e( 'Send HTML Emails' ) ?></label>
82
  </div>
83
 
84
- </div>
85
-
86
- <div class="form-group">
87
-
88
  <label for="emailTemplate"><?php smuzform_translate_e( 'Template Editor' ) ?></label>
89
 
90
  <p>
@@ -94,6 +94,8 @@
94
 
95
  </div>
96
 
 
 
97
  <div class="form-group">
98
  <?php include smuzform_admin_view( 'notification/backbone/rule-builder.php' ); ?>
99
  </div>
23
  <p class="description"><?php smuzform_translate_e( 'Receive an email when someone fills your form.' ) ?></p>
24
  </legend>
25
 
 
26
 
27
+
28
  <fieldset>
29
 
30
+ <div class="form-group pull-left">
31
 
32
  <label for="notificationLabel"><?php smuzform_translate_e( 'Label' ) ?></label>
33
 
37
 
38
  </div>
39
 
40
+ <div class="pull-right"><p class='alert alert-info emailNotSendingInfo'><a href='https://kinsta.com/knowledgebase/wordpress-not-sending-emails/' target='_blank'>How to Fix the WordPress Not Sending Emails Issue</a></p></div>
41
+
42
+ <br style="clear: both" />
43
+
44
+ <div class="pull-left">
45
  <div class="form-group">
46
 
47
  <label class="control-label inlineLabel" for="emailSenderName"><?php smuzform_translate_e( 'Sender Name' ) ?></label>
79
  </div>
80
  </div>
81
 
82
+ <div class="form-group pull-right" id="emailRightSidebarCont">
83
 
84
  <div class="checkbox">
85
  <label><input type="checkbox" id="emailUseHTML" <% if ( extraData.useHTML ) { %> <%= 'checked' %> <% } %> /> <?php smuzform_translate_e( 'Send HTML Emails' ) ?></label>
86
  </div>
87
 
 
 
 
 
88
  <label for="emailTemplate"><?php smuzform_translate_e( 'Template Editor' ) ?></label>
89
 
90
  <p>
94
 
95
  </div>
96
 
97
+ <br style="clear: both" />
98
+
99
  <div class="form-group">
100
  <?php include smuzform_admin_view( 'notification/backbone/rule-builder.php' ); ?>
101
  </div>
admin/views/notification/backbone/rule-builder.php CHANGED
@@ -78,4 +78,6 @@
78
 
79
  </div>
80
  </div>
81
- </div>
 
 
78
 
79
  </div>
80
  </div>
81
+ </div>
82
+
83
+ <a class="button button-primaryNot saveNotificationButton" role="button">Save Changes</a>
admin/views/plugin-entrypage/entries-list.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ global $wpdb;
4
+
5
+ $entry_table_name = $wpdb->prefix . SMUZFORM_ENTRY_DATABASE_TABLE_NAME;
6
+
7
+ $query = $wpdb->prepare( "SELECT * FROM {$entry_table_name} ORDER BY created_at DESC LIMIT %d", 10 );
8
+
9
+ $recent_entries = $wpdb->get_results( $query );
10
+
11
+ $even_odd = true;
12
+
13
+
14
+ ?>
15
+
16
+ <ul id="recent-entries-list-l">
17
+
18
+
19
+
20
+ <?php foreach( $recent_entries as $entry ): //loop
21
+ $tmpForm = new SmuzForm_Form( $entry->form_id ); //form class
22
+ if ( $tmpForm->status() === false ) {continue;} //check form status ?>
23
+
24
+ <li id="entry-listuid-<?php echo esc_attr( $entry->id ) ?>" class="<?php if ( $even_odd ) echo 'even'; else echo 'odd'; ?>">
25
+ <a href="<?php echo esc_url( admin_url( 'admin.php?page=smuz-forms-entry&form_id='. $entry->form_id . '&entry_id=' . $entry->id ) ) ?>">
26
+ <strong>
27
+
28
+ [<?php echo esc_html( mb_strimwidth( $tmpForm->getTitle() , 0, 40, '...') ) ?>] Entry ID#<?php echo intval( $entry->id ) ?> created at <?php echo esc_html( date( 'F d', strtotime( $entry->created_at) ) ) ?>
29
+
30
+ </strong>
31
+ </a>
32
+ </li>
33
+
34
+ <?php if ( $even_odd ) $even_odd = false; else $even_odd = true; endforeach; ?>
35
+ </ul>
36
+
37
+ <?php if ( ! $recent_entries ) : ?>
38
+
39
+ <div id="noEntriesMessage" style="text-align: center">
40
+ <h3>
41
+ No Entries to show.
42
+ </h3>
43
+ </div>
44
+
45
+ <?php endif; ?>
admin/views/plugin-entrypage/forms-list.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $forms = array_slice( smuzform_get_forms(), 0, 6 );
2
+ $even_odd = true;
3
+ if ( $forms ): ?>
4
+
5
+ <table border="0" id="smf_forms_table">
6
+
7
+ <tr>
8
+ <th>Title</th>
9
+ <th>Created</th>
10
+ <th>Options</th>
11
+ </tr>
12
+
13
+ <?php ?>
14
+
15
+ <?php foreach ( $forms as $form ): $tmpForm = new SmuzForm_Form( $form->ID ) ?>
16
+
17
+ <tr class='<?php if ( $even_odd ) echo 'even'; else echo 'odd'; ?>'>
18
+
19
+ <td><a class="formtitle_link" href="<?php echo admin_url('admin.php?page=smuz-forms&form_id=' . $form->ID ) ?>"><strong><?php echo mb_strimwidth(get_the_title( $form->ID ), 0, 30, '...') ?></strong></a></td>
20
+
21
+
22
+ <td><?php echo get_the_date( 'l, F j, Y', $form->ID ); ?></td>
23
+ <td class="wp_smf_options_width">
24
+ <a id="slr_edit_form" href="#">
25
+ <img alt="Edit" onclick="window.location='<?php echo admin_url('admin.php?page=smuz-forms&form_id=' . $form->ID ) ?>'" class="wp_smf_edit_img" src="<?php echo smuzform_admin_asset( 'img/wp_smf_edit_form_img.png' ) ?>" />
26
+ </a>/
27
+ <a id="slr_delete_form" href="#">
28
+
29
+ <img alt="Delete" class="wp_smf_delete_img" data-id="<?php echo intval($form->ID) ?>" src="<?php echo smuzform_admin_asset( 'img/wp_smf_delete_form_img.png' ) ?>" />
30
+ </a>
31
+
32
+ </td>
33
+ </tr>
34
+
35
+ <?php if ( $even_odd ) $even_odd = false; else $even_odd = true;
36
+ endforeach; ?>
37
+
38
+ </table>
39
+
40
+ <?php endif; ?>
41
+
42
+ <?php if ( ! $forms ) : ?>
43
+
44
+ <div id="noFormsMessage" style="text-align: center; margin-top: 20%">
45
+ <h3>
46
+ No forms. Click the + <a href="<?php echo admin_url('admin.php?page=smuz-forms&new_post=1') ?>">Add New</a> to create your first form.
47
+ </h3>
48
+ </div>
49
+
50
+ <?php endif; ?>
51
+
52
+ <script>
53
+ jQuery('.wp_smf_delete_img').click(function() {
54
+
55
+ id = jQuery(this).data('id');
56
+
57
+ url = '<?php echo admin_url() ?>' + 'admin.php?page=smuz-forms-main&action=delete_form&post_id=' + id;
58
+
59
+ if ( confirm( 'Are you sure you want to remove this form ? ' ) ) {
60
+
61
+ window.location = url;
62
+
63
+ }
64
+
65
+
66
+ });
67
+ </script>
68
+
69
+ <p class="description" style="position: absolute;bottom: 0px;right: 30px;"><a href="<?php echo admin_url('admin.php?page=smuz-forms-all&src=entrypage') ?>">View all forms</a></p>
admin/views/plugin-entrypage/guides-list.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <ul id="guides-list-l">
2
+
3
+ <li>
4
+ <a href="http://pluginops.com/how-to-add-a-feedback-form-to-your-wordpress-website/" target="_blank">
5
+ How To Add a Feedback Form To Your WordPress Website
6
+ </a>
7
+ </li>
8
+
9
+ </ul>
admin/views/plugin-entrypage/page.php ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="smuzform-cont">
2
+
3
+ <nav class="navbar navbar-inverse mainnavbar">
4
+ <div class="container">
5
+ <div class="navbar-header">
6
+ <a class="navbar-brand" href="<?php echo admin_url( 'admin.php?page=smuz-forms-main' ) ?>">
7
+ <?php smuzform_translate_e( 'Form Builder' ) ?>
8
+ </a>
9
+
10
+ <ul class="nav navbar-nav navbar-right" id="navBarActionsCont"></ul>
11
+
12
+
13
+ </div>
14
+
15
+
16
+ </div>
17
+ </nav>
18
+
19
+ <div class="container">
20
+
21
+ <div class="row">
22
+
23
+ <div class="col-lg-6 all-forms smuzmain-card">
24
+
25
+ <div class="card-recent-forms">
26
+
27
+ <h3 class="heading-recent-forms">Recent Forms
28
+ <input id="wp_smf_add_new_button" class="wp_smf_add_new_button button button-primary" type="button" value="Add New" onclick="window.location = '<?php echo admin_url('admin.php?page=smuz-forms&new_post=1') ?>'"></h3>
29
+
30
+ <div id="forms-list"><?php include smuzform_admin_view( '/plugin-entrypage/forms-list.php' ); ?></div>
31
+
32
+ </div>
33
+
34
+ </div>
35
+
36
+ <div class="col-lg-5 smuzmain-card">
37
+ <div class="card-recent-entries">
38
+
39
+ <h3 class="heading-recent-entries">Recent Entries</h3>
40
+
41
+ <div id="entries-list"><?php include smuzform_admin_view( '/plugin-entrypage/entries-list.php' ); ?></div>
42
+
43
+ </div>
44
+ </div>
45
+
46
+ </div>
47
+
48
+ <div class="row">
49
+
50
+ <div class="col-lg-6 f-promotion smuzmain-card">
51
+
52
+ <div class="card-f-promotion">
53
+ <h3 class="f-promotion-heading"></h3>
54
+
55
+
56
+ <div id="f-promotion-list">
57
+
58
+ <div class="">
59
+ <a href="http://web-settler.com/form-builder/?ref=adminbanner" target="_blank">
60
+ <img src="<?php echo esc_url( smuzform_admin_asset( 'img/paid-version-ad.png' ) ) ?>" alt="promotion of paid version" />
61
+ </a>
62
+ </div>
63
+
64
+ </div>
65
+
66
+ </div>
67
+
68
+ </div>
69
+
70
+ <div class="col-lg-5 f-docs smuzmain-card">
71
+ <div class="card-f-docs">
72
+
73
+ <h3 class="f-docs-heading">Guides & Articles</h3>
74
+
75
+ <div id="f-docs-list"><?php include smuzform_admin_view( '/plugin-entrypage/guides-list.php' ); ?></div>
76
+
77
+ </div>
78
+ </div>
79
+
80
+ </div>
81
+
82
+ <!-- <div class="row">
83
+
84
+ <div class="col-lg-12">
85
+ <h2>Promote Top + Free Add ons</h2>
86
+
87
+ <div class="f-addons-list">
88
+ List of addons
89
+ </div>
90
+
91
+ </div>
92
+
93
+ </div> -->
94
+
95
+ </div>
96
+
97
+ </div>
admin/views/settings-page.php CHANGED
@@ -27,25 +27,25 @@
27
 
28
  <li class="active">
29
  <a data-toggle="tab" href="#tab-fields">
30
- <?php smuzform_translate_e( 'Add Field' ) ?>
31
  </a>
32
  </li>
33
 
34
  <li>
35
  <a data-toggle="tab" href="#tab-field-settings">
36
- <?php smuzform_translate_e( 'Field Settings' ) ?>
37
  </a>
38
  </li>
39
 
40
  <li>
41
  <a data-toggle="tab" href="#tab-form-settings">
42
- <?php smuzform_translate_e( 'Form Settings' ) ?>
43
  </a>
44
  </li>
45
 
46
  </ul>
47
 
48
- <?php include smuzform_admin_view( 'settings-tabs.php' ) ?>
49
 
50
  </div>
51
 
@@ -55,7 +55,7 @@
55
 
56
  <div class="col-md-6 smuzform-preview">
57
 
58
- <?php include smuzform_admin_view( 'settings-preview.php' ) ?>
59
 
60
  </div>
61
 
27
 
28
  <li class="active">
29
  <a data-toggle="tab" href="#tab-fields">
30
+ <?php smuzform_translate_e( 'Add Field' ); ?>
31
  </a>
32
  </li>
33
 
34
  <li>
35
  <a data-toggle="tab" href="#tab-field-settings">
36
+ <?php smuzform_translate_e( 'Field Settings' ); ?>
37
  </a>
38
  </li>
39
 
40
  <li>
41
  <a data-toggle="tab" href="#tab-form-settings">
42
+ <?php smuzform_translate_e( 'Form Settings' ); ?>
43
  </a>
44
  </li>
45
 
46
  </ul>
47
 
48
+ <?php include smuzform_admin_view( 'settings-tabs.php' ); ?>
49
 
50
  </div>
51
 
55
 
56
  <div class="col-md-6 smuzform-preview">
57
 
58
+ <?php include smuzform_admin_view( 'settings-preview.php' ); ?>
59
 
60
  </div>
61
 
admin/views/tab-fields.php CHANGED
@@ -84,7 +84,7 @@
84
  </li>
85
 
86
 
87
- <h4 class="headingFieldFeature"><?php smuzform_translate_e( 'Advanced Fields' ) ?></h4>
88
 
89
  <li class="field name">
90
 
@@ -147,7 +147,7 @@
147
  </li>
148
 
149
 
150
- <a href="http://web-settler.com/form-builder/?ref=sidebanner" target="_blank" style="text-decoration: none; color: #fff;"><h4 class="headingFieldFeature" style="background: #333; color: #fff; padding:10px 5px 10px 5px; text-align: center;"><?php smuzform_translate_e( 'Unlock Premium Elements' ) ?></a></h4>
151
 
152
 
153
  <li class="field likert smuzlocked">
84
  </li>
85
 
86
 
87
+ <h4 class="headingFieldFeature" style="background: #333; color: #fff; padding:10px 5px 10px 5px; text-align: center;"><?php smuzform_translate_e( 'Advanced Fields' ) ?></h4>
88
 
89
  <li class="field name">
90
 
147
  </li>
148
 
149
 
150
+ <a href="http://web-settler.com/form-builder/?ref=unlockfields" target="_blank" style="text-decoration: underline; color: #fff;"><h4 class="headingFieldFeature" style="background: #333; color: #fff; padding:10px 5px 10px 5px; text-align: center;"><?php smuzform_translate_e( 'Unlock Premium Elements' ) ?></a></h4>
151
 
152
 
153
  <li class="field likert smuzlocked">
changes.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ **************
3
+ | Entry Page |
4
+ **************
5
+
6
+ **************
7
+ | Templates |
8
+ **************
9
+
10
+ **************
11
+ | Themes |
12
+ **************
13
+
14
+ **************
15
+ | New Addons |
16
+ **************
17
+
18
+ **************
19
+ | Redesign of Notifications |
20
+ **************
21
+
22
+ Style section redesigned. form preview now move with scroll.
config.php CHANGED
@@ -43,7 +43,7 @@ define( 'SMUZFORM_SHORTCODE', 'sform' );
43
 
44
  define( 'SMUZFORM_UPLOAD_DIR_NAME', 'smuzformfiles-' );
45
 
46
- define( 'SMUZFORM_PLUGIN_VERSION', '1.7' );
47
 
48
  define( 'SMUZFORM_ENTRIES_PER_PAGE', 10 );
49
 
43
 
44
  define( 'SMUZFORM_UPLOAD_DIR_NAME', 'smuzformfiles-' );
45
 
46
+ define( 'SMUZFORM_PLUGIN_VERSION', '2.0' );
47
 
48
  define( 'SMUZFORM_ENTRIES_PER_PAGE', 10 );
49
 
forms.php CHANGED
@@ -5,7 +5,7 @@ Description: Create Resposnive Forms using Drag & Drop Visual Builder.
5
  Author: Web-Settler
6
  Author URI: http://web-settler.com/form-builder/
7
  Plugin URI: http://web-settler.com/form-builder/
8
- Version: 1.8.3
9
  License: GPL V2+
10
  **/
11
 
@@ -69,6 +69,7 @@ function smuzform_create_db_tables() {
69
  update_option( 'smuzform_db_version', '1.0' );
70
  }
71
 
 
72
  /**
73
  Executes WordPress action hooks attached to smuzform_loaded
74
 
@@ -76,4 +77,12 @@ Executes WordPress action hooks attached to smuzform_loaded
76
 
77
  Hook to this function using the plugins_loaded hook.
78
  **/
79
- smuzform_loaded();
 
 
 
 
 
 
 
 
5
  Author: Web-Settler
6
  Author URI: http://web-settler.com/form-builder/
7
  Plugin URI: http://web-settler.com/form-builder/
8
+ Version: 1.8.4
9
  License: GPL V2+
10
  **/
11
 
69
  update_option( 'smuzform_db_version', '1.0' );
70
  }
71
 
72
+
73
  /**
74
  Executes WordPress action hooks attached to smuzform_loaded
75
 
77
 
78
  Hook to this function using the plugins_loaded hook.
79
  **/
80
+ smuzform_loaded();
81
+
82
+ register_activation_hook( __FILE__, 'smuzform_redirect_entrypage_option' );
83
+
84
+ function smuzform_redirect_entrypage_option() {
85
+
86
+ add_option( 'smuzform_activated', 'smuzform' );
87
+
88
+ }
public/core/class/class-smuzform-form.php CHANGED
@@ -6,6 +6,9 @@ class SmuzForm_Form {
6
 
7
  $this->id = $form_id;
8
 
 
 
 
9
  $object = $this->getFormMeta( 'model' );
10
 
11
  $this->model = $object;
@@ -14,6 +17,14 @@ class SmuzForm_Form {
14
 
15
  }
16
 
 
 
 
 
 
 
 
 
17
  function setProperties() {
18
 
19
  $model = $this->getModel();
6
 
7
  $this->id = $form_id;
8
 
9
+ if ( get_post_status( $this->id ) === FALSE )
10
+ return NULL;
11
+
12
  $object = $this->getFormMeta( 'model' );
13
 
14
  $this->model = $object;
17
 
18
  }
19
 
20
+ function status() {
21
+
22
+ if ( get_post_status( $this->id ) == 'publish' )
23
+ return true;
24
+
25
+ return false;
26
+ }
27
+
28
  function setProperties() {
29
 
30
  $model = $this->getModel();
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Form Builder | Create Responsive Contact Forms ===
2
  Contributors: umarbajwa
3
  Requires at least: 3.7
4
- Tested up to: 4.8
5
- Tags: contact form, form builder, contact me, custom contact form, form, custom form
6
- Stable tag: 1.8.3
7
  Donate Link: http://web-settler.com/form-builder/
8
  License: GPL V2 or latest
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
1
  === Form Builder | Create Responsive Contact Forms ===
2
  Contributors: umarbajwa
3
  Requires at least: 3.7
4
+ Tested up to: 4.9
5
+ Tags: contact form, form builder, contact me, custom contact form, form, custom formss
6
+ Stable tag: 1.8.4
7
  Donate Link: http://web-settler.com/form-builder/
8
  License: GPL V2 or latest
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html