| @@ -9,12 +9,8 @@ | ||
| 9 | 9 | ?> |
| 10 | 10 | |
| 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 | - <input type="hidden" name="shortcode" value="convertkit_<?php echo esc_attr( $shortcode['name'] ); ?>" /> | |
| 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' ); ?>" /> | |
| 16 | - | |
| 17 | 13 | <?php |
| 18 | 14 | // Output each Field. |
| 19 | 15 | foreach ( $shortcode['fields'] as $field_name => $field ) { |
| 20 | 16 | include 'modal-field-row.php'; |
| @@ -19,5 +15,24 @@ | ||
| 19 | 15 | foreach ( $shortcode['fields'] as $field_name => $field ) { |
| 20 | 16 | include 'modal-field-row.php'; |
| 21 | 17 | } |
| 22 | 18 | ?> |
| 19 | + | |
| 20 | + <div class="convertkit-option buttons"> | |
| 21 | + <div class="left"> | |
| 22 | + <button type="button" class="close button"><?php esc_html_e( 'Cancel', 'convertkit' ); ?></button> | |
| 23 | + </div> | |
| 24 | + <div class="right"> | |
| 25 | + <input type="hidden" name="shortcode" value="convertkit_<?php echo esc_attr( $shortcode['name'] ); ?>" /> | |
| 26 | + <input type="hidden" name="editor_type" value="<?php echo esc_attr( $editor_type ); // quicktags|tinymce. ?>" /> | |
| 27 | + | |
| 28 | + <?php | |
| 29 | + if ( $shortcode['shortcode_include_closing_tag'] ) { | |
| 30 | + ?> | |
| 31 | + <input type="hidden" name="close_shortcode" value="1" /> | |
| 32 | + <?php | |
| 33 | + } | |
| 34 | + ?> | |
| 35 | + <input type="button" value="<?php esc_html_e( 'Insert', 'convertkit' ); ?>" class="button button-primary right" /> | |
| 36 | + </div> | |
| 37 | + </div> | |
| 23 | 38 | </form> |