', $txt['who_title'], '

'; echo '
', $txt['who_show1'], '
'; // For every member display their name, time and action (and more for admin). $alternate = 0; foreach ($context['members'] as $member) { // $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg". echo ' '; // Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.) $alternate = !$alternate; } // No members? if (empty($context['members'])) { echo ' '; } echo '
', $txt['who_user'], $context['sort_by'] == 'user' ? '' : '', ' ', $txt['who_time'], $context['sort_by'] == 'time' ? '' : '', ' ', $txt['who_action'], '
'; // Guests don't have information like icq, skype, y!, and aim... and they can't be messaged. if (!$member['is_guest']) { echo ' ', $context['can_send_pm'] ? '' : '', $settings['use_image_buttons'] ? '' . $member['online']['text'] . '' : $member['online']['label'], $context['can_send_pm'] ? '' : '', ' ', isset($context['disabled_fields']['icq']) ? '' : $member['icq']['link'] , ' ', isset($context['disabled_fields']['skype']) ? '' : $member['skype']['link'], ' ', isset($context['disabled_fields']['yim']) ? '' : $member['yim']['link'], ' ', isset($context['disabled_fields']['aim']) ? '' : $member['aim']['link'], ' '; } echo ' ', $member['is_guest'] ? $member['name'] : '' . $member['name'] . '', ' '; if (!empty($member['ip'])) echo ' (' . $member['ip'] . ')'; echo ' ', $member['time'], ' ', $member['action'], '
', $txt['who_no_online_' . ($context['show_by'] == 'guests' || $context['show_by'] == 'spiders' ? $context['show_by'] : 'members')], '
'; echo '
', $txt['who_show1'], '
'; } function template_credits() { global $context, $txt; // The most important part - the credits :P. echo '

', $txt['credits'], '

'; foreach ($context['credits'] as $section) { if (isset($section['pretext'])) echo '

', $section['pretext'], '

'; if (isset($section['title'])) echo '

', $section['title'], '

'; echo '
'; foreach ($section['groups'] as $group) { if (isset($group['title'])) echo '
', $group['title'], '
'; // Try to make this read nicely. if (count($group['members']) <= 2) echo implode(' ' . $txt['credits_and'] . ' ', $group['members']); else { $last_peep = array_pop($group['members']); echo implode(', ', $group['members']), ' ', $txt['credits_and'], ' ', $last_peep; } echo '
'; } echo '
'; if (isset($section['posttext'])) echo '

', $section['posttext'], '

'; echo '
'; } // Other software and graphics if (!empty($context['credits_software_graphics'])) { echo '

', $txt['credits_software_graphics'], '

'; if (!empty($context['credits_software_graphics']['graphics'])) echo '
', $txt['credits_graphics'], '
', implode('
', $context['credits_software_graphics']['graphics']), '
'; if (!empty($context['credits_software_graphics']['software'])) echo '
', $txt['credits_software'], '
', implode('
', $context['credits_software_graphics']['software']), '
'; echo '
'; } // How about Modifications, we all love em if (!empty($context['credits_modifications'])) { echo '

', $txt['credits_modifications'], '

'; echo '
', $txt['credits_modifications'], '
', implode('
', $context['credits_modifications']), '
'; echo '
'; } // SMF itself echo '

', $txt['credits_copyright'], '

', $txt['credits_forum'], '
', '
', $context['copyrights']['smf']; echo '
'; if (!empty($context['copyrights']['mods'])) { echo '
', $txt['credits_modifications'], '
', implode('
', $context['copyrights']['mods']), '
'; } echo '
'; } ?>