Show to hide 0 minutes
-
How could I hide the “0 minutes” indication if the reading time is less than a minute?
This is probably the code I should modify?if($time == "1") { if($seconds >= 30) { $minutes = $minutes + 1; } $estimated_time = $estimated_time.' '.$minutes . ' minute'. ($minutes == 1 ? '' : 's'); } else { $estimated_time = $estimated_time.' '.$minutes . ' minute'. ($minutes == 1 ? '' : 's') . ', ' . $seconds . ' seconde' . ($seconds == 1 ? '' : 's'); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Show to hide 0 minutes’ is closed to new replies.