PluginProbe
PostNL for WooCommerce / 2.5.1
PostNL for WooCommerce v2.5.1
5.9.12 5.9.11 5.9.10 5.9.9 5.9.8 5.9.7 5.9.6 trunk 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.1.4 3.1.5 3.1.6 3.1.7 4.0.0 4.0.1 4.0.2 4.3.2 4.3.3 4.4.0 4.4.1 All 72 releases
woo-postnl / includes / views / wcmp-delivery-options.php

wcmp-delivery-options.php in PostNL for WooCommerce 2.5.1, at includes/views/wcmp-delivery-options.php

36 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>