Permalink
Browse files

Scripts update

  • Loading branch information...
1 parent 8ab97f6 commit d0d137910eabc6944211a247e33df17e2c994d59 @noeltock committed Nov 29, 2012
Showing with 15 additions and 3 deletions.
  1. +4 −0 js/modernizr.min.js
  2. +11 −3 prometheus.php
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -21,23 +21,31 @@
* https://github.com/scottjehl/Respond
*/
function prometheus_respond() {
- wp_enqueue_style( 'respond-js', get_template_directory() . '/prometheus/js/respond.min.js', null, '1.1.0', 'all' );
+ wp_enqueue_script( 'respond-js', get_template_directory_uri() . '/prometheus/js/respond.min.js', null, '1.1.0', 'all' );
}
/**
* html5shiv
* https://github.com/aFarkas/html5shiv
*/
function prometheus_html5shiv() {
- wp_enqueue_style( 'html5shiv-js', get_template_directory() . '/prometheus/js/html5shiv.js', null, '3.6.2', 'all' );
+ wp_enqueue_script( 'html5shiv-js', get_template_directory_uri() . '/prometheus/js/html5shiv.js', null, '3.6.2', 'all' );
}
/**
* selectivizr
* https://github.com/keithclark/selectivizr
*/
function prometheus_selectivizr() {
- wp_enqueue_style( 'selectivizr-js', get_template_directory() . '/prometheus/js/selectivizr-min.js', null, '1.0.3', 'all' );
+ wp_enqueue_script( 'selectivizr-js', get_template_directory_uri() . '/prometheus/js/selectivizr-min.js', null, '1.0.3', 'all' );
+}
+
+/**
+ * modernizr
+ * https://www.modernizr.com
+ */
+function prometheus_modernizr() {
+ wp_enqueue_script( 'modernizr-js', get_template_directory_uri() . '/prometheus/js/modernizr.min.js', null, '1.0.3', 'all' );
}
?>

0 comments on commit d0d1379

Please sign in to comment.