PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.0
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/controllers/FrmSimpleBlocksController.php +4 -19 6.35.0 View file →
@@ -6,10 +6,8 @@
6 6 class FrmSimpleBlocksController {
7 7
8 8 /**
9 9 * Enqueue Formidable Simple Blocks' js and CSS for editor in admin.
10 - *
11 - * @return void
12 10 */
13 11 public static function block_editor_assets() {
14 12 $version = FrmAppHelper::plugin_version();
15 13
@@ -15,20 +13,14 @@
15 13
16 14 wp_register_script(
17 15 'formidable-form-selector',
18 16 FrmAppHelper::plugin_url() . '/js/formidable_blocks.js',
19 - array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-block-editor' ),
17 + array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor' ),
20 18 $version,
21 19 true
22 20 );
23 21
24 - $icon = apply_filters( 'frm_icon', 'svg' );
25 - if ( 0 === strpos( $icon, 'data:image/svg+xml;base64,' ) ) {
26 - $icon = ' ' . FrmAppHelper::get_menu_icon_class();
27 - } else {
28 - $icon = str_replace( 'dashicons-', '', $icon );
29 - }
30 -
22 + $icon = str_replace( 'dashicons-', '', apply_filters( 'frm_icon', 'svg' ) );
31 23 $block_name = FrmAppHelper::get_menu_name();
32 24 if ( $block_name === 'Formidable' ) {
33 25 $block_name = 'Formidable Forms';
34 26 }
@@ -91,10 +83,8 @@
91 83 }
92 84
93 85 /**
94 86 * Registers simple form block
95 - *
96 - * @return void
97 87 */
98 88 public static function register_simple_form_block() {
99 89 if ( ! is_callable( 'register_block_type' ) ) {
100 90 return;
@@ -134,9 +124,10 @@
134 124
135 125 /**
136 126 * Renders a form given the specified attributes.
137 127 *
138 - * @param array $attributes
128 + * @param $attributes
129 + *
139 130 * @return string
140 131 */
141 132 public static function simple_form_render( $attributes ) {
142 133 if ( ! isset( $attributes['formId'] ) ) {
@@ -141,14 +132,8 @@
141 132 public static function simple_form_render( $attributes ) {
142 133 if ( ! isset( $attributes['formId'] ) ) {
143 134 return '';
144 135 }
145 -
146 - /**
147 - * @since 5.5.2
148 - * @param array $attributes
149 - */
150 - do_action( 'frm_before_simple_form_render', $attributes );
151 136
152 137 $params = array_filter( $attributes );
153 138 $params['id'] = $params['formId'];
154 139 unset( $params['formId'] );