| @@ 509-513 (lines=5) @@ | ||
| 506 | } else if ( is_object( $form ) && $form->parent_form_id ) { |
|
| 507 | // get the parent form if this is a child |
|
| 508 | $form = $form->parent_form_id; |
|
| 509 | } else if ( is_array( $form ) && isset( $form['parent_form_id'] ) && $form['parent_form_id'] ) { |
|
| 510 | $form = $form['parent_form_id']; |
|
| 511 | } else if ( is_array( $form ) && isset( $form['custom_style'] ) ) { |
|
| 512 | $style = $form['custom_style']; |
|
| 513 | } |
|
| 514 | ||
| 515 | if ( $form && is_string( $form ) ) { |
|
| 516 | $form = FrmForm::getOne( $form ); |
|
| @@ 901-907 (lines=7) @@ | ||
| 898 | $replace_with = wpautop($replace_with); |
|
| 899 | } |
|
| 900 | unset( $autop ); |
|
| 901 | } else if ( is_array( $replace_with ) ) { |
|
| 902 | if ( isset( $atts['show'] ) && $atts['show'] && isset( $replace_with[ $atts['show'] ] ) ) { |
|
| 903 | $replace_with = $replace_with[ $atts['show'] ]; |
|
| 904 | } else { |
|
| 905 | $replace_with = implode( $sep, $replace_with ); |
|
| 906 | } |
|
| 907 | } |
|
| 908 | ||
| 909 | return $replace_with; |
|
| 910 | } |
|