From cc6fab9d366487c033e79b47d569b0a692a81bd3 Mon Sep 17 00:00:00 2001
From: cristiano <cs.almeida@protonmail.ch>
Date: Tue, 30 Apr 2019 17:47:24 +0100
Subject: [PATCH] Enqueued additional scripts and styles.

---
 wp-content/themes/foundry0/functions.php | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/wp-content/themes/foundry0/functions.php b/wp-content/themes/foundry0/functions.php
index 683194b..34f401c 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' );
     }
-- 
GitLab