| 1 |
<?php |
| 2 |
/** |
| 3 |
* Subscription save meta box view. |
| 4 |
* |
| 5 |
* @package SpringDevs\Subscription\Admin |
| 6 |
*/ |
| 7 |
|
| 8 |
// Exit if accessed directly. |
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
wp_nonce_field( 'subscrpt_order_action_nonce', 'subscrpt_order_action_nonce_field' ); |
| 14 |
|
| 15 |
/** |
| 16 |
* Subscription save meta box view. |
| 17 |
* |
| 18 |
* @var array $actions ; |
| 19 |
* @var array $actions_data ; |
| 20 |
* @var string $status ; |
| 21 |
*/ |
| 22 |
?> |
| 23 |
<p class="subscrpt_sub_box"> |
| 24 |
<select id="subscrpt_order_type" name="subscrpt_order_action"> |
| 25 |
<option value="" disabled selected><?php esc_html_e( 'Choose Action', 'subscription' ); ?></option> |
| 26 |
<?php foreach ( $actions as $action_slug ) : ?> |
| 27 |
<?php |
| 28 |
$action = $actions_data[ $action_slug ]; |
| 29 |
?> |
| 30 |
<option value="<?php echo esc_html( $action['value'] ); ?>"> |
| 31 |
<?php echo esc_html( $action['label'] ); ?> |
| 32 |
</option> |
| 33 |
<?php endforeach; ?> |
| 34 |
</select> |
| 35 |
</p> |
| 36 |
<div class="submitbox"> |
| 37 |
<input type="submit" class="button save_order button-primary tips" name="save" value="Process"> |
| 38 |
</div> |
| 39 |
|