| @@ -11,16 +11,11 @@ | ||
| 11 | 11 | <!-- .wp-core-ui ensures styles are applied on frontend editors for e.g. buttons.css --> |
| 12 | 12 | <form class="convertkit-tinymce-popup wp-core-ui"> |
| 13 | 13 | <input type="hidden" name="shortcode" value="convertkit_<?php echo esc_attr( $shortcode['name'] ); ?>" /> |
| 14 | 14 | <input type="hidden" name="editor_type" value="<?php echo esc_attr( $editor_type ); // quicktags|tinymce. ?>" /> |
| 15 | + <input type="hidden" name="close_shortcode" value="<?php echo esc_attr( $shortcode['shortcode_include_closing_tag'] ? '1' : '0' ); ?>" /> | |
| 15 | 16 | |
| 16 | 17 | <?php |
| 17 | - if ( $shortcode['shortcode_include_closing_tag'] ) { | |
| 18 | - ?> | |
| 19 | - <input type="hidden" name="close_shortcode" value="1" /> | |
| 20 | - <?php | |
| 21 | - } | |
| 22 | - | |
| 23 | 18 | // Output each Field. |
| 24 | 19 | foreach ( $shortcode['fields'] as $field_name => $field ) { |
| 25 | 20 | include 'modal-field-row.php'; |
| 26 | 21 | } |