mirror of https://github.com/itflow-org/itflow
Open up Apple Maps instead of maps.google.com in IOS
This commit is contained in:
parent
34e6dde43b
commit
f50bace9e9
|
|
@ -14,4 +14,16 @@
|
|||
$session_name = $row['name'];
|
||||
$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>
|
||||
<td><i class="fa fa-map-marker"></i></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; ?>
|
||||
<br>
|
||||
<?php echo "$client_city $client_state $client_zip"; ?>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
?>
|
||||
<tr>
|
||||
<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>
|
||||
<div class="dropdown dropleft text-center">
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
<tr>
|
||||
<td><a href="client.php?client_id=<?php echo $client_id; ?>"><?php echo "$client_name"; ?></a></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"; ?>
|
||||
<br>
|
||||
<?php echo "$client_city $client_state $client_zip"; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue