# woo-postnl/4.0.1/includes/admin/views/html-start.php

PostNL for WooCommerce, version 4.0.1. 59 lines.

- Page: https://pluginprobe.com/plugins/woo-postnl/4.0.1/code/includes/admin/views/html-start.php
- Raw: https://pluginprobe.com/plugins/woo-postnl/4.0.1/raw/includes/admin/views/html-start.php
- Modified: 2021-01-04T09:17:00+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/4.0.1/code/includes/admin/views/html-start.php#L10-L20`.

```php
<?php defined('ABSPATH') or die();?>

<!DOCTYPE html>
<html
    xmlns="http://www.w3.org/1999/xhtml"
    lang="<?php get_locale(); ?>">
<head>
    <meta
        http-equiv="Content-Type"
        content="text/html; charset=UTF-8">
    <title></title>
    <?php
    wp_enqueue_script(
        'wcpn-admin',
        WCPOST()->plugin_url() . '/assets/js/wcpn-admin.js',
        ['jquery', 'thickbox'],
        WC_POSTNL_VERSION
    );
    wp_localize_script(
        'wcpn-admin',
        'wc_postnl',
        [
            'ajax_url'                                => admin_url('admin-ajax.php'),
            'nonce'                                   => wp_create_nonce(WCPOST::NONCE_ACTION),
            WCPOST_Settings::SETTING_DOWNLOAD_DISPLAY => WCPOST()->setting_collection->getByName(
                WCPOST_Settings::SETTING_DOWNLOAD_DISPLAY
            ) ? WCPOST()->setting_collection->getByName(WCPOST_Settings::SETTING_DOWNLOAD_DISPLAY) : '',
        ]
    );

    wp_enqueue_style(
        'wcpn-admin-styles',
        WCPOST()->plugin_url() . '/assets/css/wcpn-admin-styles.css',
        [],
        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(
            'wcpn-admin-styles-legacy',
            WCPOST()->plugin_url() . '/assets/css/wcpn-admin-styles-legacy.css',
            [],
            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;">

```
