File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 25
25
$ title_string = trim ($ title_string );
26
26
$ locations = explode (' to ' , $ title_string );
27
27
require (locate_template ('breadcrumb.php ' ));
28
+
29
+ $ map_url = 'https://www.google.com/maps/embed/v1/directions ' ;
30
+
31
+ $ map_url .= '?origin= ' .trim ($ locations [0 ]);
32
+ $ map_url .= '&destination= ' .trim ($ locations [1 ]);
33
+ $ map_url .= '&mode=walking ' ;
34
+
35
+
28
36
?>
29
37
<div class="container">
30
38
<div class="col-sm-12 col-md-12 col-lg-12">
31
- <iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="//maps.google.co.uk/maps?f=q&source=s_q&hl=en&q=<?php echo $ title_string?> &saddr=<?php echo trim ($ locations [0 ])?> &daddr=<?php echo trim ($ locations [1 ])?> &ie=UTF8&t=m&z=8&output=embed"></iframe>
39
+
40
+
41
+ <iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<?= $ map_url?> "></iframe>
32
42
<?php
33
43
if ($ values = get_post_custom_values ('leadvideo ' )) {
34
44
echo '<iframe width="100%" height="400" src="//www.youtube.com/embed/ ' ;
You can’t perform that action at this time.
0 commit comments