echo count($this->guests); ?> </td> </tr> </tfoot> <tbody> <?php $html = ''; if (count($this->guests) > 0) { $guests = $this->guests; $cls = 'even'; foreach ($guests as $guest) { $cls = $cls == 'even' ? 'odd' : 'even'; $guest['ip'] = $guest['ip'] ? $guest['ip'] : Lang::txt('COM_MEMBERS_ACTIVITY_UNKNOWN'); $html .= "\t\t" . '<tr class="' . $cls . '">' . "\n"; $html .= "\t\t\t" . '<td class="textual-data">' . Lang::txt('COM_MEMBERS_ACTIVITY_GUEST') . '</td>' . "\n"; $html .= "\t\t\t" . '<td class="textual-data">' . $this->escape($guest['ip']) . '</td>' . "\n"; $html .= "\t\t\t" . '<td class="textual-data">' . \Components\Members\Helpers\Html::valformat($guest['idle'], 3) . '</td>' . "\n"; $html .= "\t\t" . '</tr>' . "\n"; } } else { $html .= "\t\t" . '<tr class="odd">' . "\n"; $html .= "\t\t\t" . '<td colspan="5">' . Lang::txt('COM_MEMBERS_ACTIVITY_NO_RESULTS') . '</td>' . "\n"; $html .= "\t\t" . '</tr>' . "\n"; } echo $html; ?> </tbody> </table> </section><!-- / .section -->