diff --git a/Rocksolid_Light/common/themes/style.css b/Rocksolid_Light/common/themes/style.css index 0917bdd..ed69735 100644 --- a/Rocksolid_Light/common/themes/style.css +++ b/Rocksolid_Light/common/themes/style.css @@ -406,6 +406,19 @@ } /* ***** SHORT HEADERS ***** */ + +/* short header 'Subject: ' title */ +.short_header_subject_title { + margin-top: 0; + margin-bottom: 0; + margin-left: 0.4em; + text-decoration: none; + font-weight: bold; + color: var(--color-highlight); + font-family: Arial, Helvetica, sans-serif; + font-size: 1.1em; +} + /* short header Subject: */ .short_header_subject { margin-top: 0; @@ -420,11 +433,12 @@ .short_header_from_with_subject { margin-top: 0; margin-bottom: 0; + margin-right: 1em; text-decoration: none; + float: right; color: var(--color-highlight); - font-style: italic; font-family: Arial, Helvetica, sans-serif; - font-size: 1.0em; + font-size: 1.2em; } .short_header_from_local_poster { @@ -447,16 +461,42 @@ .short_header_date { margin-top: 0; margin-bottom: 0; + margin-right: 1em; text-decoration: none; color: var(--color-highlight); font-family: Arial, Helvetica, sans-serif; - font-size: 0.8em; + font-size: 0.9em; +} + +/* short header 'Date: ' title (with subject)*/ +.short_header_date_title_with_subject { + margin-top: 0; + margin-bottom: 0; + text-decoration: none; + + font-weight: bold; + color: var(--color-highlight); + font-family: Arial, Helvetica, sans-serif; + font-size: 1.1em; +} + +/* short header Date: */ +.short_header_date_with_subject { + margin-top: 0; + margin-bottom: 0; + margin-right: 1em; + text-decoration: none; + float: right; + color: var(--color-text); + font-family: Arial, Helvetica, sans-serif; + font-size: 1.1em; } /* short header Newsgroups: */ .short_header_newsgroups { margin-top: 0; margin-bottom: 0; + margin-left: 0.4em; text-decoration: none; color: var(--color-highlight); font-family: Arial, Helvetica, sans-serif; diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php index b8e6d15..7196dd4 100644 --- a/Rocksolid_Light/rocksolid/lib/message.inc.php +++ b/Rocksolid_Light/rocksolid/lib/message.inc.php @@ -587,15 +587,21 @@ function show_header_short($head, $group, $local_poster = false) } if ($local_poster) { - $displayname = '' . $displayname . ''; + $displayname = '' . $displayname . ''; } + // Try to use client timezone else default to UTC + $displaydate = get_date_for_client_timezone($head->date); + // Where to show From in short_headers - if (isset($OVERRIDES['short_header_show_from_in_subject']) && $OVERRIDES['short_header_show_from_in_subject'] == true && strlen($head->subject) < $maxsubjectlength) { + if (isset($OVERRIDES['short_header_show_from_in_subject']) && $OVERRIDES['short_header_show_from_in_subject'] == true) { + echo ''; + echo 'Subject: '; + echo ''; echo ''; echo htmlspecialchars($head->subject); - echo ''; - echo '  (From: ' . $displayname . ')
'; + echo ''; + echo 'From: ' . $displayname . '
'; } else { echo '
'; echo htmlspecialchars($head->subject) . "
"; @@ -603,10 +609,25 @@ function show_header_short($head, $group, $local_poster = false) echo '
'; echo "From: " . $displayname; echo '
'; + // Try to use client timezone else default to UTC + echo ''; + echo 'Date: ' . $displaydate; + echo '
'; } - // Try to use client timezone else default to UTC - $displaydate = get_date_for_client_timezone($head->date); + echo ''; + echo 'Newsgroups: '; + $ngroups = preg_replace("/\,|\ /", "\t", $head->newsgroups); + $ngroups = explode("\t", $ngroups); + // echo " "; + foreach ($ngroups as $onegroup) { + if (get_section_by_group($onegroup)) { + echo ' ' . $onegroup . " "; + } else { + echo " " . $onegroup . " "; + } + } + echo ''; // Copy MID to clipboard (requires js) echo ' '; - echo ''; - echo 'Date: ' . $displaydate; - echo ''; - - echo ''; - echo '  Newsgroups: '; - $ngroups = preg_replace("/\,|\ /", "\t", $head->newsgroups); - $ngroups = explode("\t", $ngroups); - // echo " "; - foreach ($ngroups as $onegroup) { - if (get_section_by_group($onegroup)) { - echo ' ' . $onegroup . " "; - } else { - echo " " . $onegroup . " "; - } + if (isset($OVERRIDES['short_header_show_from_in_subject']) && $OVERRIDES['short_header_show_from_in_subject'] == true) { + echo ''; + echo ''; + echo 'Date: '; + echo ''; + echo $displaydate; + echo ''; } - echo ''; + if (isset($head->followup) && ($article_show["Followup"]) && ($head->followup != "")) { echo '
'; @@ -699,8 +712,8 @@ function show_header_short($head, $group, $local_poster = false) echo '
'; } echo '
'; - // echo '

'; - // echo ''; + // echo '

'; + // echo ''; } function copy_messageid() diff --git a/Rocksolid_Light/rslight/overrides.inc.php.dist b/Rocksolid_Light/rslight/overrides.inc.php.dist index 9e3e2c2..ee9d63c 100644 --- a/Rocksolid_Light/rslight/overrides.inc.php.dist +++ b/Rocksolid_Light/rslight/overrides.inc.php.dist @@ -16,7 +16,7 @@ return [ // Display short view of headers (only subject, name, date) 'short_headers' => true, - // Display From to the right of Subject in short_headers + // Display From and Date to the right of Subject in short_headers // Default is false, will show separately (below) 'short_header_show_from_in_subject' => false,