| 1 |
<?php |
| 2 |
/** |
| 3 |
* LOAD WORDPRESS |
| 4 |
*/ |
| 5 |
define('WP_USE_THEMES', false); |
| 6 |
require( '../../../../../wp-load.php'); |
| 7 |
?> |
| 8 |
<!DOCTYPE html> |
| 9 |
<html> |
| 10 |
<head> |
| 11 |
<?php |
| 12 |
// define script & style formats |
| 13 |
$script_format = '<script type="text/javascript" data-cfasync="false" src="%s"></script>'; |
| 14 |
$style_format = '<link rel="stylesheet" id="%s" href="%s" type="text/css" media="all">'; |
| 15 |
|
| 16 |
// load jquery |
| 17 |
printf( $script_format, includes_url( 'js/jquery/jquery.js' ) ); |
| 18 |
|
| 19 |
// PostNL scripts |
| 20 |
printf( $script_format, add_query_arg( 'ver', WC_POSTNL_VERSION, WooCommerce_PostNL()->plugin_url() . '/assets/delivery-options/js/moment.min.js' ) ); |
| 21 |
printf( $script_format, add_query_arg( 'ver', WC_POSTNL_VERSION, WooCommerce_PostNL()->plugin_url() . '/assets/delivery-options/js/webcomponents.min.js' ) ); |
| 22 |
printf( $script_format, add_query_arg( 'ver', WC_POSTNL_VERSION, WooCommerce_PostNL()->plugin_url() . '/assets/delivery-options/js/postnl.js' ) ); |
| 23 |
printf( $script_format, add_query_arg( 'ver', WC_POSTNL_VERSION, WooCommerce_PostNL()->plugin_url() . '/assets/js/wcmp-frontend-iframe.js' ) ); |
| 24 |
|
| 25 |
$autoload_google_fonts = isset(WooCommerce_PostNL()->checkout_settings['autoload_google_fonts']) ? 'true' : 'false'; |
| 26 |
printf( '<script type="text/javascript">var autoload_google_fonts = %s</script>',$autoload_google_fonts); |
| 27 |
?> |
| 28 |
</head> |
| 29 |
<body> |
| 30 |
<?php |
| 31 |
// Include delivery options template |
| 32 |
include('wcmp-delivery-options-template.php'); |
| 33 |
?> |
| 34 |
<postnl id="postnl">Bezig met laden...</postnl> |
| 35 |
</body> |
| 36 |
</html> |