Validation errors fixed. Markup cleaned up.

git-svn-id: https://develop.svn.wordpress.org/trunk@60 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-05-23 14:52:31 +00:00
parent 16253ac6d2
commit 92faa791d6
5 changed files with 81 additions and 114 deletions

View File

@ -14,7 +14,7 @@
<!-- you can start editing here --> <!-- you can start editing here -->
<h2 id="comment">Comments</h2> <h2>Comments</h2>
<ol id="comments"> <ol id="comments">
<?php /* this line is b2's motor, do not delete it */ $wxcvbn_c=0; while($rowc = mysql_fetch_object($resultc)) { $wxcvbn_c++; $commentdata = get_commentdata($rowc->comment_ID); ?> <?php /* this line is b2's motor, do not delete it */ $wxcvbn_c=0; while($rowc = mysql_fetch_object($resultc)) { $wxcvbn_c++; $commentdata = get_commentdata($rowc->comment_ID); ?>
@ -27,7 +27,7 @@
QQQ; QQQ;
} else { } else {
echo $commentdata["comment_author"]; echo $commentdata["comment_author"];
} ?> <?php comment_date() ?> @ <?php comment_time() ?></cite></p> } ?> <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
</li> </li>
<!-- /comment --> <!-- /comment -->
<?php /* end of the loop, don't delete */ } if (!$wxcvbn_c) { ?> <?php /* end of the loop, don't delete */ } if (!$wxcvbn_c) { ?>

View File

@ -4,103 +4,82 @@ $blog=1; include ("blog.header.php"); while($row = mysql_fetch_object($result))
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title><?php echo $blogname ?> - comments on '<?php the_title() ?>'</title> <title><?php echo $blogname ?> - Comments on "<?php the_title() ?>"</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="reply-to" content="you@yourdomain.com" /> <style type="text/css" media="screen">
<meta http-equiv="imagetoolbar" content="no" /> @import url( layout2b.css );
<meta content="TRUE" name="MSSmartTagsPreventParsing" /> body { margin: 3px; }
</style>
<style type="text/css" media="screen"> <link rel="stylesheet" type="text/css" media="print" href="b2-include/print.css" />
@import url( layout2b.css );
</style>
<link rel="stylesheet" type="text/css" media="print" href="b2-include/print.css" />
<link rel="alternate" type="text/xml" title="XML" href="<?php echo $siteurl ?>/b2rss.php" />
</head> </head>
<body> <body>
<div id="header"><a href="" title="<?php echo $blogname ?>"><?php echo $blogname ?></a></div> <h1 id="header"><a href="" title="<?php echo $blogname ?>"><?php echo $blogname ?></a></h1>
<div id="contentcomments"> <div id="contentcomments">
<h2>Comments</h2>
<ol id="comments">
<div class="storyContent"> <?php /* this line is b2's motor, do not delete it */
<?php
$comment_author = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "name" : $HTTP_COOKIE_VARS["comment_author"];
$comment_author_email = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "email" : trim($HTTP_COOKIE_VARS["comment_author_email"]);
$comment_author_url = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "url" : trim($HTTP_COOKIE_VARS["comment_author_url"]);
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' ORDER BY comment_date"; $queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' ORDER BY comment_date";
$resultc = mysql_query($queryc); $resultc = mysql_query($queryc);
if ($resultc) { if ($resultc) {
?>
<!-- you can start editing here -->
<a name="comments"></a>
<p>&nbsp;</p>
<div><strong><span style="color: #0099CC">::</span> comments</strong></div>
<p>&nbsp;</p>
<?php // these lines are b2's motor, do not delete
while($rowc = mysql_fetch_object($resultc)) { while($rowc = mysql_fetch_object($resultc)) {
$commentdata = get_commentdata($rowc->comment_ID); $commentdata = get_commentdata($rowc->comment_ID);
?><a name="c<?php comment_ID() ?>"></a> ?>
<!-- comment --> <!-- comment -->
<p> <li id="comment-<?php comment_ID() ?>">
<b><?php comment_author() ?> <?php comment_author_email_link("email", " - ", "") ?><?php comment_author_url_link("url", " - ", "") ?></b>
<br />
<?php comment_text() ?> <?php comment_text() ?>
<br /> <p><cite>By <?php if ($commentdata["comment_author_url"] && $commentdata["comment_author_url"] != 'http://url') {
<?php comment_date() ?> @ <?php comment_time() ?> echo <<<QQQ
</p> <a href="{$commentdata["comment_author_url"]}">{$commentdata["comment_author"]}</a>
<p>&nbsp;</p> QQQ;
} else {
echo $commentdata["comment_author"];
} ?> <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
</li>
<!-- /comment --> <!-- /comment -->
<?php } /* end of the loop, don't delete */ } if (!$resultc) { ?>
<?php //end of the loop, don't delete <!-- this is displayed if there are no comments so far -->
} <li>No comments yet.</li>
?>
<div><strong><span style="color: #0099CC">::</span> leave a comment</strong></div>
<p>&nbsp;</p>
<?php /* if you delete this the sky will fall on your head */ } ?>
</ol>
<h2>Leave a Comment</h2>
<p>Line and paragraph breaks automatic, website trumps email, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <?php echo htmlentities(str_replace('>', '> ', $comment_allowed_tags)); ?></p>
<!-- form to add a comment --> <!-- form to add a comment -->
<form action="b2comments.post.php" method="post"> <form action="<?php echo $siteurl; ?>/b2comments.post.php" method="post" id="commentform">
<p>
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
<label for="author">name</label>
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($HTTP_SERVER_VARS["REQUEST_URI"]); ?>" /> <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
<p class="commentfield">
name<br />
<input type="text" name="author" class="textarea" value="<?php echo $comment_author ?>" size="20" tabindex="1" />
</p> </p>
<p class="commentfield"> <p>
email<br /> <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
<input type="text" name="email" class="textarea" value="<?php echo $comment_author_email ?>" size="20" tabindex="2" /> <label for="email">email</label>
</p> </p>
<p class="commentfield"> <p>
url<br /> <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
<input type="text" name="url" class="textarea" value="<?php echo $comment_author_url ?>" size="20" tabindex="3" /> <label for="url"><acronym title="Uniform Resource Locator">url</acronym></label>
</p> </p>
<p class="commentfield"> <p>
your comment<br /> <label for="comment">your comment</label>
<textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea">comment</textarea> <br />
<textarea name="comment" id="comment" cols="30" rows="4" tabindex="4" style="width: 90%"></textarea>
</p> </p>
<p class="commentfield"> <p>
<input type="checkbox" name="comment_autobr" value="1" <?php <input name="submit" type="submit" tabindex="5" value="Say it!" />
if ($autobr)
echo " checked=\"checked\"" ?> tabindex="6" /> Auto-BR (line-breaks become &lt;br> tags)<br />
<input type="submit" name="submit" class="buttonarea" value="ok" tabindex="5" />
</p> </p>
</form> </form>
@ -108,8 +87,8 @@ while($rowc = mysql_fetch_object($resultc)) {
<!-- /form --> <!-- /form -->
<p>&nbsp;</p>
<div><b><span style="color: #0099CC">::</span> <a href="javascript:window.close()">close this window</a></b></div> <div><strong><a href="javascript:window.close()">Close this window</a>.</strong></div>
<?php // if you delete this the sky will fall on your head <?php // if you delete this the sky will fall on your head
} }
@ -119,14 +98,11 @@ while($rowc = mysql_fetch_object($resultc)) {
<!-- // this is just the end of the motor - don't touch that line either :) --> <!-- // this is just the end of the motor - don't touch that line either :) -->
<?php } ?> <?php //} ?>
</div>
<p class="centerP"> <p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite></p>
[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]
</p>
</body> </body>

View File

@ -6,7 +6,7 @@
$resultc = mysql_query($queryc); if ($resultc) { $resultc = mysql_query($queryc); if ($resultc) {
?> ?>
<h2 id="trackback">Trackbacks</h2> <h2>Trackbacks</h2>
<p>The URL to TrackBack this entry is:</p> <p>The URL to TrackBack this entry is:</p>
<p><em><?php trackback_url() ?></em></p> <p><em><?php trackback_url() ?></em></p>

View File

@ -4,51 +4,42 @@ $blog=1; include ("blog.header.php"); while($row = mysql_fetch_object($result))
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title><?php echo $blogname ?> - trackbacks on '<?php the_title() ?>'</title> <title><?php echo $blogname ?> - Trackbacks on "<?php the_title() ?>"</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="reply-to" content="you@yourdomain.com" />
<meta http-equiv="imagetoolbar" content="no" /> <style type="text/css" media="screen">
<meta content="TRUE" name="MSSmartTagsPreventParsing" /> @import url( layout2b.css );
body { margin: 3px; }
<style type="text/css" media="screen"> </style>
@import url( layout2b.css ); <link rel="stylesheet" type="text/css" media="print" href="b2-include/print.css" />
</style>
<link rel="stylesheet" type="text/css" media="print" href="b2-include/print.css" />
<link rel="alternate" type="text/xml" title="XML" href="<?php echo $siteurl ?>/b2rss.php" />
</head> </head>
<body> <body>
<div id="header"><a title="<?php echo $blogname ?>"><?php echo $blogname ?></a></div> <h1 id="header"><a title="<?php echo $blogname ?>"><?php echo $blogname ?></a></h1>
<div id="contentcomments"> <div id="contentcomments">
<div class="storyContent"> <div class="storyContent">
<p> <p>The URL to TrackBack this entry is:</p>
The URL to TrackBack this entry is:<br /> <p><em><?php trackback_url() ?></em></p>
&nbsp;&nbsp;<em><?php trackback_url() ?></em>
</p>
<?php /* do not delete this line */ $queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content LIKE '%<trackback />%' ORDER BY comment_date"; $resultc = mysql_query($queryc); if ($resultc) { ?> <?php /* do not delete this line */ $queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content LIKE '%<trackback />%' ORDER BY comment_date"; $resultc = mysql_query($queryc); if ($resultc) { ?>
<a name="trackbacks"></a> <h2>Trackbacks</h2>
<p>&nbsp;</p> <ol id="trackbacks">
<div><strong><span style="color: #0099CC">::</span> trackbacks</strong></div>
<p>&nbsp;</p>
<?php /* this line is b2's motor, do not delete it */ $wxcvbn_tb=0; while($rowc = mysql_fetch_object($resultc)) { $commentdata = get_commentdata($rowc->comment_ID); $wxcvbn_tb++; ?> <?php /* this line is b2's motor, do not delete it */ $wxcvbn_tb=0; while($rowc = mysql_fetch_object($resultc)) { $commentdata = get_commentdata($rowc->comment_ID); $wxcvbn_tb++; ?>
<a name="tb<?php comment_ID() ?>"></a> <a name="tb<?php comment_ID() ?>"></a>
<!-- trackback --> <!-- trackback -->
<p> <li id="trackback-<?php comment_ID() ?>">
<?php comment_text() ?> <?php comment_text() ?>
<br />
<strong><span style="color: #0099CC">&middot;</span></strong> <p><cite>Tracked on <a href="<?php comment_author_url(); ?>" title="<?php comment_author() ?>"><?php comment_author() ?></a> on <?php comment_date() ?> @ <?php comment_time() ?></cite></p>
<em>Tracked on <a href="<?php comment_author_url(); ?>" title="<?php comment_author() ?>"><?php comment_author() ?></a> on <?php comment_date() ?> @ <?php comment_time() ?></em> </li>
</p>
<p>&nbsp;</p>
<!-- /trackback --> <!-- /trackback -->
@ -56,12 +47,13 @@ The URL to TrackBack this entry is:<br />
if (!$wxcvbn_tb) { ?> if (!$wxcvbn_tb) { ?>
<!-- this is displayed if there are no trackbacks so far --> <!-- this is displayed if there are no trackbacks so far -->
<p>No Trackback on this post so far.</p> <li>No trackbacks yet.</li>
<?php /* if you delete this the sky will fall on your head */ } ?> <?php /* if you delete this the sky will fall on your head */ } ?>
</ol>
<p>&nbsp;</p> <div><strong><a href="javascript:window.close()">close this window</a></strong></div>
<div><b><span style="color: #0099CC">::</span> <a href="javascript:window.close()">close this window</a></b></div>
<?php /* if you delete this the sky will fall on your head */ } ?> <?php /* if you delete this the sky will fall on your head */ } ?>
@ -71,9 +63,7 @@ The URL to TrackBack this entry is:<br />
</div> </div>
<p class="centerP"> <p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite></p>
[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]
</p>
</body> </body>

View File

@ -25,7 +25,7 @@ h2 {
margin-bottom: 2px; margin-bottom: 2px;
} }
p { p, li {
line-height: 130%; line-height: 130%;
} }
@ -116,5 +116,6 @@ p {
} }
.b2calendaremptycell { } .b2calendaremptycell { }
.b2calendarlinkpost { .b2calendarlinkpost {
color: #f00; text-decoration: none; color: #f00;
text-decoration: none;
} }