From 3776a2d624ae92ea9a17d35a39fee58de3132109 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 21 Jun 2016 14:48:13 -0400 Subject: [PATCH] Update for survey Only on certain pages. --- functions.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index d84f2aa..2ce5214 100644 --- a/functions.php +++ b/functions.php @@ -67,6 +67,7 @@ add_image_size('landing_page', 386, 285, true); */ function glm_site_scripts() { + global $post; wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/modernizr/modernizr.min.js' @@ -83,6 +84,15 @@ function glm_site_scripts() wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css'); if(is_front_page()) { } + if ( isset( $post ) && in_array( $post->ID, array( 3193, 3194, 3195, 3196, 3197, 3200, 3309, 3303, 3315, 3307 ) ) { + wp_enqueque_script( + 'discover-survey', + 'https://survey.vovici.com/intercept.ashx?i=209A5BC47CEE319B', + null, + null, + true + ); + } } @@ -257,4 +267,4 @@ function front_end_blank_credentials( $login, $username, $password ) { } } -?> \ No newline at end of file +?> -- 2.17.1