function wpjb_panel_features(Wpjb_Model_Job $job) { if ($job->expired()) { echo " wpjb-expired"; } elseif (time() - strtotime($job->job_expires_at) > 24 * 3600 * 3) { echo " wpjb-expiring"; } }