$location->formatted_address, 'approximate' => $location->approximate, 'directions' => __('Directions', '12-step-meeting-list'), 'directions_url' => $location->directions, 'latitude' => $location->latitude, 'location' => get_the_title(), 'location_id' => $location->ID, 'location_url' => get_permalink($location->ID), 'longitude' => $location->longitude, ]); // adding custom body classes add_filter('body_class', function ($classes) { $classes[] = 'tsml tsml-detail tsml-location'; return $classes; }); tsml_header(); ?>
approximate !== 'yes') { ?>
  • formatted_address), TSML_ALLOWED_HTML) ?>

    region && !strpos($location->formatted_address, $location->region)) { ?>

    region) ?>

    notes) { tsml_format_notes($location->notes); } ?>
  • $location->ID]); $location_days = []; foreach ($meetings as $meeting) { // set types to be empty if it's not given, prevents php notices in log if (empty($meeting['types'])) { $meeting['types'] = []; } if (!isset($location_days[$meeting['day']])) { $location_days[$meeting['day']] = []; } $location_days[$meeting['day']][] = $meeting; } ksort($location_days); if (count($location_days)) { ?>
  • $meetings) { ?>