|
|
@ -339,6 +339,8 @@ class Feeds extends Handler_Protected {
|
|
|
|
$label_cache = $line["label_cache"];
|
|
|
|
$label_cache = $line["label_cache"];
|
|
|
|
$labels = false;
|
|
|
|
$labels = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$mouseover_attrs = "onmouseover='postMouseIn(event, $id)' onmouseout='postMouseOut($id)'";
|
|
|
|
|
|
|
|
|
|
|
|
if ($label_cache) {
|
|
|
|
if ($label_cache) {
|
|
|
|
$label_cache = json_decode($label_cache, true);
|
|
|
|
$label_cache = json_decode($label_cache, true);
|
|
|
|
|
|
|
|
|
|
|
@ -367,29 +369,13 @@ class Feeds extends Handler_Protected {
|
|
|
|
++$num_unread;
|
|
|
|
++$num_unread;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($line["marked"]) {
|
|
|
|
$marked_pic_src = $line["marked"] ? "mark_set.png" : "mark_unset.png";
|
|
|
|
$marked_pic = "<img
|
|
|
|
$class .= $line["marked"] ? " marked" : "";
|
|
|
|
src=\"images/mark_set.png\"
|
|
|
|
$marked_pic = "<img src=\"images/$marked_pic_src\" class=\"markedPic\" onclick='toggleMark($id)'>";
|
|
|
|
class=\"markedPic\" alt=\"Unstar article\"
|
|
|
|
|
|
|
|
onclick='toggleMark($id)'>";
|
|
|
|
|
|
|
|
$class .= " marked";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$marked_pic = "<img
|
|
|
|
|
|
|
|
src=\"images/mark_unset.png\"
|
|
|
|
|
|
|
|
class=\"markedPic\" alt=\"Star article\"
|
|
|
|
|
|
|
|
onclick='toggleMark($id)'>";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($line["published"]) {
|
|
|
|
$published_pic_src = $line["published"] ? "pub_set.png" : "pub_unset.png";
|
|
|
|
$published_pic = "<img src=\"images/pub_set.png\"
|
|
|
|
$class .= $line["published"] ? " published" : "";
|
|
|
|
class=\"pubPic\"
|
|
|
|
$published_pic = "<img src=\"images/$published_pic_src\" class=\"pubPic\" onclick='togglePub($id)'>";
|
|
|
|
alt=\"Unpublish article\" onclick='togglePub($id)'>";
|
|
|
|
|
|
|
|
$class .= " published";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$published_pic = "<img src=\"images/pub_unset.png\"
|
|
|
|
|
|
|
|
class=\"pubPic\"
|
|
|
|
|
|
|
|
alt=\"Publish article\" onclick='togglePub($id)'>";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$updated_fmt = make_local_datetime($line["updated"], false, false, false, true);
|
|
|
|
$updated_fmt = make_local_datetime($line["updated"], false, false, false, true);
|
|
|
|
$date_entered_fmt = T_sprintf("Imported at %s",
|
|
|
|
$date_entered_fmt = T_sprintf("Imported at %s",
|
|
|
@ -456,9 +442,6 @@ class Feeds extends Handler_Protected {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$mouseover_attrs = "onmouseover='postMouseIn(event, $id)'
|
|
|
|
|
|
|
|
onmouseout='postMouseOut($id)'";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$reply['content'] .= "<div class='hl hlMenuAttach $class' data-orig-feed-id='$feed_id' data-article-id='$id' id='RROW-$id' $mouseover_attrs>";
|
|
|
|
$reply['content'] .= "<div class='hl hlMenuAttach $class' data-orig-feed-id='$feed_id' data-article-id='$id' id='RROW-$id' $mouseover_attrs>";
|
|
|
|
|
|
|
|
|
|
|
|
$reply['content'] .= "<div class='hlLeft'>";
|
|
|
|
$reply['content'] .= "<div class='hlLeft'>";
|
|
|
@ -551,9 +534,6 @@ class Feeds extends Handler_Protected {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$mouseover_attrs = "onmouseover='postMouseIn(event, $id)'
|
|
|
|
|
|
|
|
onmouseout='postMouseOut($id)'";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$expanded_class = $expand_cdm ? "expanded" : "expandable";
|
|
|
|
$expanded_class = $expand_cdm ? "expanded" : "expandable";
|
|
|
|
|
|
|
|
|
|
|
|
$tmp_content = "<div class=\"cdm $hlc_suffix $expanded_class $class\"
|
|
|
|
$tmp_content = "<div class=\"cdm $hlc_suffix $expanded_class $class\"
|
|
|
|