Update for js calls
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 16 Jan 2015 17:41:24 +0000 (12:41 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 16 Jan 2015 17:41:24 +0000 (12:41 -0500)
functions.php

index f27dec6..c1fee79 100755 (executable)
@@ -86,68 +86,27 @@ function glm_offcanvas_menu()
 add_theme_support('post-thumbnails');
 set_post_thumbnail_size(120, 100, true);
 /**
- * cceoem_scripts
+ * glm_site_scripts
  *
  * Add the scripts that we'll need for any home page stuff
  */
-function cceoem_scripts()
+function glm_site_scripts()
 {
     wp_enqueue_script(
         'modernizr',
-        get_template_directory_uri() . '/js/vendor/modernizr.js'
+        get_template_directory_uri() . '/js/modernizr/modernizr.min.js'
     );
+    wp_enqueue_script('jquery');
     wp_enqueue_script(
-        'jquery',
-        get_template_directory_uri() . '/js/vendor/jquery.js'
-    );
-    wp_enqueue_script(
-        'dollarsign',
-        get_template_directory_uri() . '/js/dollarsign.js'
-    );
-    wp_enqueue_script(
-        'foundation',
-        get_template_directory_uri() . '/js/foundation.min.js',
+        'glm_foundation',
+        get_template_directory_uri() . '/js/app.js',
         'jquery',
         '1.0',
         true
     );
-    wp_enqueue_script(
-        'pageSetup',
-        get_template_directory_uri() . '/js/pageSetup.js',
-        'foundation',
-        '1.0',
-        true
-    );
     if(is_front_page()) {
-        wp_enqueue_script(
-            'glm_google_map_code',
-            'http://maps.google.com/maps/api/js?sensor=false',
-            'jquery',
-            '1',
-            true
-        );
-        wp_enqueue_script(
-            'glm_google_map',
-            get_template_directory_uri() . '/js/google-map.js',
-            'jquery',
-            '1',
-            true
-        );
     }
 
 }
-/**
- * Output the div for the google map
- *
- * @param type $w Width of the div
- * @param type $h Height of the div
- *
- * @return type
- */
-function glm_google_map($w = '500px', $h = '200px')
-{
-    $format = '<div id="map-canvas" style="width: %s;height: %s">Loading...</div>';
-    return sprintf($format, $w, $h);
-}
-add_action('wp_enqueue_scripts', 'cceoem_scripts');
-?>
\ No newline at end of file
+add_action('wp_enqueue_scripts', 'glm_site_scripts');
+?>