neilgee
9/13/2015 - 3:39 AM

SVG Fallabacks

SVG Fallabacks

<?php //<~ don't add me in

//* Loads SVG fallbacks
add_action( 'wp_enqueue_scripts', 'svgeezy_enqueue_scripts' );

function svgeezy_enqueue_scripts() {
	wp_enqueue_script( 'svgeezy', get_bloginfo( 'stylesheet_directory' ) . '/js/svgeezy.min.js', array(), '1.0.0', true );
	wp_enqueue_script( 'svgeezy-init', get_bloginfo( 'stylesheet_directory' ) . '/js/svgeezy-init.js', array('svgeezy'), '1.0.0', true );
}
svgeezy.init('nocheck', 'png'); // this will tell the plugin to not check images with a class of 'nocheck'