Forms by CaptainForm – Form Builder for WordPress - Version 1.7.1

Version Description

(20 September 2016) = * Fix for older PHP versions

Download this release

Release Info

Developer 123contactform
Plugin Icon 128x128 Forms by CaptainForm – Form Builder for WordPress
Version 1.7.1
Comparing to
See all releases

Code changes from version 1.7.0 to 1.7.1

captainform.php CHANGED
@@ -6,7 +6,7 @@ defined('ABSPATH') or die('No direct access!');
6
  Description: CaptainForm is a fully-featured WordPress form plugin created for web designers, developers, and also for non-tech savvy users.
7
  Author: CaptainForm
8
  Author URI: https://profiles.wordpress.org/captainform
9
- Version: 1.7.0
10
  */
11
 
12
  /* * ****************************
6
  Description: CaptainForm is a fully-featured WordPress form plugin created for web designers, developers, and also for non-tech savvy users.
7
  Author: CaptainForm
8
  Author URI: https://profiles.wordpress.org/captainform
9
+ Version: 1.7.1
10
  */
11
 
12
  /* * ****************************
includes/integrations/forge-element.php CHANGED
@@ -1,11 +1,4 @@
1
  <?php
2
- /**
3
- * Created by PhpStorm.
4
- * User: bogdan
5
- * Date: 7/8/16
6
- * Time: 12:05 PM
7
- */
8
-
9
  define('FORGE_ELEMENT_DOMAIN', 'captainform');
10
 
11
  function adding_captainform_forge_element_css() {
@@ -30,15 +23,15 @@ add_filter('forge_elements', 'forge_element_captainform_metadata');
30
  function forge_element_captainform_metadata($data)
31
  {
32
 
33
- $fields = [];
34
 
35
- $selectField = [
36
  'type' => "list",
37
  'name' => "form_id",
38
  'label' => __('Select Form', FORGE_ELEMENT_DOMAIN),
39
  'default' => "none",
40
- 'choices' => ['none' => __('Please select...', FORGE_ELEMENT_DOMAIN)],
41
- ];
42
 
43
  $fields['select'] = $selectField;
44
 
@@ -58,14 +51,14 @@ function forge_element_captainform_metadata($data)
58
  $fields['create'] = get_forge_captainform_button("New Form", admin_url("admin.php?page=CaptainForm-NewForm"), "_captainFormTab");
59
  }
60
 
61
- $data['captainform'] = [
62
  'title' => __('CaptainForm', FORGE_ELEMENT_DOMAIN),
63
  'description' => __('User-friendly form builder', FORGE_ELEMENT_DOMAIN),
64
  'featured' => 50,
65
  'group' => 'forms',
66
  'callback' => 'forge_element_captainform',
67
  'fields' => $fields,
68
- ];
69
 
70
  return $data;
71
  }
@@ -88,14 +81,14 @@ function forge_field_captainform_button($args, $value = '')
88
  function get_forge_captainform_button($text = "null", $url = "null", $target = "_blank")
89
  {
90
 
91
- return [
92
  'type' => "captainform_button",
93
  'name' => "selector",
94
  'default' => "none",
95
  'text' => __($text, FORGE_ELEMENT_DOMAIN),
96
  'url' => $url,
97
  'target' => $target,
98
- ];
99
 
100
  }
101
 
1
  <?php
 
 
 
 
 
 
 
2
  define('FORGE_ELEMENT_DOMAIN', 'captainform');
3
 
4
  function adding_captainform_forge_element_css() {
23
  function forge_element_captainform_metadata($data)
24
  {
25
 
26
+ $fields = array();
27
 
28
+ $selectField = array(
29
  'type' => "list",
30
  'name' => "form_id",
31
  'label' => __('Select Form', FORGE_ELEMENT_DOMAIN),
32
  'default' => "none",
33
+ 'choices' => array('none' => __('Please select...', FORGE_ELEMENT_DOMAIN)),
34
+ );
35
 
36
  $fields['select'] = $selectField;
37
 
51
  $fields['create'] = get_forge_captainform_button("New Form", admin_url("admin.php?page=CaptainForm-NewForm"), "_captainFormTab");
52
  }
53
 
54
+ $data['captainform'] = array(
55
  'title' => __('CaptainForm', FORGE_ELEMENT_DOMAIN),
56
  'description' => __('User-friendly form builder', FORGE_ELEMENT_DOMAIN),
57
  'featured' => 50,
58
  'group' => 'forms',
59
  'callback' => 'forge_element_captainform',
60
  'fields' => $fields,
61
+ );
62
 
63
  return $data;
64
  }
81
  function get_forge_captainform_button($text = "null", $url = "null", $target = "_blank")
82
  {
83
 
84
+ return array(
85
  'type' => "captainform_button",
86
  'name' => "selector",
87
  'default' => "none",
88
  'text' => __($text, FORGE_ELEMENT_DOMAIN),
89
  'url' => $url,
90
  'target' => $target,
91
+ );
92
 
93
  }
94
 
includes/settings.php CHANGED
@@ -11,7 +11,7 @@ global $captainform_plugin_name,
11
  $captainform_widget_text_filter;
12
 
13
  $captainform_plugin_name = 'captainform';
14
- $captainform_plugin_version = "1.7.0";
15
 
16
  //plugin options key name
17
  $captainform_option1 = $captainform_plugin_name . '_installation_id';
11
  $captainform_widget_text_filter;
12
 
13
  $captainform_plugin_name = 'captainform';
14
+ $captainform_plugin_version = "1.7.1";
15
 
16
  //plugin options key name
17
  $captainform_option1 = $captainform_plugin_name . '_installation_id';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: captainform
4
  Tags: CaptainForm, form builder plugin, drag-and-drop, event registration form, order form, paypal form, quiz, survey, popup form, newsletter subscription, contact form, secured forms
5
  Requires at least: 3.9
6
  Tested up to: 4.6
7
- Stable tag: 1.7.0
8
 
9
  User-friendly form builder with advanced features. Build any type of form or survey with drag & drop ease and no add-ons required.
10
 
@@ -92,6 +92,9 @@ We support MasterCard, Visa, PayPal, American Express, JCB, Discover/Novus and D
92
  To downgrade the plugin, click on the Downgrade button under our Pioneer plan and fill out the cancellation form. All premium features will be deactivated, but you can upgrade again at any time by purchasing a new license key.
93
 
94
  == Changelog ==
 
 
 
95
  = 1.7.0 (19 September 2016) =
96
  * Integration between CaptainForm and Forge
97
 
4
  Tags: CaptainForm, form builder plugin, drag-and-drop, event registration form, order form, paypal form, quiz, survey, popup form, newsletter subscription, contact form, secured forms
5
  Requires at least: 3.9
6
  Tested up to: 4.6
7
+ Stable tag: 1.7.1
8
 
9
  User-friendly form builder with advanced features. Build any type of form or survey with drag & drop ease and no add-ons required.
10
 
92
  To downgrade the plugin, click on the Downgrade button under our Pioneer plan and fill out the cancellation form. All premium features will be deactivated, but you can upgrade again at any time by purchasing a new license key.
93
 
94
  == Changelog ==
95
+ = 1.7.1 (20 September 2016) =
96
+ * Fix for older PHP versions
97
+
98
  = 1.7.0 (19 September 2016) =
99
  * Integration between CaptainForm and Forge
100