From 6c5ace3e9963c74cc144f78ad18250a7c89716d0 Mon Sep 17 00:00:00 2001 From: Nico Mollet Date: Tue, 26 Oct 2021 14:17:14 +0200 Subject: [PATCH] Fix array check --- inc/plugins/gravityforms.php | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/inc/plugins/gravityforms.php b/inc/plugins/gravityforms.php index 0fe70a2..238e24c 100644 --- a/inc/plugins/gravityforms.php +++ b/inc/plugins/gravityforms.php @@ -86,18 +86,22 @@ function stormbringer_gform_previous_button($button, $form) //This filter is executed when the form is displayed and can be used to completely change //the form tag (i.e.
). -function stormbringer_gform_form_tag($form_tag, $form) -{ - $class = "form "; - if ($form["labelPlacement"] == "right_label") $class .= "form-horizontal"; - if ($form["labelPlacement"] == "top_label") $class .= "form-vertical"; - if ($form["labelPlacement"] == "left_label") $class .= "form-horizontal form-horizontal-leftlabel"; - $class .= ' ' . $form['cssClass']; - //$form_tag = preg_replace("|action='(.*?)'|", "action='custom_handler.php'", $form_tag); - //$form_tag = str_replace("