Calculated Fields Form - Version 1.1.93

Version Description

  • Modifies the summary control.
  • Modifies the container fields for accepting 12 columns.
  • Modifies the Autocomplete Places add-on (Platinum version).
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Calculated Fields Form
Version 1.1.93
Comparing to
See all releases

Code changes from version 1.1.92 to 1.1.93

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://cff.dwbooster.com
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 6.0
7
- Stable tag: 1.1.92
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -965,6 +965,12 @@ A: Please, follow the steps below:
965
 
966
  == Changelog ==
967
 
 
 
 
 
 
 
968
  = 1.1.92 =
969
 
970
  * Fixes an issue in the summary field that allowed evaluating scripts.
@@ -1019,8 +1025,4 @@ A: Please, follow the steps below:
1019
  * Modifies the Phone fields to include the country code component.
1020
  * Modifies the module that generates the database structure.
1021
  * Modifies the WooCommerce add-on to allow the buyers to access the products with the form fields pre-filled from the order's history (Developer and Platinum versions)
1022
- * Modifies the CSV Generator add-on to allow selecting the fields to export to the CSV file (Platinum version)
1023
-
1024
- = 1.1.83 =
1025
-
1026
- * Modifies the fields validation module.
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 6.0
7
+ Stable tag: 1.1.93
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
965
 
966
  == Changelog ==
967
 
968
+ = 1.1.93 =
969
+
970
+ * Modifies the summary control.
971
+ * Modifies the container fields for accepting 12 columns.
972
+ * Modifies the Autocomplete Places add-on (Platinum version).
973
+
974
  = 1.1.92 =
975
 
976
  * Fixes an issue in the summary field that allowed evaluating scripts.
1025
  * Modifies the Phone fields to include the country code component.
1026
  * Modifies the module that generates the database structure.
1027
  * Modifies the WooCommerce add-on to allow the buyers to access the products with the form fields pre-filled from the order's history (Developer and Platinum versions)
1028
+ * Modifies the CSV Generator add-on to allow selecting the fields to export to the CSV file (Platinum version)
 
 
 
 
changelog.txt CHANGED
@@ -1,5 +1,11 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
3
  = 1.1.92 =
4
 
5
  * Fixes an issue in the summary field that allowed evaluating scripts.
1
  == Changelog ==
2
 
3
+ = 1.1.93 =
4
+
5
+ * Modifies the summary control.
6
+ * Modifies the container fields for accepting 12 columns.
7
+ * Modifies the Autocomplete Places add-on (Platinum version).
8
+
9
  = 1.1.92 =
10
 
11
  * Fixes an issue in the summary field that allowed evaluating scripts.
cp_calculatedfieldsf_free.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
- Version: 1.1.92
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
@@ -16,7 +16,7 @@ if(!defined('WP_DEBUG') || true != WP_DEBUG)
16
  }
17
 
18
  // Defining main constants
19
- define('CP_CALCULATEDFIELDSF_VERSION', '1.1.92' );
20
  define('CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
21
  define('CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
22
  define('CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
+ Version: 1.1.93
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
16
  }
17
 
18
  // Defining main constants
19
+ define('CP_CALCULATEDFIELDSF_VERSION', '1.1.93' );
20
  define('CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
21
  define('CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
22
  define('CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
css/style.css CHANGED
@@ -163,7 +163,7 @@
163
  /* COLUMNS STICKERS */
164
  #fbuilder .sticker{display:inline-block;position:absolute;right:5px;top:5px;}
165
  #fbuilder fieldset.fcontainer>.sticker{top:-5px;}
166
- #fbuilder .sticker i{display:inline-block;height:15px;background:#DAEDFA;border:1px solid #aed0ea;margin-left:2px;}
167
  #fbuilder .sticker i.sticker-1{display:none;}
168
  #fbuilder .sticker i.sticker-2{width:32px;}
169
  #fbuilder .sticker i.sticker-3{width:21px;}
163
  /* COLUMNS STICKERS */
164
  #fbuilder .sticker{display:inline-block;position:absolute;right:5px;top:5px;}
165
  #fbuilder fieldset.fcontainer>.sticker{top:-5px;}
166
+ #fbuilder .sticker i{display:inline-block;height:15px;background:#DAEDFA;border:1px solid #aed0ea;margin-left:3px;min-width:10px;}
167
  #fbuilder .sticker i.sticker-1{display:none;}
168
  #fbuilder .sticker i.sticker-2{width:32px;}
169
  #fbuilder .sticker i.sticker-3{width:21px;}
css/stylepublic.css CHANGED
@@ -42,11 +42,25 @@
42
  #fbuilder .fields.column3{float:left;width:33.3%;clear:none;}
43
  #fbuilder .fields.column4{float:left;width:24.9%;clear:none;}
44
  #fbuilder .fields.column5{float:left;width:19.9%;clear:none;}
 
 
 
 
 
 
 
45
 
46
  *[dir="rtl"] #fbuilder .fields.column2,
47
  *[dir="rtl"] #fbuilder .fields.column3,
48
  *[dir="rtl"] #fbuilder .fields.column4,
49
- *[dir="rtl"] #fbuilder .fields.column5{float:right;}
 
 
 
 
 
 
 
50
  }
51
 
52
  /* NEW COLUMNS SYSTEM */
42
  #fbuilder .fields.column3{float:left;width:33.3%;clear:none;}
43
  #fbuilder .fields.column4{float:left;width:24.9%;clear:none;}
44
  #fbuilder .fields.column5{float:left;width:19.9%;clear:none;}
45
+ #fbuilder .fields.column6{float:left;width:16.6%;clear:none;}
46
+ #fbuilder .fields.column7{float:left;width:14.28%;clear:none;}
47
+ #fbuilder .fields.column8{float:left;width:12.5%;clear:none;}
48
+ #fbuilder .fields.column9{float:left;width:11.11%;clear:none;}
49
+ #fbuilder .fields.column10{float:left;width:10%;clear:none;}
50
+ #fbuilder .fields.column11{float:left;width:9.09%;clear:none;}
51
+ #fbuilder .fields.column12{float:left;width:8.33%;clear:none;}
52
 
53
  *[dir="rtl"] #fbuilder .fields.column2,
54
  *[dir="rtl"] #fbuilder .fields.column3,
55
  *[dir="rtl"] #fbuilder .fields.column4,
56
+ *[dir="rtl"] #fbuilder .fields.column5,
57
+ *[dir="rtl"] #fbuilder .fields.column6,
58
+ *[dir="rtl"] #fbuilder .fields.column7,
59
+ *[dir="rtl"] #fbuilder .fields.column8,
60
+ *[dir="rtl"] #fbuilder .fields.column9,
61
+ *[dir="rtl"] #fbuilder .fields.column10,
62
+ *[dir="rtl"] #fbuilder .fields.column11,
63
+ *[dir="rtl"] #fbuilder .fields.column12{float:right;}
64
  }
65
 
66
  /* NEW COLUMNS SYSTEM */
js/fbuilder-pro-public.jquery.js CHANGED
@@ -1,4 +1,4 @@
1
- $.fbuilder['version'] = '1.1.92';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
1
+ $.fbuilder['version'] = '1.1.93';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
js/fields-admin/28_fbuilder.fcontainer.js CHANGED
@@ -18,11 +18,10 @@
18
  showUserhelp:function(){ return ''; },
19
  showSpecialDataInstance: function()
20
  {
21
- var columns = [1,2,3,4],
22
- cStr = '';
23
- for( var i = 0, h = columns.length; i < h; i++ )
24
  {
25
- cStr += '<option value="'+columns[ i ]+'" '+( ( this.columns == columns[ i ] ) ? 'SELECTED' : '' )+'>'+columns[ i ]+' column'+( ( i ) ? 's' : '' )+'</option>';
26
  }
27
  return '<div><label>Columns</label><select name="sColumns" id="sColumns">' + cStr + '</select> <input type="button" class="eq_btn button-secondary" onclick="window.open(\'https://cff.dwbooster.com/documentation#container-fields\');" value="?" title="Tutorial"><div class="clearer"><span class="uh">Shown in columns the fields into the container.</span></div></div>'+
28
  '<div><label><input name="sRearrange" id="sRearrange" type="checkbox" '+((this.rearrange) ? 'CHECKED' : '')+'> Rearrange</label> <span class="uh">Rearrange the fields in the container.</span></div>';
18
  showUserhelp:function(){ return ''; },
19
  showSpecialDataInstance: function()
20
  {
21
+ var cStr = '';
22
+ for( var i = 0, h = 12; i < h; i++ )
 
23
  {
24
+ cStr += '<option value="'+(i+1)+'" '+( ( this.columns == (i+1) ) ? 'SELECTED' : '' )+'>'+(i+1)+' column'+( ( i ) ? 's' : '' )+'</option>';
25
  }
26
  return '<div><label>Columns</label><select name="sColumns" id="sColumns">' + cStr + '</select> <input type="button" class="eq_btn button-secondary" onclick="window.open(\'https://cff.dwbooster.com/documentation#container-fields\');" value="?" title="Tutorial"><div class="clearer"><span class="uh">Shown in columns the fields into the container.</span></div></div>'+
27
  '<div><label><input name="sRearrange" id="sRearrange" type="checkbox" '+((this.rearrange) ? 'CHECKED' : '')+'> Rearrange</label> <span class="uh">Rearrange the fields in the container.</span></div>';
js/fields-public/16_fbuilder.fsummary.js CHANGED
@@ -128,7 +128,10 @@
128
  );
129
  v = v.join(', ');
130
  tt.find('.cff-summary-title')[(/^\s*$/.test(t)) ? 'hide' : 'show']().html(t);
131
- tt.find('.cff-summary-value').text(v);
 
 
 
132
 
133
  if(e.hasClass('ignore') || (this.exclude_empty && v == ''))
134
  {
128
  );
129
  v = v.join(', ');
130
  tt.find('.cff-summary-title')[(/^\s*$/.test(t)) ? 'hide' : 'show']().html(t);
131
+
132
+ var tmp = $('<div></div>').html(v);
133
+ tmp.find('script').remove();
134
+ tt.find('.cff-summary-value').html(tmp.html().replace(/\s(on[a-z]*\s*=)/gi, "_$1"));
135
 
136
  if(e.hasClass('ignore') || (this.exclude_empty && v == ''))
137
  {