diff --git a/wp-content/themes/foundry0/functions.php b/wp-content/themes/foundry0/functions.php index 683194b74634e74269a9be5f8a7c06a1d80581cc..34f401c85364a7b4b9b1fc85d8d9cb8bac430ba8 100644 --- a/wp-content/themes/foundry0/functions.php +++ b/wp-content/themes/foundry0/functions.php @@ -2,17 +2,28 @@ function add_theme_scripts() { wp_enqueue_style( 'bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' ); - - - wp_enqueue_style( 'animate', get_template_directory_uri() . '/css/animate.css',false,'1.1','all'); wp_enqueue_style( 'style', get_stylesheet_uri() ); + + wp_register_script( 'lodash', 'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js', "3.10.1", true); + wp_register_script( 'jquery-min', 'https://code.jquery.com/jquery-2.1.4.min.js', "2.1.4", true); + // wp_register_script( 'jquery', 'http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js', "2.1.3", true); - wp_enqueue_script( 'lodash', 'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js', "3.10.1", true); + wp_register_script( 'jquery-touchswipe', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.touchswipe/1.6.4/jquery.touchSwipe.min.js', "1.6.4", true); - wp_enqueue_script( 'main', get_template_directory_uri() . '/js/main.js', 1.1, true); + wp_register_script( 'bootstrap', 'http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js', "3.2.0", true); - + wp_register_script( 'createjs', 'https://code.createjs.com/createjs-2015.05.21.min.js', "0.0", true); + + wp_register_script('main', get_template_directory_uri() . '/js/main.js', 1.1, true); + + wp_enqueue_script('lodash'); + wp_enqueue_script('jquery-min'); + wp_enqueue_script('jquery-touchswipe'); + wp_enqueue_script('bootstrap'); + wp_enqueue_script('createjs'); + wp_enqueue_script('main'); + if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }