| 53 | | <div class="imgedit-menu wp-clearfix"> |
| | 53 | |
| | 54 | <input type="hidden" id="imgedit-sizer-<?php echo $post_id; ?>" value="<?php echo $sizer; ?>" /> |
| | 55 | <input type="hidden" id="imgedit-history-<?php echo $post_id; ?>" value="" /> |
| | 56 | <input type="hidden" id="imgedit-undone-<?php echo $post_id; ?>" value="0" /> |
| | 57 | <input type="hidden" id="imgedit-selection-<?php echo $post_id; ?>" value="" /> |
| | 58 | <input type="hidden" id="imgedit-x-<?php echo $post_id; ?>" value="<?php echo isset( $meta['width'] ) ? $meta['width'] : 0; ?>" /> |
| | 59 | <input type="hidden" id="imgedit-y-<?php echo $post_id; ?>" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" /> |
| | 60 | |
| | 61 | <div id="imgedit-crop-<?php echo $post_id; ?>" class="imgedit-crop-wrap"> |
| | 62 | <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')" |
| | 63 | src="<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ) . '?action=imgedit-preview&_ajax_nonce=' . $nonce . '&postid=' . $post_id . '&rand=' . rand( 1, 99999 ); ?>" alt="" /> |
| | 64 | </div> |
| | 65 | |
| | 66 | <div class="imgedit-submit"> |
| | 67 | <input type="button" onclick="imageEdit.close(<?php echo $post_id; ?>, 1)" class="button imgedit-cancel-btn" value="<?php esc_attr_e( 'Cancel' ); ?>" /> |
| | 68 | <input type="button" onclick="imageEdit.save(<?php echo "$post_id, '$nonce'"; ?>)" disabled="disabled" class="button button-primary imgedit-submit-btn" value="<?php esc_attr_e( 'Save' ); ?>" /> |
| | 69 | </div> |
| | 70 | </div> |
| | 71 | |
| | 72 | <div class="imgedit-settings"> |
| | 73 | <div class="imgedit-group"> |
| | 74 | <div class="imgedit-group-top imgedit-menu"> |
| | 75 | <h2><?php _e( 'Editing Tools' ); ?></h2> |
| 84 | | |
| 85 | | <input type="hidden" id="imgedit-sizer-<?php echo $post_id; ?>" value="<?php echo $sizer; ?>" /> |
| 86 | | <input type="hidden" id="imgedit-history-<?php echo $post_id; ?>" value="" /> |
| 87 | | <input type="hidden" id="imgedit-undone-<?php echo $post_id; ?>" value="0" /> |
| 88 | | <input type="hidden" id="imgedit-selection-<?php echo $post_id; ?>" value="" /> |
| 89 | | <input type="hidden" id="imgedit-x-<?php echo $post_id; ?>" value="<?php echo isset( $meta['width'] ) ? $meta['width'] : 0; ?>" /> |
| 90 | | <input type="hidden" id="imgedit-y-<?php echo $post_id; ?>" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" /> |
| 91 | | |
| 92 | | <div id="imgedit-crop-<?php echo $post_id; ?>" class="imgedit-crop-wrap"> |
| 93 | | <img id="image-preview-<?php echo $post_id; ?>" onload="imageEdit.imgLoaded('<?php echo $post_id; ?>')" |
| 94 | | src="<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ) . '?action=imgedit-preview&_ajax_nonce=' . $nonce . '&postid=' . $post_id . '&rand=' . rand( 1, 99999 ); ?>" alt="" /> |
| 95 | | </div> |
| 96 | | |
| 97 | | <div class="imgedit-submit"> |
| 98 | | <input type="button" onclick="imageEdit.close(<?php echo $post_id; ?>, 1)" class="button imgedit-cancel-btn" value="<?php esc_attr_e( 'Cancel' ); ?>" /> |
| 99 | | <input type="button" onclick="imageEdit.save(<?php echo "$post_id, '$nonce'"; ?>)" disabled="disabled" class="button button-primary imgedit-submit-btn" value="<?php esc_attr_e( 'Save' ); ?>" /> |
| 100 | | </div> |