40 lines
623 B
PHP
40 lines
623 B
PHP
<?php
|
|
|
|
function arve_register_styles() {
|
|
|
|
$min = arve_get_min_suffix();
|
|
|
|
wp_register_style(
|
|
ARVE_SLUG,
|
|
ARVE_PUBLIC_URL . "arve$min.css",
|
|
array(),
|
|
ARVE_VERSION
|
|
);
|
|
}
|
|
|
|
function arve_register_scripts() {
|
|
|
|
$min = arve_get_min_suffix();
|
|
|
|
wp_register_script(
|
|
ARVE_SLUG,
|
|
ARVE_PUBLIC_URL . "arve$min.js",
|
|
array( 'jquery' ),
|
|
ARVE_VERSION,
|
|
true
|
|
);
|
|
}
|
|
|
|
function arve_maybe_enqueue_assets() {
|
|
|
|
$options = arve_get_options();
|
|
|
|
if ( $options['always_enqueue_assets'] ) {
|
|
wp_enqueue_style( ARVE_SLUG );
|
|
wp_enqueue_script( ARVE_SLUG );
|
|
|
|
wp_enqueue_style( 'arve-pro' );
|
|
wp_enqueue_script( 'arve-pro' );
|
|
}
|
|
}
|