From 1a25c91fec763d7bd839eeac5b7b8efe2526ff08 Mon Sep 17 00:00:00 2001 From: yellowled <yellowled> Date: Mon, 14 Apr 2008 06:50:39 +0000 Subject: [PATCH] Modified output code for serendipity_plugin_shoutbox. --- .../serendipity_plugin_shoutbox.php | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php b/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php index de40ce3..242672e 100644 --- a/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php +++ b/plugins/serendipity_plugin_shoutbox/serendipity_plugin_shoutbox.php @@ -142,12 +142,10 @@ class serendipity_plugin_shoutbox extends serendipity_plugin } ?> <form action="<?php echo serendipity_currentURL(); ?>" method="post"> - <div> - <input type="hidden" name="action" value="fillshoutbox" /> - <textarea name="serendipity[shouttext]" rows="4" cols="15" style="width: 90%"></textarea> - <input name='submit' type='submit' value='<?php echo PLUGIN_SHOUTBOX_SUBMIT; ?>' /> - </div> - </form><br /> + <input type="hidden" name="action" value="fillshoutbox" /> + <textarea name="serendipity[shouttext]" rows="4" cols="15" style="width: 90%"></textarea> + <input name='submit' type='submit' value='<?php echo PLUGIN_SHOUTBOX_SUBMIT; ?>' /> + </form> <?php $q = 'SELECT s.body AS comment, s.timestamp AS stamp, @@ -156,7 +154,7 @@ class serendipity_plugin_shoutbox extends serendipity_plugin ORDER BY s.timestamp DESC LIMIT ' . $max_entries; ?> -<div style="margin: 0px; padding: 0px; text-align: left;"> +<div class="serendipity_shoutbox"> <?php $sql = serendipity_db_query($q); if ($sql && is_array($sql)) { @@ -170,7 +168,7 @@ class serendipity_plugin_shoutbox extends serendipity_plugin $deleteLink = ""; if ($_SESSION['serendipityAuthedUser'] === true) { - $deleteLink = ' | <a href="' . $serendipity['baseURL'] + $deleteLink = '<a href="' . $serendipity['baseURL'] . '?serendipity[action]=shoutboxdelete&serendipity[comment_id]=' . $row['comment_id'] . '">' . PLUGIN_SHOUTBOX_DELETE . '</a>'; } @@ -178,10 +176,9 @@ class serendipity_plugin_shoutbox extends serendipity_plugin serendipity_plugin_api::hook_event('frontend_display', $entry); $entry['comment'] = wordwrap($entry['comment'], $wordwrap, "\n", 1); - echo "<b>" . htmlspecialchars(serendipity_strftime($dateformat, $row['stamp'])) . '</b> <br />' . "\n" - . $entry['comment'] - . $deleteLink - . '<br /><br /><br />' . "\n\n"; + echo '<div class="serendipity_shoutbox_date">' . htmlspecialchars(serendipity_strftime($dateformat, $row['stamp'])) . '</div>' . "\n" + . '<div class="serendipity_shoutbox_comment">' . $entry['comment'] . '</div>' . "\n" + . '<div class="serendipity_shoutbox_delete">' . $deleteLink . '</div>' . "\n\n"; } } ?> -- 2.39.5