timestamp) !== $prevDateGroup) { $daysRendered++; $entries[$daysRendered] = '
  • ' . date('j F Y', $incident->timestamp) . '

  • '; } $classes = ''; $searchString = $incident->title . ' ' . $incident->description; $classes .= stripos($searchString, 'false alarm') !== false ? 'false-alarm ' : ''; $classes .= preg_match('/small vehicle|vehicle fire|Fire Vehicle|RTC|Road Traffic Collision|Car Fire/i', $searchString) === 1 ? 'vehicle-fire ' : ''; $classes .= preg_match('/large vehicle|vehicle large|Lorry Fire/i', $searchString) === 1 ? 'vehicle-fire-large ' : ''; $classes .= preg_match('/locked in|Shut In|Lift Release|Release (?:of )?person|person released/i', $searchString) === 1 ? 'locked-in ' : ''; $classes .= preg_match('/small animal|RSPCA|hamster|dog|puppy/i', $searchString) === 1 ? 'small-animal ' : ''; $classes .= preg_match('/aircraft/i', $searchString) === 1 ? 'aircraft ' : ''; $classes .= preg_match('/hazmat|biohazard/i', $searchString) === 1 ? 'hazmat ' : ''; $entries[$daysRendered] .= '
  • ' . $incident->title . '

    ' . $incident->description . '

  • '; $prevDateGroup = date('d M Y', $incident->timestamp); } $entries = array_slice($entries, (int)$_GET['offset'], (int)$_GET['count']); echo implode('', $entries);