Update picoblog.php

This commit is contained in:
Lucas 2021-09-12 17:51:44 -03:00 committed by GitHub
parent d19e3b32c2
commit 3a550d5af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -206,9 +206,9 @@ class PicoBlog
$date = $entry['date'];
$date_p = date("M j, Y", strtotime($entry['date']));
if($show!=true){
$text = "<a href='?id={$id}'><div class='e index'><p><b><img class='pp' src='{$avatar}'> {$nick} • </b><span class='date' title='{$date}'>{$date_p}</span></p><span class='text'>" . $text . "</span></div></a>";
$text = "<div class='e elist'><p><b><img class='pp' src='{$avatar}'> {$nick} • </b><span class='date' title='{$date}'>{$date_p}<a class='go' href='?id={$id}'>➜</a></span></p><span class='text'>" . $text . "</span></div>";
} else {
$text = "<div class='e show'><h3><a href='{$url}'><img class='pp' src='{$avatar}'> {$nick}</a> • <span class='date' title='{$date}'>{$date_p}</span><span class='date' style='float:right'>#{$id}<span></h3><h2 class='text'>" . $text . "</h2></div>";
$text = "<div class='e show'><h3><a href='?'><img class='pp' src='{$avatar}'> {$nick}</a> • <span class='date' title='{$date}'>{$date_p}</span><span class='date' style='float:right'>#{$id}<span></h3><h2 class='text'>" . $text . "</h2></div>";
}
$html .= str_replace('{entry}', $text, $entryWrap);
}