Skip to content

Commit

Permalink
minor mods
Browse files Browse the repository at this point in the history
  • Loading branch information
localhost8080 committed Sep 29, 2014
1 parent 1363100 commit 034356e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions template-adventures-single.php
Expand Up @@ -22,13 +22,15 @@
$title_string = str_replace('off', '', $title_string);
$title_string = str_replace(':', '', $title_string);
$title_string = preg_replace('(\d+)', '', $title_string);
$title_string = preg_replace("/[^A-Za-z0-9 ]/", '', $title_string);

$title_string = trim($title_string);
$locations = explode(' to ', $title_string);
require(locate_template('breadcrumb.php'));

$map_url = 'https://www.google.com/maps/embed/v1/directions';

$map_url .= '?origin='.trim($locations[0]);
$map_url .= '?key=AIzaSyCqrE65OBtskUyqwILNZlRQ3ikTOseYCuw';
$map_url .= '&origin='.trim($locations[0]);
$map_url .= '&destination='.trim($locations[1]);
$map_url .= '&mode=walking';

Expand Down

0 comments on commit 034356e

Please sign in to comment.