1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243:
<?php
function template_main()
{
global $context, $settings, $scripturl, $txt;
echo '
<div class="main_section" id="whos_online">
<form action="', $scripturl, '?action=who" method="post" id="whoFilter" accept-charset="', $context['character_set'], '">
<div class="cat_bar">
<h3 class="catbg">', $txt['who_title'], '</h3>
</div>
<div id="mlist">
<div class="pagesection">
<div class="pagelinks floatleft">', $context['page_index'], '</div>
<div class="selectbox floatright" id="upper_show">
', $txt['who_show'], '
<select name="show_top" onchange="document.forms.whoFilter.show.value = this.value; document.forms.whoFilter.submit();">';
foreach ($context['show_methods'] as $value => $label)
echo '
<option value="', $value, '" ', $value == $context['show_by'] ? ' selected' : '', '>', $label, '</option>';
echo '
</select>
<noscript>
<input type="submit" name="submit_top" value="', $txt['go'], '" class="button">
</noscript>
</div>
</div>
<table class="table_grid">
<thead>
<tr class="title_bar">
<th scope="col" class="lefttext" style="width: 40%;"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], $context['sort_by'] == 'user' ? '<span class="main_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a></th>
<th scope="col" class="lefttext time" style="width: 10%;"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], $context['sort_by'] == 'time' ? '<span class="main_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a></th>
<th scope="col" class="lefttext half_table">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';
foreach ($context['members'] as $member)
{
echo '
<tr class="windowbg">
<td>';
if (!$member['is_guest'])
echo '
<span class="contact_info floatright">
', $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['text'] . '">' : '', $settings['use_image_buttons'] ? '<span class="' . ($member['online']['is_online'] == 1 ? 'on' : 'off') . '" title="' . $member['online']['text'] . '"></span>' : $member['online']['label'], $context['can_send_pm'] ? '</a>' : '', '
</span>';
echo '
<span class="member', $member['is_hidden'] ? ' hidden' : '', '">
', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt['profile_of'] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', '
</span>';
if (!empty($member['ip']))
echo '
(<a href="' . $scripturl . '?action=', ($member['is_guest'] ? 'trackip' : 'profile;area=tracking;sa=ip;u=' . $member['id']), ';searchip=' . $member['ip'] . '">' . $member['ip'] . '</a>)';
echo '
</td>
<td class="time">', $member['time'], '</td>
<td>', $member['action'], '</td>
</tr>';
}
if (empty($context['members']))
echo '
<tr class="windowbg">
<td colspan="3">
', $txt['who_no_online_' . ($context['show_by'] == 'guests' || $context['show_by'] == 'spiders' ? $context['show_by'] : 'members')], '
</td>
</tr>';
echo '
</tbody>
</table>
<div class="pagesection" id="lower_pagesection">
<div class="pagelinks floatleft" id="lower_pagelinks">', $context['page_index'], '</div>
<div class="selectbox floatright">
', $txt['who_show'], '
<select name="show" onchange="document.forms.whoFilter.submit();">';
foreach ($context['show_methods'] as $value => $label)
echo '
<option value="', $value, '" ', $value == $context['show_by'] ? ' selected' : '', '>', $label, '</option>';
echo '
</select>
<noscript>
<input type="submit" value="', $txt['go'], '" class="button">
</noscript>
</div>
</div><!-- #lower_pagesection -->
</div><!-- #mlist -->
</form>
</div><!-- #whos_online -->';
}
function template_credits()
{
global $context, $txt;
echo '
<div class="main_section" id="credits">
<div class="cat_bar">
<h3 class="catbg">', $txt['credits'], '</h3>
</div>';
foreach ($context['credits'] as $section)
{
if (isset($section['pretext']))
echo '
<div class="windowbg">
<p>', $section['pretext'], '</p>
</div>';
if (isset($section['title']))
echo '
<div class="cat_bar">
<h3 class="catbg">', $section['title'], '</h3>
</div>';
echo '
<div class="windowbg">
<dl>';
foreach ($section['groups'] as $group)
{
echo '
<dt>
', isset($group['title']) ? '<strong>' . $group['title'] . '</strong>' : '', '
</dt>
<dd>';
$names = sentence_list($group['members']);
echo sprintf($txt['credits_list'], $names);
echo '
</dd>';
}
echo '
</dl>';
if (isset($section['posttext']))
echo '
<p class="posttext">', $section['posttext'], '</p>';
echo '
</div>';
}
if (!empty($context['credits_software_graphics']))
{
echo '
<div class="cat_bar">
<h3 class="catbg">', $txt['credits_software_graphics'], '</h3>
</div>
<div class="windowbg">';
if (!empty($context['credits_software_graphics']['graphics']))
echo '
<dl>
<dt><strong>', $txt['credits_graphics'], '</strong></dt>
<dd>', implode('</dd><dd>', $context['credits_software_graphics']['graphics']), '</dd>
</dl>';
if (!empty($context['credits_software_graphics']['software']))
echo '
<dl>
<dt><strong>', $txt['credits_software'], '</strong></dt>
<dd>', implode('</dd><dd>', $context['credits_software_graphics']['software']), '</dd>
</dl>';
if (!empty($context['credits_software_graphics']['fonts']))
echo '
<dl>
<dt><strong>', $txt['credits_fonts'], '</strong></dt>
<dd>', implode('</dd><dd>', $context['credits_software_graphics']['fonts']), '</dd>
</dl>';
echo '
</div>';
}
if (!empty($context['credits_modifications']) || !empty($context['copyrights']['mods']))
{
echo '
<div class="cat_bar">
<h3 class="catbg">', $txt['credits_modifications'], '</h3>
</div>
<div class="windowbg">
<ul>';
if (!empty($context['credits_modifications']))
echo '
<li>', implode('</li><li>', $context['credits_modifications']), '</li>';
if (!empty($context['copyrights']['mods']))
echo '
<li>', implode('</li><li>', $context['copyrights']['mods']), '</li>';
echo '
</ul>
</div>';
}
echo '
<div class="cat_bar">
<h3 class="catbg">', $txt['credits_forum'], ' ', $txt['credits_copyright'], '</h3>
</div>
<div class="windowbg">
', $context['copyrights']['smf'], '
</div>
</div><!-- #credits -->';
}
?>