2019-05-23 12:30:31 -04:00
|
|
|
<?php
|
|
|
|
|
2021-07-02 10:24:48 -04:00
|
|
|
namespace WP_73k;
|
2019-05-23 12:30:31 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enqueue scripts and styles
|
|
|
|
*/
|
|
|
|
add_action( 'wp_enqueue_scripts', function() {
|
|
|
|
|
|
|
|
$min_ext = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
|
|
|
|
|
|
|
|
// JS
|
|
|
|
wp_enqueue_script(
|
2021-07-02 10:24:48 -04:00
|
|
|
'wp_73k_js',
|
|
|
|
WP_73k_URL . "/dist/main{$min_ext}.js",
|
2019-05-23 12:30:31 -04:00
|
|
|
[],
|
2021-07-02 10:24:48 -04:00
|
|
|
WP_73k_VERSION,
|
2019-05-23 12:30:31 -04:00
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
// CSS
|
|
|
|
wp_enqueue_style(
|
2021-07-02 10:24:48 -04:00
|
|
|
'wp_73k_css',
|
|
|
|
WP_73k_URL . "/dist/main{$min_ext}.css",
|
2019-05-23 12:30:31 -04:00
|
|
|
[],
|
2021-07-02 10:24:48 -04:00
|
|
|
WP_73k_VERSION,
|
2019-05-23 12:30:31 -04:00
|
|
|
''
|
|
|
|
);
|
|
|
|
|
|
|
|
} );
|