add separate indicator for fresh articles
This commit is contained in:
parent
9897ca6772
commit
784ac51f88
3 changed files with 13 additions and 3 deletions
|
@ -4926,6 +4926,8 @@
|
||||||
$num_unread = 0;
|
$num_unread = 0;
|
||||||
$cur_feed_title = '';
|
$cur_feed_title = '';
|
||||||
|
|
||||||
|
$fresh_intl = get_pref($link, "FRESH_ARTICLE_MAX_AGE") * 60 * 60;
|
||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
while ($line = db_fetch_assoc($result)) {
|
||||||
|
|
||||||
$class = ($lnum % 2) ? "even" : "odd";
|
$class = ($lnum % 2) ? "even" : "odd";
|
||||||
|
@ -4943,8 +4945,7 @@
|
||||||
array_push($topmost_article_ids, $id);
|
array_push($topmost_article_ids, $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($line["last_read"] == "" &&
|
if ($line["last_read"] == "" && !sql_bool_to_bool($line["unread"])) {
|
||||||
($line["unread"] != "t" && $line["unread"] != "1")) {
|
|
||||||
|
|
||||||
$update_pic = "<img id='FUPDPIC-$id' src=\"images/updated.png\"
|
$update_pic = "<img id='FUPDPIC-$id' src=\"images/updated.png\"
|
||||||
alt=\"Updated\">";
|
alt=\"Updated\">";
|
||||||
|
@ -4952,6 +4953,13 @@
|
||||||
$update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.gif\"
|
$update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.gif\"
|
||||||
alt=\"Updated\">";
|
alt=\"Updated\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sql_bool_to_bool($line["unread"]) &&
|
||||||
|
time() - strtotime($line["updated_noms"]) < $fresh_intl) {
|
||||||
|
|
||||||
|
$update_pic = "<img id='FUPDPIC-$id' src=\"images/fresh_sign.png\"
|
||||||
|
alt=\"Fresh\">";
|
||||||
|
}
|
||||||
|
|
||||||
if ($line["unread"] == "t" || $line["unread"] == "1") {
|
if ($line["unread"] == "t" || $line["unread"] == "1") {
|
||||||
$class .= "Unread";
|
$class .= "Unread";
|
||||||
|
|
BIN
images/fresh_sign.png
Executable file
BIN
images/fresh_sign.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 177 B |
|
@ -320,7 +320,9 @@ function showArticleInHeadlines(id) {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
if (upd_img_pic && upd_img_pic.src.match("updated.png")) {
|
if (upd_img_pic && (upd_img_pic.src.match("updated.png") ||
|
||||||
|
upd_img_pic.src.match("fresh_sign.png"))) {
|
||||||
|
|
||||||
upd_img_pic.src = "images/blank_icon.gif";
|
upd_img_pic.src = "images/blank_icon.gif";
|
||||||
|
|
||||||
cache_invalidate(cache_prefix + getActiveFeedId());
|
cache_invalidate(cache_prefix + getActiveFeedId());
|
||||||
|
|
Loading…
Reference in a new issue