Browse Source

wherewasi

windhamdavid 5 years ago
parent
commit
f8c1ae79c3
6 changed files with 3003 additions and 403 deletions
  1. 17 12
      functions.php
  2. 1 1
      js/script-o.js
  3. 364 0
      js/validate-chimp.js
  4. 1277 0
      js/validate-form.js
  5. 1340 339
      js/validate.js
  6. 4 51
      js/validate.min.js

+ 17 - 12
functions.php

@@ -42,17 +42,14 @@ function dw_scripts() {
 	wp_enqueue_style( 'boot', get_template_directory_uri() . '/css/bootstrap.css');
 	
 	wp_deregister_script('jquery');
-	wp_enqueue_script( 'script-o', get_template_directory_uri() . '/js/script-o.js', '', '', true );
-	//wp_enqueue_script( 'script-o-min', get_template_directory_uri() . '/js/script-o.min.js', 'jquery', '', true );
-	wp_enqueue_script( 'init-o', get_template_directory_uri() . '/js/init-o.js', '', '', true );
-	//wp_enqueue_script( 'init-o-min', get_template_directory_uri() . '/js/init-o.min.js', 'jquery', '', true );
+
 	
 	
 	if ( is_front_page() || is_home() ) {
 		
 	}
 	
-	if ( is_page('home') ) {	
+	elseif ( is_page('home') ) {	
 		wp_enqueue_style( 'boot', get_template_directory_uri() . '/css/bootstrap.css');
 		wp_enqueue_style( 'cal', get_template_directory_uri() . '/css/fullcalendar.css');
 		wp_enqueue_style( 'ani', get_template_directory_uri() . '/css/animate.css');	
@@ -70,7 +67,7 @@ function dw_scripts() {
 		//wp_enqueue_script( 'init', get_template_directory_uri() . '/js/init.min.js', 'jquery', '', true );
 	}
 	
-	if ( is_page('music') ) {
+	elseif ( is_page('music') ) {
 		wp_enqueue_script( 'script-o', get_template_directory_uri() . '/js/script-o.js', 'jquery', '', true );
 		//wp_enqueue_script( 'script-o-min', get_template_directory_uri() . '/js/script-o.min.js', 'jquery', '', true );
 		wp_enqueue_script( 'init-o', get_template_directory_uri() . '/js/init-o.js', 'jquery', '', true );
@@ -80,19 +77,20 @@ function dw_scripts() {
 		wp_enqueue_script( 'last-fm', get_template_directory_uri() . '/js/fm.js', 'jquery', '', true );
 	}
 	
-	if ( is_page('card') ) {
-		wp_enqueue_style( 'jplayercss', get_template_directory_uri() . '/css/card.css');
+	elseif ( is_page('card') ) {
+		wp_enqueue_style( 'card', get_template_directory_uri() . '/css/card.css');
 		wp_enqueue_script( 'card', get_template_directory_uri() . '/js/card.js', 'jquery', '', true );
 	}
 	
-	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
+	elseif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
 		wp_enqueue_script( 'comment-reply' );
 	}
-
 	
-	if ( is_page('desk') || is_archive() || is_search() ) {	
+	elseif ( is_page('desk') || is_archive() || is_search() ) {	
 		global $wp_rewrite;
-		wp_enqueue_script('jquery', get_template_directory_uri() . '/js/jquery-2.1.1.min.js', array(), false, true);
+		//wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/jquery-2.1.1.min.js', array(), false, true); //jquery dependents
+		wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/script-o.js', '', '', true );
+		wp_enqueue_script( 'init-o', get_template_directory_uri() . '/js/init-o.js', '', '', true );
 		wp_enqueue_script( '_s_backbone-loop', get_template_directory_uri() . '/js/loop.js', array( 'jquery', 'backbone', 'underscore', 'wp-api'  ), '1.0', true );
 		$queried_object = get_queried_object();
 		$local = array(
@@ -120,6 +118,13 @@ function dw_scripts() {
 		}
 		wp_localize_script( '_s_backbone-loop', 'settings', $local );
 	}
+	
+	else {
+		wp_enqueue_script( 'script-o', get_template_directory_uri() . '/js/script-o.js', '', '', true );
+		//wp_enqueue_script( 'script-o-min', get_template_directory_uri() . '/js/script-o.min.js', 'jquery', '', true );
+		wp_enqueue_script( 'init-o', get_template_directory_uri() . '/js/init-o.js', '', '', true );
+		//wp_enqueue_script( 'init-o-min', get_template_directory_uri() . '/js/init-o.min.js', 'jquery', '', true );
+	}
 			
 }
 add_action( 'wp_enqueue_scripts', 'dw_scripts' );

File diff suppressed because it is too large
+ 1 - 1
js/script-o.js


File diff suppressed because it is too large
+ 364 - 0
js/validate-chimp.js


File diff suppressed because it is too large
+ 1277 - 0
js/validate-form.js


File diff suppressed because it is too large
+ 1340 - 339
js/validate.js


File diff suppressed because it is too large
+ 4 - 51
js/validate.min.js