0 Membros e 1 Visitante estão a ver este tópico.
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';
<td class="windowbg" width="30" align="center" valign="middle"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...) if (!empty($board['children'])) { // Sort the links into an array with new boards bold so it can be imploded. $children = array(); /* Each child in each board's children has: id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */ foreach ($board['children'] as $child) { $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>'; $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link']; } echo ' <tr> <td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '"> <span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span> </td> </tr>'; }
// Show some basic information about the number of posts, etc.
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...) if (!empty($board['children'])) { // Sort the links into an array with new boards bold so it can be imploded. $children = array(); /* Each child in each board's children has: id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */ foreach ($board['children'] as $child) { $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts']. $child['viewer_text'] . ')">' . $child['name'] . '</a>'; $children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/on.gif" width="12" height="12" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/off.gif" width="12" height="12" alt="' . $txt[334] . '"/>' . $child['link']; } echo ' <table style="float:right; padding-left:10px;margin-top: 15px;" width="100%" cellspacing="0" cellpadding="3" border="0"> <tr> '; $child_counter = 0; if(empty($settings['child_boards_rows'])) { echo ' <td style="width:50%" class="smalltext" valign="top">'; for(; $child_counter < ceil(count($children)/2); $child_counter++) echo $children[$child_counter], '<br/>'; } echo ' </td> <td style="width:60%" class="smalltext" valign="top">'; for(; $child_counter < count($children); $child_counter++) echo $children[$child_counter], '<br/>'; echo ' </td> </tr> </table>'; }