Restore local poster notification (italicise) in article-flat.
This commit is contained in:
parent
f5baa1e6f7
commit
4b554256d0
|
@ -407,6 +407,12 @@
|
|||
font-size: 1.0em;
|
||||
}
|
||||
|
||||
.short_header_from_with_subject_local_poster {
|
||||
font-style: italic;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 1.0em;
|
||||
}
|
||||
|
||||
/* short header From: (on it's own line) */
|
||||
.short_header_from {
|
||||
margin-top: 0;
|
||||
|
|
|
@ -570,6 +570,10 @@ function show_header_short($head, $group, $local_poster = false)
|
|||
// If Subject: is longer than this, place From: below Subject: in short short_header
|
||||
$maxsubjectlength = 70;
|
||||
|
||||
if (password_verify($CONFIG['thissitekey'] . $head->id, $head->rslight_site)) {
|
||||
$local_poster = true;
|
||||
}
|
||||
|
||||
echo '<div class="np_article_header">';
|
||||
|
||||
if ($head->name != "") {
|
||||
|
@ -582,13 +586,16 @@ function show_header_short($head, $group, $local_poster = false)
|
|||
}
|
||||
}
|
||||
|
||||
if ($local_poster) {
|
||||
$displayname = '<span class="short_header_from_with_subject_local_poster">' . $displayname . '</span>';
|
||||
}
|
||||
|
||||
// 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) {
|
||||
echo '<span class="short_header_subject">';
|
||||
echo htmlspecialchars($head->subject);
|
||||
echo '</span><span class="short_header_from_with_subject">';
|
||||
echo ' (<b>From: </b>' . $displayname . ')<br>';
|
||||
echo '</span>';
|
||||
echo ' </span>(<span class="short_header_from_with_subject"><b>From: </b></span>' . $displayname . ')<br>';
|
||||
} else {
|
||||
echo '<div class="short_header_subject">';
|
||||
echo htmlspecialchars($head->subject) . "<br>";
|
||||
|
|
Loading…
Reference in New Issue