Update picoblog.php

This commit is contained in:
Lucas T 2021-09-18 10:48:19 -03:00 committed by GitHub
parent f7b2767115
commit d020e6d600
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 = "<div class='e elist'><p><b><a href='?'><img class='pp' src='{$avatar}'> {$nick}</a> • </b><span class='date' title='{$date}'>{$date_p}<a class='go' href='?id={$id}'>➜</a></span></p><span class='text'>" . $text . "</span></div>";
$text = "<div class='e elist'><p><b><a href='$url'><img class='pp' src='{$avatar}'> {$nick}</a> • </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='?'><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='$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>";
}
$html .= str_replace('{entry}', $text, $entryWrap);
}