Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv3859
Modified Files:
comment.php serendipity_functions.inc.php
Log Message:
Beautified comments/trackback display and the new/edit entry form.
Index: comment.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/comment.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- comment.php 24 May 2003 14:35:24 -0000 1.7
+++ comment.php 24 May 2003 19:16:15 -0000 1.8
@@ -6,13 +6,13 @@
serendipity_deleteComment($serendipity['GET']['delete'],$serendipity['GET']['entry'],$serendipity['GET']['type']);
}
-/* It's time to finally check if we need to remember the entered information,
+/* It's time to finally check if we need to remember the entered information,
the reason we are doing this up here, is because we want to send cookie-headers */
if ( isset($serendipity['POST']['remember']) ) {
$details['url'] = $serendipity['POST']['url'];
$details['name'] = $serendipity['POST']['name'];
$details['email'] = $serendipity['POST']['email'];
- $details['remember'] = 'checked';
+ $details['remember'] = 'checked';
serendipity_rememberCommentDetails($details);
} elseif ( isset($serendipity['POST']['comment']) ) {
serendipity_forgetCommentDetails();
@@ -56,7 +56,10 @@
<?php
if (!isset($serendipity['POST']['comment'])) {
if ($serendipity['GET']['type'] == "trackbacks") {
- echo '<div class="serendipity_commentsTitle">Trackbacks</div>';
+ echo '<div class="serendipity_commentsTitle">Trackbacks</div><br />';
+ echo '<b>Trackback URI for this entry:<br />'.str_repeat(" ",7);
+ $tbu = $serendipity['baseURL']."comment.php?type=trackback&entry_id=".$serendipity['GET']['entry_id'];
+ echo '<a href="'.$tbu.'">'.$tbu.'</a><p />';
serendipity_printTrackbacks(serendipity_fetchTrackbacks($id));
} else {
?>
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- serendipity_functions.inc.php 24 May 2003 14:35:24 -0000 1.48
+++ serendipity_functions.inc.php 24 May 2003 19:16:15 -0000 1.49
@@ -1281,17 +1281,19 @@
echo '<input type="hidden" name="serendipity[timestamp]" value="'.$entry["timestamp"]."\">\n";
?>
<tr>
- <td align="left">
+ <td align="left" valign="top">
<input type="text" name="serendipity[title]" value="<?=htmlentities($entry["title"])?>" size=30>
</td>
- <td nowrap="nowrap" align="right">
- <?=CATEGORY?> <?= $cat_list ?>
+ <td nowrap="nowrap" align="right" valign="top">
+ <?=CATEGORY?> <?= $cat_list ?></td><tr><td align="left">
<input type="button" value=" B " onClick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[body]'], 'b')">
<input type="button" value=" U " onClick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[body]'], 'u')">
<input type="button" value=" I " onClick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[body]'], 'i')">
<input type="button" value="<img>" onClick="serendipity_insImage(document.forms['serendipityEntry']['serendipity[body]'])">
<input type="button" value="<?=IMAGE?>" onClick="window.open('serendipity_admin_image_selector.php', 'ImageSel', 'width=800,height=600,toolbar=no');">
<input type="button" value="Link" onClick="serendipity_insLink(document.forms['serendipityEntry']['serendipity[body]'])">
+ </td><td align="right">
+ <input type="submit" value="<?=SAVE?>">
</td>
</tr>
<tr>
@@ -1310,11 +1312,6 @@
<textarea name="serendipity[extended]" cols=80 rows=20><?=htmlentities($entry["extended"])?></textarea>
</td>
</tr>
- <tr>
- <td colspan="2" align="right">
- <input type="submit" value="<?=SAVE?>">
- </td>
- </tr>
</form>
</table>
<?php
|