Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv4398
Modified Files:
serendipity_functions.inc.php
Log Message:
- Made "H" in 'Posted by X in Y at H' a link, like in movabletype
- Removed the text-decoration style, since it had no effect
- Cleaned it up a bit, we now have the link to each entry stored in $entryLink, so we don't have to make the link every time we use it
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- serendipity_functions.inc.php 28 Jun 2003 18:28:15 -0000 1.83
+++ serendipity_functions.inc.php 28 Jun 2003 18:47:14 -0000 1.84
@@ -381,30 +381,25 @@
foreach ($bydate as $date => $ents) {
echo "<div class='serendipity_Entry_Date'>";
echo "<div class='serendipity_date'>$date</div>";
-
foreach ($ents as $x => $entry) {
+ $entryLink = $serendipity['serendipityHTTPPath']
+ . "archives/"
+ . $entry['id']
+ . "_".serendipity_makeFilename($entry['title']) .".html";
echo "<div class='serendipity_title'>";
- echo "<a style='text-decoration:none;' href=\""
- . $serendipity['serendipityHTTPPath']
- . "archives/"
- . $entry['id']
- . "_".serendipity_makeFilename($entry['title']).".html\">";
+ echo "<a href=\"$entryLink\">";
echo htmlentities($entry['title']);
echo "</a>";
echo "</div>";
echo "<div class='serendipity_entry'>";
- echo nl2br(serendipity_emoticate(serendipity_markup_text($entry['body'], $entry['id'])));
+ echo nl2br(serendipity_emoticate(serendipity_markup_text($entry['body'], $entry['id'])));
if ($extended && strlen($entry['extended'])) {
- echo '<a name="#extended"></a>';
- echo nl2br(serendipity_emoticate(serendipity_markup_text($entry['extended'], $entry['id'])));
+ echo '<a name="#extended"></a>';
+ echo nl2br(serendipity_emoticate(serendipity_markup_text($entry['extended'], $entry['id'])));
}
if ($entry['exflag'] && !$extended) {
- echo "<br><div class='serendipity_entryFooter'><a href=\""
- . $serendipity['serendipityHTTPPath']
- . "archives/"
- . $entry['id']
- . "_".serendipity_makeFilename($entry['title']).".html#extended\">View Extended Entry</a></div><br>";
+ echo "<br><a href=\"$entryLink#extended\">View Extended Entry</a><br>";
}
echo "<div class='serendipity_entryFooter'><br>"
@@ -412,7 +407,7 @@
. htmlentities($entry['username'])
. ($entry['category_name']?(" in ${entry['category_name']}"):"")
. " ".AT ." "
- . date("H:i", $entry['timestamp']);
+ . "<a href=\"$entryLink\">". date("H:i", $entry['timestamp']) ."</a>";
if (!isset($serendipity['GET']['id'])) {
$label = $entry['comments'] == 1 ? COMMENT : COMMENTS;
|