Voicemail Messages: List view updates. Voicemail Edit: Hide Listen Link option.

This commit is contained in:
Nate
2019-12-13 12:56:48 -07:00
parent c7099bed85
commit eacc0095bd
4 changed files with 272 additions and 181 deletions
@@ -245,15 +245,11 @@
$row['file_size'] = filesize($row['file_path']);
$row['file_size_label'] = byte_convert($row['file_size']);
$row['file_ext'] = substr($row['file_path'], -3);
$message_length = $row['message_length'];
if ($message_length < 60 ) {
$message_length = $message_length. " sec";
}
else {
$message_length = round(($message_length/60), 2). " min";
}
$row['message_length_label'] = $message_length;
$message_minutes = floor($row['message_length'] / 60);
$message_seconds = $row['message_length'] % 60;
//use International System of Units (SI) - Source: https://en.wikipedia.org/wiki/International_System_of_Units
$row['message_length_label'] = ($message_minutes > 0 ? $message_minutes.' min' : null).($message_seconds > 0 ? ' '.$message_seconds.' s' : null);
$row['created_date'] = date("j M Y g:i a",$row['created_epoch']);
}
}