?> <?php // It is amazing how often this works well even for something as short as ?> <?php // 'Blockley Hall' since the user's location is often known to Google Maps. However ?> <?php // it is less useful if all of your locations are 'room 150', etc. with no further ?> <?php // information. Naturally full addresses work best ?> <li class="post-location a-ui"> <?php echo aString::firstLine($aEvent['location']); ?> <?php if (sfConfig::get('app_events_google_maps', true)) { ?> <?php echo a_button(a_('Google Maps'), url_for('http://maps.google.com/maps?' . http_build_query(array('q' => preg_replace('/\\s+/', ' ', $aEvent['location'])))), array('no-bg', 'alt', 'icon', 'a-google-maps')); ?> <?php } ?> </li> <?php } ?>