Skip to content
Snippets Groups Projects
Commit d4fc1dfa authored by Dries Buytaert's avatar Dries Buytaert
Browse files

* small improvements to my themes:
   - they now use 'discussion_num_filtered()' to display the number
     of filtered comments.
parent ed1a2443
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -39,7 +39,7 @@ function header($title) { ...@@ -39,7 +39,7 @@ function header($title) {
<TABLE BORDER="0" CELLPADDING="8" CELLSPACING="0"> <TABLE BORDER="0" CELLPADDING="8" CELLSPACING="0">
<TR> <TR>
<TD WIDTH="30" ROWSPAN="3">&nbsp;</TD> <TD WIDTH="30" ROWSPAN="3">&nbsp;</TD>
<TD WIDTH="470"><A HREF=""><IMG SRC="themes/marvin/images/logo.gif" ALT="drop.org" BORDER="0"></A></TD> <TD WIDTH="440"><A HREF=""><IMG SRC="themes/marvin/images/logo.gif" ALT="drop.org" BORDER="0"></A></TD>
<TD WIDTH="180"> <TD WIDTH="180">
<LI>Create an <A HREF="account.php?op=register">account</A> and <A HREF="submit.php">submit</A> new stories.</LI> <LI>Create an <A HREF="account.php?op=register">account</A> and <A HREF="submit.php">submit</A> new stories.</LI>
<LI>Send your questions, feedback and bug reports to <A HREF="mailto:info@drop.org">info@drop.org</A>.</LI> <LI>Send your questions, feedback and bug reports to <A HREF="mailto:info@drop.org">info@drop.org</A>.</LI>
...@@ -49,7 +49,7 @@ function header($title) { ...@@ -49,7 +49,7 @@ function header($title) {
<TD ALIGN="right" COLSPAN="2"><SMALL><A HREF="">home</A> | <A HREF="faq.php">faq</A> | <A HREF="diary.php">diary</A> | <A HREF="search.php">search</A> | <A HREF="submit.php">submit news</A> | <A HREF="account.php">user account</A></SMALL></TD> <TD ALIGN="right" COLSPAN="2"><SMALL><A HREF="">home</A> | <A HREF="faq.php">faq</A> | <A HREF="diary.php">diary</A> | <A HREF="search.php">search</A> | <A HREF="submit.php">submit news</A> | <A HREF="account.php">user account</A></SMALL></TD>
</TR> </TR>
<TR> <TR>
<TD VALIGN="top"> <TD VALIGN="top" WIDTH="440">
<? <?
} }
...@@ -156,16 +156,9 @@ function commentControl($sid, $title, $threshold, $mode, $order) { ...@@ -156,16 +156,9 @@ function commentControl($sid, $title, $threshold, $mode, $order) {
</FORM> </FORM>
</TD> </TD>
</TR> </TR>
<?
$result = db_query("SELECT COUNT(cid) FROM comments WHERE sid = $sid AND score < $threshold");
if ($result && $number = db_result($result, 0)) {
?>
<TR> <TR>
<TD ALIGN="center" BGCOLOR="<? echo "$this->bgcolor2"; ?>"><SMALL><FONT COLOR="<? echo "$this->fgcolor2"; ?>">There are at least <? echo $number; ?> comments below your threshold.</FONT></SMALL></TD> <TD ALIGN="center" BGCOLOR="<? echo "$this->bgcolor2"; ?>"><SMALL><FONT COLOR="#C0C0C0">At least <? echo format_plural(discussion_num_filtered($sid, $pid), "comment", "comments"); ?> below your threshold.</FONT></SMALL></TD>
</TR> </TR>
<?
}
?>
</TABLE> </TABLE>
</TD> </TD>
</TR> </TR>
...@@ -253,7 +246,7 @@ function box($subject, $content) { ...@@ -253,7 +246,7 @@ function box($subject, $content) {
function footer() { function footer() {
?> ?>
</TD> </TD>
<TD VALIGN="top"> <TD VALIGN="top" WIDTH="180">
<? <?
global $PHP_SELF; global $PHP_SELF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment