| @@ -79,10 +79,8 @@ | ||
| 79 | 79 | |
| 80 | 80 | FrmFieldsHelper::show_fields( $fields_to_show, $errors, $form, $form_action ); |
| 81 | 81 | }//end if |
| 82 | 82 | |
| 83 | -$frm_settings = FrmAppHelper::get_settings(); | |
| 84 | - | |
| 85 | 83 | if ( FrmAppHelper::is_admin() && ( ! isset( $_GET['action'] ) || 'elementor' !== $_GET['action'] ) ) { |
| 86 | 84 | ?> |
| 87 | 85 | <div class="frm_form_field form-field"> |
| 88 | 86 | <label class="frm_primary_label"><?php esc_html_e( 'Entry Key', 'formidable' ); ?></label> |
| @@ -100,15 +98,15 @@ | ||
| 100 | 98 | do_action( 'frm_entry_form', $form, $form_action, $errors ); |
| 101 | 99 | |
| 102 | 100 | global $frm_vars; |
| 103 | 101 | |
| 104 | -// close open section div | |
| 102 | +// Close open section div | |
| 105 | 103 | if ( ! empty( $frm_vars['div'] ) ) { |
| 106 | 104 | echo "</div>\n"; |
| 107 | 105 | unset( $frm_vars['div'] ); |
| 108 | 106 | } |
| 109 | 107 | |
| 110 | -// close open collapsible toggle div | |
| 108 | +// Close open collapsible toggle div | |
| 111 | 109 | if ( ! empty( $frm_vars['collapse_div'] ) ) { |
| 112 | 110 | echo "</div>\n"; |
| 113 | 111 | unset( $frm_vars['collapse_div'] ); |
| 114 | 112 | } |
| @@ -123,9 +121,9 @@ | ||
| 123 | 121 | |
| 124 | 122 | $copy_values = $values; |
| 125 | 123 | unset( $copy_values['fields'] ); |
| 126 | 124 | |
| 127 | - if ( isset( $form->options['form_class'] ) && strpos( $form->options['form_class'], 'frm_inline_success' ) !== false ) { | |
| 125 | + if ( isset( $form->options['form_class'] ) && str_contains( $form->options['form_class'], 'frm_inline_success' ) ) { | |
| 128 | 126 | ob_start(); |
| 129 | 127 | ob_implicit_flush( false ); |
| 130 | 128 | FrmFormsHelper::get_custom_submit( $copy_values['submit_html'], $form, $submit, $form_action, $copy_values ); |
| 131 | 129 | $clip = ob_get_clean(); |