projects
/
WP-Themes
/
francejourneys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d9e14
)
Localize vmap script after enqueueing it
author
Laury GvR
<laury@gaslightmedia.com>
Tue, 28 Jun 2016 14:03:07 +0000
(10:03 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Tue, 28 Jun 2016 14:03:07 +0000
(10:03 -0400)
parts/interactive-map.php
patch
|
blob
|
history
diff --git
a/parts/interactive-map.php
b/parts/interactive-map.php
index
367ddeb
..
9e1fb0d
100644
(file)
--- a/
parts/interactive-map.php
+++ b/
parts/interactive-map.php
@@
-24,12
+24,12
@@
foreach ($blocks as $block) {
'title' => $tourTitle,
'content' => $tourContent,
];
-// echo var_dump($tourPages);
}
-wp_localize_script( 'wp_vars_for_vmap', 'tourData', $tourData );
// Enqueued script with localized data.
wp_enqueue_script( 'wp_vars_for_vmap' );
+wp_localize_script( 'wp_vars_for_vmap', 'tourData', $tourData );
+
?>
<script src="<?php echo get_stylesheet_directory_uri() ; ?>/js/vmap/dist/jquery.vmap.js"></script>