| 1 |
<?php |
| 2 |
/** |
| 3 |
* Admin View: Order actions Meta box |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* Prevent loading this file directly |
| 8 |
*/ |
| 9 |
defined( 'ABSPATH' ) || exit(); |
| 10 |
|
| 11 |
global $post; |
| 12 |
?> |
| 13 |
|
| 14 |
<div class="submitbox" id="submitpost"> |
| 15 |
<div id="minor-publishing"> |
| 16 |
<div id="misc-publishing-actions"> |
| 17 |
<div class="misc-pub-section"> |
| 18 |
<select name="trigger-order-action"> |
| 19 |
<option value=""><?php esc_html_e( 'Choose an action', 'learnpress' ); ?></option> |
| 20 |
<option value="current-status"><?php esc_html_e( 'Trigger action of the current order status', 'learnpress' ); ?></option> |
| 21 |
</select> |
| 22 |
</div> |
| 23 |
</div> |
| 24 |
<div id="major-publishing-actions"> |
| 25 |
<div id="delete-action"> |
| 26 |
<?php if ( current_user_can( 'delete_post', $post->ID ) ) : ?> |
| 27 |
<?php |
| 28 |
if ( ! EMPTY_TRASH_DAYS ) { |
| 29 |
$delete_text = esc_html__( 'Delete Permanently', 'learnpress' ); |
| 30 |
} else { |
| 31 |
$delete_text = esc_html__( 'Move to Trash', 'learnpress' ); |
| 32 |
} |
| 33 |
?> |
| 34 |
<a class="submitdelete deletion" href="<?php echo get_delete_post_link( $post->ID ); ?>"> |
| 35 |
<?php echo esc_html( $delete_text ); ?> |
| 36 |
</a> |
| 37 |
<?php endif; ?> |
| 38 |
</div> |
| 39 |
|
| 40 |
<div id="publishing-action"> |
| 41 |
<span class="spinner"></span> |
| 42 |
<input name="original_publish" type="hidden" id="original_publish" value="Update"> |
| 43 |
<input name="save" type="submit" class="button button-primary button-large" id="publish" value="Update"> |
| 44 |
</div> |
| 45 |
<div class="clear"></div> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
|