Open up Apple Maps instead of maps.google.com in IOS
This commit is contained in:
@@ -14,4 +14,16 @@
|
|||||||
$session_name = $row['name'];
|
$session_name = $row['name'];
|
||||||
$session_avatar = $row['avatar'];
|
$session_avatar = $row['avatar'];
|
||||||
|
|
||||||
|
|
||||||
|
//Detects if using an apple device and uses apple maps instead of google
|
||||||
|
$iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod");
|
||||||
|
$iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");
|
||||||
|
$iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad");
|
||||||
|
|
||||||
|
if( $iPod || $iPhone || $iPad){
|
||||||
|
$session_map_source = "apple";
|
||||||
|
}else{
|
||||||
|
$session_map_source = "google";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><i class="fa fa-map-marker"></i></td>
|
<td><i class="fa fa-map-marker"></i></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://maps.google.com?q=<?php echo "$client_address $client_zip"; ?>" target="_blank">
|
<a href="//maps.<?php echo $session_map_source; ?>.com/?q=<?php echo "$client_address $client_zip"; ?>" target="_blank">
|
||||||
<?php echo $client_address; ?>
|
<?php echo $client_address; ?>
|
||||||
<br>
|
<br>
|
||||||
<?php echo "$client_city $client_state $client_zip"; ?>
|
<?php echo "$client_city $client_state $client_zip"; ?>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo "$client_location_name"; ?></td>
|
<td><?php echo "$client_location_name"; ?></td>
|
||||||
<td><a href="https://maps.google.com?q=<?php echo "$client_location_address $client_location_zip"; ?>" target="_blank"><?php echo "$client_location_address"; ?></td>
|
<td><a href="//maps.<?php echo $session_map_source; ?>.com?q=<?php echo "$client_location_address $client_location_zip"; ?>" target="_blank"><?php echo "$client_location_address"; ?></td>
|
||||||
<td><?php echo "$client_location_phone"; ?></td>
|
<td><?php echo "$client_location_phone"; ?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="dropdown dropleft text-center">
|
<div class="dropdown dropleft text-center">
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><a href="client.php?client_id=<?php echo $client_id; ?>"><?php echo "$client_name"; ?></a></td>
|
<td><a href="client.php?client_id=<?php echo $client_id; ?>"><?php echo "$client_name"; ?></a></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://maps.google.com?q=<?php echo "$client_address $client_zip"; ?>" target="_blank">
|
<a href="//maps.<?php echo $session_map_source; ?>.com?q=<?php echo "$client_address $client_zip"; ?>" target="_blank">
|
||||||
<?php echo "$client_address"; ?>
|
<?php echo "$client_address"; ?>
|
||||||
<br>
|
<br>
|
||||||
<?php echo "$client_city $client_state $client_zip"; ?>
|
<?php echo "$client_city $client_state $client_zip"; ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user