From f597e2fe949a1e18eb778b9a5bd102de88570555 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 18 May 2017 14:03:27 +0200 Subject: Initial commit. --- inc/enqueue.php | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 inc/enqueue.php (limited to 'inc/enqueue.php') diff --git a/inc/enqueue.php b/inc/enqueue.php new file mode 100644 index 0000000..a84698f --- /dev/null +++ b/inc/enqueue.php @@ -0,0 +1,47 @@ + intval( get_theme_mod( 'understrap_theme_slider_time_setting', 5000 )), + "items"=> intval( get_theme_mod( 'understrap_theme_slider_count_setting', 1 )) + ); + + + wp_enqueue_script("understrap-slider-script", get_stylesheet_directory_uri() . '/js/slider_settings.js', array(), '0.3.9'); + wp_localize_script( "understrap-slider-script", "understrap_slider_variables", $data ); + } +} +endif; + + + + -- cgit v1.2.3