# woo-postnl/3.1.6/includes/views/wcmp-modal-result-page.php

PostNL for WooCommerce, version 3.1.6. 64 lines.

- Page: https://pluginprobe.com/plugins/woo-postnl/3.1.6/code/includes/views/wcmp-modal-result-page.php
- Raw: https://pluginprobe.com/plugins/woo-postnl/3.1.6/raw/includes/views/wcmp-modal-result-page.php
- Modified: 2019-03-19T08:54:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woo-postnl/3.1.6/code/includes/views/wcmp-modal-result-page.php#L10-L20`.

```php
<?php if ( ! defined('ABSPATH')) exit; // Exit if accessed directly ?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<?php
		wp_enqueue_script(
			'wcpostnl-export',
			WooCommerce_PostNL()->plugin_url() . '/assets/js/wcmp-admin.js',
			array( 'jquery', 'thickbox' ),
			WC_POSTNL_VERSION
		);
		wp_localize_script(
			'wcpostnl-export',
			'wc_postnl',
			array(
                'ajax_url'         => admin_url('admin-ajax.php'),
                'nonce'            => wp_create_nonce('wc_postnl'),
                'download_display' => isset(WooCommerce_PostNL()->general_settings['download_display'])
                    ? WooCommerce_PostNL()->general_settings['download_display']
                    : '',
			)
		);

		wp_enqueue_style(
			'wcmp-admin-styles',
			WooCommerce_PostNL()->plugin_url() . '/assets/css/wcmp-admin-styles.css',
			array(),
			WC_POSTNL_VERSION,
			'all'
		);

		// Legacy styles (WC 2.1+ introduced MP6 style with larger buttons)
		if ( version_compare( WOOCOMMERCE_VERSION, '2.1', '<=' ) ) {
			wp_enqueue_style(
				'wcmp-admin-styles-legacy',
				WooCommerce_PostNL()->plugin_url() . '/assets/css/wcmp-admin-styles-legacy.css',
				array(),
				WC_POSTNL_VERSION,
				'all'
			);
		}

		wp_enqueue_style( 'wcpostnl-admin-styles' );
		wp_enqueue_style( 'colors' );
		wp_enqueue_style( 'media' );
		wp_enqueue_script( 'jquery' );
		do_action('admin_print_styles');
		do_action('admin_print_scripts');
	?>
</head>
<body style="padding:10px 20px;">
	<?php
    switch($request) {
        case 'add_return':
            printf('<h3>%s</h3>', __('Return email successfully sent to customer'));
        break;
        default:
            # code...
        break;
    }
	?>
</body></html>
```
