diff --git a/Rocksolid_Light/common/images/new-articles.png b/Rocksolid_Light/common/images/new-articles.png new file mode 100644 index 0000000..fca6715 Binary files /dev/null and b/Rocksolid_Light/common/images/new-articles.png differ diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index 06bac47..8d7f41b 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -633,27 +633,6 @@ function groups_show($gruppen) if ($acttype != "group") { $acttype = "group"; } - /* Display group name and description */ - if (isset($userdata[$g->name])) { - $lineclass = "np_thread_line2"; - } else { - $lineclass = "np_thread_line1"; - } - $groupdisplay = ''; - $groupdisplay .= ''; - if ((isset($_SESSION['theme'])) && file_exists('../common/themes/' . $_SESSION['theme'] . '/images/latest.png')) { - $latest_image = '../common/themes/' . $_SESSION['theme'] . '/images/latest.png'; - } else { - $latest_image = '../common/images/latest.png'; - } - $groupdisplay .= ''; - $groupdisplay .= ''; - $groupdisplay .= ''; - - $groupdisplay .= ''; - $groupdisplay .= ''; - $groupdisplay .= 'name])) { + $lineclass = "np_thread_line2"; + } else { + $lineclass = "np_thread_line1"; + } + if($new) { + $latest_link = '&time=' . $userdata[$g->name]; + } else { + $latest_link = ''; + } + $groupdisplay = ''; + $groupdisplay .= ''; + if ((isset($_SESSION['theme'])) && file_exists('../common/themes/' . $_SESSION['theme'] . '/images/latest.png')) { + $latest_image = '../common/themes/' . $_SESSION['theme'] . '/images/latest.png'; + } else { + $latest_image = '../common/images/latest.png'; + } + if ($new) { + $latest_image = '../common/images/new-articles.png'; + $groupdisplay .= ''; + } else { + $groupdisplay .= ''; + } + $groupdisplay .= ''; + $groupdisplay .= ''; + + $groupdisplay .= ''; + $groupdisplay .= ''; + $groupdisplay .= '' . $new_style_on . group_display_name($g->name) . $new_style_off . "\n"; if ($new) { echo ''; @@ -685,13 +696,11 @@ function groups_show($gruppen) if ($g->description != "-") { $groupdisplay .= '

' . $g->description . '

'; } - $overview_dbh = null; if (isset($userdata[$g->name])) { $groupdisplay .= '

'; $groupdisplay .= '(unsubscribe)'; if ($new) { - $groupdisplay .= ' (new) '; - $groupdisplay .= ' (mark read)'; + $groupdisplay .= '(mark read)'; } $groupdisplay .= '