Fixed semantics. Cleaned up HTML in general.

git-svn-id: https://develop.svn.wordpress.org/trunk@16 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-05-06 08:48:48 +00:00
parent b46aa2d7c0
commit c82471529a
3 changed files with 49 additions and 76 deletions

View File

@ -14,77 +14,67 @@
<!-- you can start editing here --> <!-- you can start editing here -->
<a name="comments"></a> <h2 id="comment">Comments</h2>
<p>&nbsp;</p> <ol id="comments">
<div><strong><span style="color: #0099CC">::</span> comments</strong></div>
<p>&nbsp;</p>
<?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); ?>
<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() ?> @ <?php comment_time() ?></cite></p>
</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) { ?>
<!-- this is displayed if there are no pingbacks so far --> <!-- this is displayed if there are no comments so far -->
<p>No Comment on this post so far.</p> <li>No comments 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>
<div><strong><span style="color: #0099CC">::</span> leave a comment</strong></div> <h2>Leave a Comment</h2>
<p>&nbsp;</p> <p>Line and paragraph breaks automatic, website trumps email, basic <acronym title="Hypertext Markup Language">HTML</acronym> allowed.</p>
<!-- form to add a comment --> <!-- form to add a comment -->
<form action="<?php echo $siteurl; ?>/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="70" rows="4" tabindex="4"></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>
<!-- /form --> <!-- /form -->
<p>&nbsp;</p> <div><a href="javascript:history.go(-1)">Go back</a>.</div>
<div><b><span style="color: #0099CC">::</span> <a href="javascript:history.go(-1)">return to the blog</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
} }

View File

@ -6,45 +6,28 @@
$resultc = mysql_query($queryc); if ($resultc) { $resultc = mysql_query($queryc); if ($resultc) {
?> ?>
<a name="trackbacks"></a> <h2 id="trackback">Trackbacks</h2>
<div><strong><span style="color: #0099CC">::</span> trackbacks</strong></div>
<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>
<ol id="trackbacks">
<?php /* this line is b2's motor, do not delete it */ while($rowc = mysql_fetch_object($resultc)) { $commentdata = get_commentdata($rowc->comment_ID); ?> <?php /* this line is b2's motor, do not delete it */ while($rowc = mysql_fetch_object($resultc)) { $commentdata = get_commentdata($rowc->comment_ID); ?>
<li id="trackback-<?php comment_ID() ?>">
<?php comment_text() ?>
<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>
</li>
<a name="tb<?php comment_ID() ?>"></a> <?php /* end of the loop, don't delete */ } if (!$wxcvbn_c) { ?>
<!-- trackback -->
<p>
<?php comment_text() ?>
<br />
<strong><span style="color: #0099CC">&middot;</span></strong>
<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>
</p>
<p>&nbsp;</p>
<!-- /trackback -->
<?php /* end of the loop, don't delete */ } ?>
<p>&nbsp;</p>
<div><b><span style="color: #0099CC">::</span> <a href="javascript:history.go(-1)">return to the blog</a></b></div>
<!-- this is displayed if there are no trackbacks so far -->
<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>
<div><a href="javascript:history.go(-1)">Go back</a></div>
</div> <?php /* if you delete this the sky will fall on your head */ } ?>
<!-- STOP editing there --> <!-- STOP editing there -->
<?php <?php

View File

@ -19,7 +19,7 @@
</head> </head>
<body> <body>
<h1 id="header"><a href="" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1> <h1 id="header"><a href="<?php echo $siteurl; ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
<div id="content"> <div id="content">