some more placeholders for dashboard
This commit is contained in:
parent
d96b7774da
commit
1681df970b
14
backend.php
14
backend.php
|
@ -240,19 +240,7 @@
|
||||||
|
|
||||||
if ($feed == -4) {
|
if ($feed == -4) {
|
||||||
|
|
||||||
print "<div id=\"headlinesContainer\">";
|
generate_dashboard_feed($link);
|
||||||
|
|
||||||
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 {
|
} else {
|
||||||
|
|
||||||
|
|
|
@ -3755,7 +3755,8 @@
|
||||||
function print_headline_subtoolbar($link, $feed_site_url, $feed_title,
|
function print_headline_subtoolbar($link, $feed_site_url, $feed_title,
|
||||||
$bottom = false, $rtl_content = false, $feed_id = 0,
|
$bottom = false, $rtl_content = false, $feed_id = 0,
|
||||||
$is_cat = false, $search = false, $match_on = false,
|
$is_cat = false, $search = false, $match_on = false,
|
||||||
$search_mode = false, $offset = 0, $limit = 0) {
|
$search_mode = false, $offset = 0, $limit = 0,
|
||||||
|
$dashboard_menu = 0, $disable_feed = 0, $feed_small_icon = 0) {
|
||||||
|
|
||||||
$user_page_offset = $offset + 1;
|
$user_page_offset = $offset + 1;
|
||||||
|
|
||||||
|
@ -3806,6 +3807,8 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$dashboard_menu) {
|
||||||
|
|
||||||
if (strpos($_SESSION["client.userAgent"], "MSIE") === false) {
|
if (strpos($_SESSION["client.userAgent"], "MSIE") === false) {
|
||||||
|
|
||||||
print "<td class=\"headlineActions$rtl_cpart\">
|
print "<td class=\"headlineActions$rtl_cpart\">
|
||||||
|
@ -3888,6 +3891,28 @@
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} else { // dashboard menu actions
|
||||||
|
|
||||||
|
print "<td class=\"headlineActions$rtl_cpart\">
|
||||||
|
<ul class=\"headlineDropdownMenu\">
|
||||||
|
<li class=\"top2\">
|
||||||
|
<a href=\"#\" onclick=\"return displayDlg('quickAddFeed');\">".
|
||||||
|
__('Subscribe to feed')."</a>
|
||||||
|
</li>
|
||||||
|
<li class=\"vsep\"> </li>
|
||||||
|
<li class=\"top\">".__('Placeholder')."<ul>
|
||||||
|
<li onclick=\"\">".__('Placeholder')."</li>
|
||||||
|
<li onclick=\"\">".__('Placeholder')."</li>
|
||||||
|
<li onclick=\"\">".__('Placeholder')."</li>
|
||||||
|
</ul></li>
|
||||||
|
<li class=\"vsep\"> </li>
|
||||||
|
<li class=\"top\">".__('Show')."<ul>
|
||||||
|
<li onclick=\"\">".__('Update errors')."</li>
|
||||||
|
</ul></li></ul>";
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/* if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
|
/* if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
|
||||||
print "<td class=\"headlineActions$rtl_cpart\">
|
print "<td class=\"headlineActions$rtl_cpart\">
|
||||||
|
@ -3920,13 +3945,15 @@
|
||||||
|
|
||||||
print "</span>";
|
print "</span>";
|
||||||
|
|
||||||
if (!$bottom) {
|
if (!$bottom && !$disable_feed) {
|
||||||
print "
|
print "
|
||||||
<a target=\"_new\"
|
<a target=\"_new\"
|
||||||
href=\"backend.php?op=rss&id=$feed_id&is_cat=$is_cat$search_q\">
|
href=\"backend.php?op=rss&id=$feed_id&is_cat=$is_cat$search_q\">
|
||||||
<img class=\"noborder\"
|
<img class=\"noborder\"
|
||||||
alt=\"".__('Generated feed')."\" src=\"images/feed-icon-12x12.png\">
|
alt=\"".__('Generated feed')."\" src=\"images/feed-icon-12x12.png\">
|
||||||
</a>";
|
</a>";
|
||||||
|
} else if ($feed_small_icon) {
|
||||||
|
print "<img class=\"noborder\" alt=\"\" src=\"images/$feed_small_icon\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
@ -5329,4 +5356,27 @@
|
||||||
|
|
||||||
} // function update_daemon_common
|
} // function update_daemon_common
|
||||||
|
|
||||||
|
function generate_dashboard_feed($link) {
|
||||||
|
|
||||||
|
print "<div id=\"headlinesContainer\">";
|
||||||
|
|
||||||
|
print_headline_subtoolbar($link, "", "Dashboard",
|
||||||
|
false, false, -4, false, false, false,
|
||||||
|
false, 0, 0, true, true, "tag.png");
|
||||||
|
|
||||||
|
print "<div id=\"headlinesInnerContainer\" class=\"dashboard\">";
|
||||||
|
print "<div>There is <b>666</b> unread articles in <b>666</b> feeds.</div>";
|
||||||
|
print "</div>";
|
||||||
|
|
||||||
|
print "</div>";
|
||||||
|
|
||||||
|
print "]]></headlines>";
|
||||||
|
print "<headlines-count value=\"0\"/>";
|
||||||
|
print "<headlines-unread value=\"0\"/>";
|
||||||
|
print "<disable-cache value=\"1\"/>";
|
||||||
|
|
||||||
|
print "<articles>";
|
||||||
|
print "</articles>";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1730,3 +1730,6 @@ div.topLinks a.feedback {
|
||||||
color : #009900;
|
color : #009900;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.dashboard {
|
||||||
|
margin-left : 3px;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue