initial work on dashboard
This commit is contained in:
parent
80d72112f3
commit
d96b7774da
2 changed files with 42 additions and 18 deletions
19
backend.php
19
backend.php
|
@ -238,6 +238,24 @@
|
||||||
|
|
||||||
print "<headlines id=\"$feed\"><![CDATA[";
|
print "<headlines id=\"$feed\"><![CDATA[";
|
||||||
|
|
||||||
|
if ($feed == -4) {
|
||||||
|
|
||||||
|
print "<div id=\"headlinesContainer\">";
|
||||||
|
|
||||||
|
print "PLACEHOLDER";
|
||||||
|
|
||||||
|
print "</div>";
|
||||||
|
|
||||||
|
print "]]></headlines>";
|
||||||
|
print "<headlines-count value=\"0\"/>";
|
||||||
|
print "<headlines-unread value=\"0\"/>";
|
||||||
|
print "<disable-cache value=\"0\"/>";
|
||||||
|
|
||||||
|
print "<articles>";
|
||||||
|
print "</articles>";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
$ret = outputHeadlinesList($link, $feed, $subop,
|
$ret = outputHeadlinesList($link, $feed, $subop,
|
||||||
$view_mode, $limit, $cat_view, $next_unread_feed, $offset);
|
$view_mode, $limit, $cat_view, $next_unread_feed, $offset);
|
||||||
|
|
||||||
|
@ -264,6 +282,7 @@
|
||||||
}
|
}
|
||||||
print "</articles>";
|
print "</articles>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);
|
if ($_GET["debug"]) $timing_info = print_checkpoint("20", $timing_info);
|
||||||
|
|
||||||
|
|
|
@ -4004,6 +4004,11 @@
|
||||||
printCategoryHeader($link, -1, $cat_hidden, false);
|
printCategoryHeader($link, -1, $cat_hidden, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (defined('_ENABLE_DASHBOARD')) {
|
||||||
|
printFeedEntry(-4, "virt", __("Dashboard"), 0,
|
||||||
|
"images/tag.png", $link);
|
||||||
|
}
|
||||||
|
|
||||||
$num_starred = getFeedUnread($link, -1);
|
$num_starred = getFeedUnread($link, -1);
|
||||||
$num_published = getFeedUnread($link, -2);
|
$num_published = getFeedUnread($link, -2);
|
||||||
$num_fresh = getFeedUnread($link, -3);
|
$num_fresh = getFeedUnread($link, -3);
|
||||||
|
|
Loading…
Reference in a new issue