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 {
|
||||||
|
|
||||||
|
|
204
functions.php
204
functions.php
|
@ -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,86 +3807,110 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($_SESSION["client.userAgent"], "MSIE") === false) {
|
if (!$dashboard_menu) {
|
||||||
|
|
||||||
print "<td class=\"headlineActions$rtl_cpart\">
|
if (strpos($_SESSION["client.userAgent"], "MSIE") === false) {
|
||||||
<ul class=\"headlineDropdownMenu\">
|
|
||||||
<li class=\"top2\">
|
print "<td class=\"headlineActions$rtl_cpart\">
|
||||||
".__('Select:')."
|
<ul class=\"headlineDropdownMenu\">
|
||||||
<a href=\"$sel_all_link\">".__('All')."</a>,
|
<li class=\"top2\">
|
||||||
<a href=\"$sel_unread_link\">".__('Unread')."</a>,
|
".__('Select:')."
|
||||||
<a href=\"$sel_none_link\">".__('None')."</a></li>
|
<a href=\"$sel_all_link\">".__('All')."</a>,
|
||||||
<li class=\"vsep\"> </li>
|
<a href=\"$sel_unread_link\">".__('Unread')."</a>,
|
||||||
<li class=\"top\">".__('Toggle')."<ul>
|
<a href=\"$sel_none_link\">".__('None')."</a></li>
|
||||||
<li onclick=\"$tog_unread_link\">".__('Unread')."</li>
|
|
||||||
<li onclick=\"$tog_marked_link\">".__('Starred')."</li>
|
|
||||||
<li onclick=\"$tog_published_link\">".__('Published')."</li>
|
|
||||||
</ul></li>
|
|
||||||
<li class=\"vsep\"> </li>
|
|
||||||
<li class=\"top\">".__('Mark as read')."<ul>
|
|
||||||
<li onclick=\"$catchup_sel_link\">".__('Selection')."</li>
|
|
||||||
<!-- <li onclick=\"$catchup_page_link\">".__('This page')."</li> -->";
|
|
||||||
|
|
||||||
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
|
|
||||||
|
|
||||||
print "
|
|
||||||
<li><span class=\"insensitive\">--------</span></li>
|
|
||||||
<li onclick=\"catchupRelativeToArticle(0)\">".__("Above active article")."</li>
|
|
||||||
<li onclick=\"catchupRelativeToArticle(1)\">".__("Below active article")."</li>
|
|
||||||
<li><span class=\"insensitive\">--------</span></li>";
|
|
||||||
}
|
|
||||||
|
|
||||||
print "
|
|
||||||
<li onclick=\"$catchup_feed_link\">".__('Entire feed')."</li></ul></li>
|
|
||||||
";
|
|
||||||
|
|
||||||
$enable_pagination = get_pref($link, "_PREFS_ENABLE_PAGINATION");
|
|
||||||
|
|
||||||
if ($limit != 0 && !$search && $enable_pagination) {
|
|
||||||
print "
|
|
||||||
<li class=\"vsep\"> </li>
|
<li class=\"vsep\"> </li>
|
||||||
<li class=\"top\"><a href=\"$page_next_link\">".__('Next page')."</a><ul>
|
<li class=\"top\">".__('Toggle')."<ul>
|
||||||
<li onclick=\"$page_prev_link\">".__('Previous page')."</li>
|
<li onclick=\"$tog_unread_link\">".__('Unread')."</li>
|
||||||
<li onclick=\"$page_first_link\">".__('First page')."</li></ul></li>
|
<li onclick=\"$tog_marked_link\">".__('Starred')."</li>
|
||||||
</ul>";
|
<li onclick=\"$tog_published_link\">".__('Published')."</li>
|
||||||
}
|
</ul></li>
|
||||||
|
<li class=\"vsep\"> </li>
|
||||||
if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
|
<li class=\"top\">".__('Mark as read')."<ul>
|
||||||
print "
|
<li onclick=\"$catchup_sel_link\">".__('Selection')."</li>
|
||||||
<li class=\"vsep\"> </li>
|
<!-- <li onclick=\"$catchup_page_link\">".__('This page')."</li> -->";
|
||||||
<li class=\"top3\">
|
|
||||||
<a href=\"javascript:labelFromSearch('$search', '$search_mode',
|
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
|
||||||
'$match_on', '$feed_id', '$is_cat');\">
|
|
||||||
".__('Convert to label')."</a></td>";
|
print "
|
||||||
|
<li><span class=\"insensitive\">--------</span></li>
|
||||||
|
<li onclick=\"catchupRelativeToArticle(0)\">".__("Above active article")."</li>
|
||||||
|
<li onclick=\"catchupRelativeToArticle(1)\">".__("Below active article")."</li>
|
||||||
|
<li><span class=\"insensitive\">--------</span></li>";
|
||||||
}
|
}
|
||||||
print "
|
|
||||||
</td>";
|
print "
|
||||||
|
<li onclick=\"$catchup_feed_link\">".__('Entire feed')."</li></ul></li>
|
||||||
} else {
|
";
|
||||||
// old style subtoolbar:
|
|
||||||
|
$enable_pagination = get_pref($link, "_PREFS_ENABLE_PAGINATION");
|
||||||
print "<td class=\"headlineActions$rtl_cpart\">".
|
|
||||||
__('Select:')."
|
if ($limit != 0 && !$search && $enable_pagination) {
|
||||||
<a href=\"$sel_all_link\">".__('All')."</a>,
|
print "
|
||||||
<a href=\"$sel_unread_link\">".__('Unread')."</a>,
|
<li class=\"vsep\"> </li>
|
||||||
<a href=\"$sel_none_link\">".__('None')."</a>
|
<li class=\"top\"><a href=\"$page_next_link\">".__('Next page')."</a><ul>
|
||||||
".
|
<li onclick=\"$page_prev_link\">".__('Previous page')."</li>
|
||||||
__('Toggle:')." <a href=\"$tog_unread_link\">".__('Unread')."</a>,
|
<li onclick=\"$page_first_link\">".__('First page')."</li></ul></li>
|
||||||
<a href=\"$tog_marked_link\">".__('Starred')."</a>
|
</ul>";
|
||||||
".
|
}
|
||||||
__('Mark as read:')."
|
|
||||||
<a href=\"#\" onclick=\"$catchup_page_link\">".__('Page')."</a>,
|
if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
|
||||||
<a href=\"#\" onclick=\"$catchup_feed_link\">".__('Feed')."</a>";
|
print "
|
||||||
|
<li class=\"vsep\"> </li>
|
||||||
if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
|
<li class=\"top3\">
|
||||||
|
<a href=\"javascript:labelFromSearch('$search', '$search_mode',
|
||||||
print "
|
'$match_on', '$feed_id', '$is_cat');\">
|
||||||
<a href=\"javascript:labelFromSearch('$search', '$search_mode',
|
".__('Convert to label')."</a></td>";
|
||||||
'$match_on', '$feed_id', '$is_cat');\">
|
}
|
||||||
".__('Convert to label')."</a>";
|
print "
|
||||||
|
</td>";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// old style subtoolbar:
|
||||||
|
|
||||||
|
print "<td class=\"headlineActions$rtl_cpart\">".
|
||||||
|
__('Select:')."
|
||||||
|
<a href=\"$sel_all_link\">".__('All')."</a>,
|
||||||
|
<a href=\"$sel_unread_link\">".__('Unread')."</a>,
|
||||||
|
<a href=\"$sel_none_link\">".__('None')."</a>
|
||||||
|
".
|
||||||
|
__('Toggle:')." <a href=\"$tog_unread_link\">".__('Unread')."</a>,
|
||||||
|
<a href=\"$tog_marked_link\">".__('Starred')."</a>
|
||||||
|
".
|
||||||
|
__('Mark as read:')."
|
||||||
|
<a href=\"#\" onclick=\"$catchup_page_link\">".__('Page')."</a>,
|
||||||
|
<a href=\"#\" onclick=\"$catchup_feed_link\">".__('Feed')."</a>";
|
||||||
|
|
||||||
|
if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
|
||||||
|
|
||||||
|
print "
|
||||||
|
<a href=\"javascript:labelFromSearch('$search', '$search_mode',
|
||||||
|
'$match_on', '$feed_id', '$is_cat');\">
|
||||||
|
".__('Convert to label')."</a>";
|
||||||
|
}
|
||||||
|
|
||||||
|
print "</td>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} else { // dashboard menu actions
|
||||||
|
|
||||||
print "</td>";
|
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>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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