'; foreach ($status->getProperties() as $key => $value) { if ($problemsOnly === true && ($key === 'ok' || $key === 'downtime_active') || ($key === 'total' && $showTotal !== true) ) { continue; } if ($value !== null && $value > 0) { $values = true; $title = $value . ' ' . $this->prettyTitle($key); $class = 'tlv-status-tile ' . str_replace('_', ' ', $key); $htm .= sprintf( '
%s
', $class, $title, $value ); } } $htm .= ''; return $values ? $htm : ''; } }