diff --git a/public/class-water-the-theme-public.php b/public/class-water-the-theme-public.php index f08afca..dac066c 100644 --- a/public/class-water-the-theme-public.php +++ b/public/class-water-the-theme-public.php @@ -226,6 +226,16 @@ class Water_The_Theme_Public return $dateTimeB - $dateTimeA; }); + foreach ($statistics as &$row) { + if (preg_match('/Tail Race Level \(AMSL\)<\/td>([\d.]+)<\/td>/', $row, $matches)) { + // Extract the numeric value and append " ft" + $value = $matches[1] . ' ft'; + + // Replace the original content in the second + $row = preg_replace('/Tail Race Level \(AMSL\)<\/td>[\d.]+<\/td>/', "Tail Race Level (AMSL)$value", $row); + } + } + // highlight_string(var_export($statistics, true)); list($array1, $array2, $array3) = array_chunk($statistics, ceil(count($statistics) / 1)); // highlight_string(var_export($array1, true)); @@ -309,7 +319,7 @@ class Water_The_Theme_Public //$thePage .= "Tail Water Flow$waterflow"; break; } else { - $thePage .= "Tail Race Level (AMSL)$tail_race_evel"; + $thePage .= "Tail Race Level (AMSL)$tail_race_level"; //$thePage .= "Gage Datum (AMSL)$waterlevel ft"; //$thePage .= "Tail Water Flow$waterflow"; }