<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
COMING SOON The new BCBC Tap Room, at the intersection of Zia and Rodeo Road, will deliver all the comfort and rustic charm of our original location in a convenient, urban location. Our taproom will offer the same great lineup…
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>
<?php
$location = get_field('location');
if( $location ) {
// Loop over segments and construct HTML.
$address = '';
foreach( array('street_number', 'street_name', 'city', 'state', 'post_code', 'country') as $i => $k ) {
if( isset( $location[ $k ] ) ) {
$address .= sprintf( '<span class="segment-%s">%s</span>, ', $k, $location[ $k ] );
}
}
// Trim trailing comma.
$address = trim( $address, ', ' );
// Display HTML.
echo '<p class="location-address">' . $address . '</p>';
}
$get_google_map = get_field('location', $value);
$lat = $get_google_map['lat'];
$long = $get_google_map['lng']; ?>
<a class="directions entry-button ct-button" target="_blank" href="https://www.google.com/maps?saddr=My+Location&daddr=<?php echo +$lat; ?>,<?php echo +$long; ?>">Get Directions</a>