| @@ -1,50 +1,50 @@ | ||
| 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 | |
| 21 | - value="current-status"><?php esc_html_e( 'Trigger action of the current order status', 'learnpress' ); ?></option> | |
| 22 | - </select> | |
| 23 | - </div> | |
| 24 | - </div> | |
| 25 | - <div id="major-publishing-actions"> | |
| 26 | - <div id="delete-action"> | |
| 27 | - <?php if ( current_user_can( 'delete_post', $post->ID ) ) : ?> | |
| 28 | - <?php | |
| 29 | - if ( ! EMPTY_TRASH_DAYS ) { | |
| 30 | - $delete_text = esc_html__( 'Delete Permanently', 'learnpress' ); | |
| 31 | - } else { | |
| 32 | - $delete_text = esc_html__( 'Move to Trash', 'learnpress' ); | |
| 33 | - } | |
| 34 | - ?> | |
| 35 | - <a class="submitdelete deletion" href="<?php echo get_delete_post_link( $post->ID ); ?>"> | |
| 36 | - <?php echo esc_html( $delete_text ); ?> | |
| 37 | - </a> | |
| 38 | - <?php endif; ?> | |
| 39 | - </div> | |
| 40 | - | |
| 41 | - <div id="publishing-action"> | |
| 42 | - <span class="spinner"></span> | |
| 43 | - <input name="original_publish" type="hidden" id="original_publish" value="Update"> | |
| 44 | - <input name="save" type="submit" class="button button-primary button-large" id="publish" | |
| 45 | - value="<?php esc_attr_e( 'Update', 'learnpress' ); ?>"> | |
| 46 | - </div> | |
| 47 | - <div class="clear"></div> | |
| 48 | - </div> | |
| 49 | - </div> | |
| 50 | -</div> | |
| 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 | |
| 21 | + value="current-status"><?php esc_html_e( 'Trigger action of the current order status', 'learnpress' ); ?></option> | |
| 22 | + </select> | |
| 23 | + </div> | |
| 24 | + </div> | |
| 25 | + <div id="major-publishing-actions"> | |
| 26 | + <div id="delete-action"> | |
| 27 | + <?php if ( current_user_can( 'delete_post', $post->ID ) ) : ?> | |
| 28 | + <?php | |
| 29 | + if ( ! EMPTY_TRASH_DAYS ) { | |
| 30 | + $delete_text = esc_html__( 'Delete Permanently', 'learnpress' ); | |
| 31 | + } else { | |
| 32 | + $delete_text = esc_html__( 'Move to Trash', 'learnpress' ); | |
| 33 | + } | |
| 34 | + ?> | |
| 35 | + <a class="submitdelete deletion" href="<?php echo get_delete_post_link( $post->ID ); ?>"> | |
| 36 | + <?php echo esc_html( $delete_text ); ?> | |
| 37 | + </a> | |
| 38 | + <?php endif; ?> | |
| 39 | + </div> | |
| 40 | + | |
| 41 | + <div id="publishing-action"> | |
| 42 | + <span class="spinner"></span> | |
| 43 | + <input name="original_publish" type="hidden" id="original_publish" value="Update"> | |
| 44 | + <input name="save" type="submit" class="button button-primary button-large" id="publish" | |
| 45 | + value="<?php esc_attr_e( 'Update', 'learnpress' ); ?>"> | |
| 46 | + </div> | |
| 47 | + <div class="clear"></div> | |
| 48 | + </div> | |
| 49 | + </div> | |
| 50 | +</div> | |