Version Description
(6 December 2018) =
Changes:
- Finalized the Gutenberg block. (No longer a Beta feature.)
=
Download this release
Release Info
Developer | krmoorhouse |
Plugin | Ninja Forms – The Easy and Powerful Forms Builder |
Version | 3.3.20 |
Comparing to | |
See all releases |
Code changes from version 3.3.19.1 to 3.3.20
- assets/css/nf-form-block-style.css +4 -0
- assets/js/min/block.js +7 -12
- deprecated/ninja-forms.php +1 -1
- includes/FormBlock.php +1 -1
- ninja-forms.php +2 -2
- readme.txt +12 -6
assets/css/nf-form-block-style.css
CHANGED
@@ -64,6 +64,10 @@
|
|
64 |
right: .45em;
|
65 |
}
|
66 |
|
|
|
|
|
|
|
|
|
67 |
.nf-filter-option-container {
|
68 |
display: none;
|
69 |
position: absolute;
|
64 |
right: .45em;
|
65 |
}
|
66 |
|
67 |
+
.nf-filter-input-el.blocks-select-control__input > .components-base-control__field {
|
68 |
+
margin-bottom: 0;
|
69 |
+
}
|
70 |
+
|
71 |
.nf-filter-option-container {
|
72 |
display: none;
|
73 |
position: absolute;
|
assets/js/min/block.js
CHANGED
@@ -3,13 +3,12 @@
|
|
3 |
*
|
4 |
* A block for embedding a Ninja Forms form into a post/page.
|
5 |
*/
|
6 |
-
( function( blocks, i18n, element, components ) {
|
7 |
|
8 |
var el = element.createElement, // function to create elements
|
9 |
TextControl = components.TextControl,// text input control
|
10 |
-
InspectorControls =
|
11 |
-
|
12 |
-
|
13 |
// register our block
|
14 |
blocks.registerBlockType( 'ninja-forms/form', {
|
15 |
title: 'Ninja Forms',
|
@@ -29,8 +28,6 @@
|
|
29 |
|
30 |
edit: function( props ) {
|
31 |
|
32 |
-
var focus = props.focus;
|
33 |
-
|
34 |
var formID = props.attributes.formID;
|
35 |
|
36 |
var formName = props.attributes.formName;
|
@@ -59,7 +56,7 @@
|
|
59 |
function selectForm( event ) {
|
60 |
//set the attributes from the selected for item
|
61 |
props.setAttributes( {
|
62 |
-
formID: event.target.getAttribute( 'data-formid' ),
|
63 |
formName: event.target.innerText
|
64 |
} );
|
65 |
/**
|
@@ -171,7 +168,6 @@
|
|
171 |
// el( SelectControl, { label: 'Form ID', value: formID, options: ninjaFormsBlock.forms, onChange: onFormChange } )
|
172 |
);
|
173 |
|
174 |
-
|
175 |
/**
|
176 |
* Create the div container, add an overlay so the user can interact
|
177 |
* with the form in Gutenberg, then render the iframe with form
|
@@ -179,7 +175,6 @@
|
|
179 |
if( '' === formID ) {
|
180 |
children.push( el( 'div', {style : {width: '100%'}},
|
181 |
el( 'img', { src: ninjaFormsBlock.block_logo}),
|
182 |
-
// el( SelectControl, { value: formID, options: ninjaFormsBlock.forms, onChange: onFormChange }),
|
183 |
el ( 'div', null, 'Type to Filter'),
|
184 |
inputFilterMain
|
185 |
) );
|
@@ -199,9 +194,8 @@
|
|
199 |
},
|
200 |
|
201 |
save: function( props ) {
|
202 |
-
|
203 |
var formID = props.attributes.formID;
|
204 |
-
|
205 |
if( ! formID ) return '';
|
206 |
/**
|
207 |
* we're essentially just adding a short code, here is where
|
@@ -211,7 +205,7 @@
|
|
211 |
* going forward
|
212 |
*/
|
213 |
var returnHTML = '[ninja_forms id=' + parseInt( formID ) + ']';
|
214 |
-
return el( 'div', null, returnHTML);
|
215 |
}
|
216 |
} );
|
217 |
|
@@ -219,6 +213,7 @@
|
|
219 |
} )(
|
220 |
window.wp.blocks,
|
221 |
window.wp.i18n,
|
|
|
222 |
window.wp.element,
|
223 |
window.wp.components
|
224 |
);
|
3 |
*
|
4 |
* A block for embedding a Ninja Forms form into a post/page.
|
5 |
*/
|
6 |
+
( function( blocks, i18n, editor, element, components ) {
|
7 |
|
8 |
var el = element.createElement, // function to create elements
|
9 |
TextControl = components.TextControl,// text input control
|
10 |
+
InspectorControls = editor.InspectorControls; // sidebar controls
|
11 |
+
|
|
|
12 |
// register our block
|
13 |
blocks.registerBlockType( 'ninja-forms/form', {
|
14 |
title: 'Ninja Forms',
|
28 |
|
29 |
edit: function( props ) {
|
30 |
|
|
|
|
|
31 |
var formID = props.attributes.formID;
|
32 |
|
33 |
var formName = props.attributes.formName;
|
56 |
function selectForm( event ) {
|
57 |
//set the attributes from the selected for item
|
58 |
props.setAttributes( {
|
59 |
+
formID: parseInt( event.target.getAttribute( 'data-formid' ) ),
|
60 |
formName: event.target.innerText
|
61 |
} );
|
62 |
/**
|
168 |
// el( SelectControl, { label: 'Form ID', value: formID, options: ninjaFormsBlock.forms, onChange: onFormChange } )
|
169 |
);
|
170 |
|
|
|
171 |
/**
|
172 |
* Create the div container, add an overlay so the user can interact
|
173 |
* with the form in Gutenberg, then render the iframe with form
|
175 |
if( '' === formID ) {
|
176 |
children.push( el( 'div', {style : {width: '100%'}},
|
177 |
el( 'img', { src: ninjaFormsBlock.block_logo}),
|
|
|
178 |
el ( 'div', null, 'Type to Filter'),
|
179 |
inputFilterMain
|
180 |
) );
|
194 |
},
|
195 |
|
196 |
save: function( props ) {
|
|
|
197 |
var formID = props.attributes.formID;
|
198 |
+
|
199 |
if( ! formID ) return '';
|
200 |
/**
|
201 |
* we're essentially just adding a short code, here is where
|
205 |
* going forward
|
206 |
*/
|
207 |
var returnHTML = '[ninja_forms id=' + parseInt( formID ) + ']';
|
208 |
+
return el( 'div', null, returnHTML );
|
209 |
}
|
210 |
} );
|
211 |
|
213 |
} )(
|
214 |
window.wp.blocks,
|
215 |
window.wp.i18n,
|
216 |
+
window.wp.editor,
|
217 |
window.wp.element,
|
218 |
window.wp.components
|
219 |
);
|
deprecated/ninja-forms.php
CHANGED
@@ -265,7 +265,7 @@ class Ninja_Forms {
|
|
265 |
|
266 |
// Plugin version
|
267 |
if ( ! defined( 'NF_PLUGIN_VERSION' ) )
|
268 |
-
define( 'NF_PLUGIN_VERSION', '3.3.
|
269 |
|
270 |
// Plugin Folder Path
|
271 |
if ( ! defined( 'NF_PLUGIN_DIR' ) )
|
265 |
|
266 |
// Plugin version
|
267 |
if ( ! defined( 'NF_PLUGIN_VERSION' ) )
|
268 |
+
define( 'NF_PLUGIN_VERSION', '3.3.20' );
|
269 |
|
270 |
// Plugin Folder Path
|
271 |
if ( ! defined( 'NF_PLUGIN_DIR' ) )
|
includes/FormBlock.php
CHANGED
@@ -28,7 +28,7 @@ class NF_FormBlock {
|
|
28 |
wp_register_script(
|
29 |
'ninja-forms-block',
|
30 |
$js_dir . 'block.js',
|
31 |
-
array( 'wp-blocks', 'wp-i18n', 'wp-element', 'underscore' )
|
32 |
);
|
33 |
|
34 |
wp_register_style(
|
28 |
wp_register_script(
|
29 |
'ninja-forms-block',
|
30 |
$js_dir . 'block.js',
|
31 |
+
array( 'wp-blocks', 'wp-editor', 'wp-components', 'wp-i18n', 'wp-element', 'underscore' )
|
32 |
);
|
33 |
|
34 |
wp_register_style(
|
ninja-forms.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ninja Forms
|
4 |
Plugin URI: http://ninjaforms.com/
|
5 |
Description: Ninja Forms is a webform builder with unparalleled ease of use and features.
|
6 |
-
Version: 3.3.
|
7 |
Author: The WP Ninjas
|
8 |
Author URI: http://ninjaforms.com
|
9 |
Text Domain: ninja-forms
|
@@ -57,7 +57,7 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
|
|
57 |
/**
|
58 |
* @since 3.0
|
59 |
*/
|
60 |
-
const VERSION = '3.3.
|
61 |
|
62 |
const WP_MIN_VERSION = '4.7';
|
63 |
|
3 |
Plugin Name: Ninja Forms
|
4 |
Plugin URI: http://ninjaforms.com/
|
5 |
Description: Ninja Forms is a webform builder with unparalleled ease of use and features.
|
6 |
+
Version: 3.3.20
|
7 |
Author: The WP Ninjas
|
8 |
Author URI: http://ninjaforms.com
|
9 |
Text Domain: ninja-forms
|
57 |
/**
|
58 |
* @since 3.0
|
59 |
*/
|
60 |
+
const VERSION = '3.3.20';
|
61 |
|
62 |
const WP_MIN_VERSION = '4.7';
|
63 |
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Ninja Forms - The Easy and Powerful Forms Builder ===
|
2 |
Contributors: wpninjasllc, kstover, jameslaws, kbjohnson90, klhall1987, krmoorhouse, jmcelhaney, wpnzach
|
3 |
Tags: form, forms, contact form, custom form, form builder, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation, form administration,
|
4 |
-
Requires at least: 4.
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 3.3.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Drag and drop fields in an intuitive UI to create contact forms, email subscription forms, order forms, payment forms, send emails and more!
|
@@ -111,14 +111,20 @@ For help and video tutorials, please visit our website: [Ninja Forms Documentati
|
|
111 |
|
112 |
== Upgrade Notice ==
|
113 |
|
114 |
-
= 3.3.
|
115 |
|
116 |
-
*
|
117 |
|
118 |
-
*
|
119 |
|
120 |
== Changelog ==
|
121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
= 3.3.19.1 (29 November 2018) =
|
123 |
|
124 |
*Security:*
|
1 |
=== Ninja Forms - The Easy and Powerful Forms Builder ===
|
2 |
Contributors: wpninjasllc, kstover, jameslaws, kbjohnson90, klhall1987, krmoorhouse, jmcelhaney, wpnzach
|
3 |
Tags: form, forms, contact form, custom form, form builder, form creator, form manager, form creation, contact forms, custom forms, forms builder, forms creator, forms manager, forms creation, form administration,
|
4 |
+
Requires at least: 4.8
|
5 |
+
Tested up to: 5.0
|
6 |
+
Stable tag: 3.3.20
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Drag and drop fields in an intuitive UI to create contact forms, email subscription forms, order forms, payment forms, send emails and more!
|
111 |
|
112 |
== Upgrade Notice ==
|
113 |
|
114 |
+
= 3.3.20 (6 December 2018) =
|
115 |
|
116 |
+
*Changes:*
|
117 |
|
118 |
+
* Finalized the Gutenberg block. (No longer a Beta feature.)
|
119 |
|
120 |
== Changelog ==
|
121 |
|
122 |
+
= 3.3.20 (6 December 2018) =
|
123 |
+
|
124 |
+
*Changes:*
|
125 |
+
|
126 |
+
* Finalized the Gutenberg block. (No longer a Beta feature.)
|
127 |
+
|
128 |
= 3.3.19.1 (29 November 2018) =
|
129 |
|
130 |
*Security:*
|