From 714c15bbe94912c69d335e3f8ce87718589d8b4e Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 16 Jan 2015 12:41:24 -0500 Subject: [PATCH] Update for js calls --- functions.php | 57 ++++++++------------------------------------------- 1 file changed, 8 insertions(+), 49 deletions(-) diff --git a/functions.php b/functions.php index f27dec6..c1fee79 100755 --- a/functions.php +++ b/functions.php @@ -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 = '
Loading...
'; - 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'); +?> -- 2.17.1