| @@ 948-954 (lines=7) @@ | ||
| 945 | $replace_with = wpautop($replace_with); |
|
| 946 | } |
|
| 947 | unset( $autop ); |
|
| 948 | } else if ( is_array( $replace_with ) ) { |
|
| 949 | if ( isset( $atts['show'] ) && $atts['show'] && isset( $replace_with[ $atts['show'] ] ) ) { |
|
| 950 | $replace_with = $replace_with[ $atts['show'] ]; |
|
| 951 | } else { |
|
| 952 | $replace_with = implode( $sep, $replace_with ); |
|
| 953 | } |
|
| 954 | } |
|
| 955 | ||
| 956 | return $replace_with; |
|
| 957 | } |
|
| @@ 540-544 (lines=5) @@ | ||
| 537 | } else if ( is_object( $form ) && $form->parent_form_id ) { |
|
| 538 | // get the parent form if this is a child |
|
| 539 | $form = $form->parent_form_id; |
|
| 540 | } else if ( is_array( $form ) && isset( $form['parent_form_id'] ) && $form['parent_form_id'] ) { |
|
| 541 | $form = $form['parent_form_id']; |
|
| 542 | } else if ( is_array( $form ) && isset( $form['custom_style'] ) ) { |
|
| 543 | $style = $form['custom_style']; |
|
| 544 | } |
|
| 545 | ||
| 546 | if ( $form && is_string( $form ) ) { |
|
| 547 | $form = FrmForm::getOne( $form ); |
|