Database refactoring and improving blog comments, blog post history and more
This commit is contained in:
@@ -19,15 +19,15 @@
|
||||
|
||||
$return = '';
|
||||
foreach ($posts as $result) {
|
||||
$date = strtotime($result['postPublishDate']);
|
||||
$date = strtotime($result['initialRelease']);
|
||||
$return .= '<div class="media">';
|
||||
|
||||
if ($result['postImage'] != '') {
|
||||
$return .= '<img src="' . $result['postImage'] . '?w=100" style="width:75px" class="img-fluid mr-3">';
|
||||
if ($result['image'] != '') {
|
||||
$return .= '<img src="' . $result['image'] . '?w=100" style="width:75px" class="img-fluid mr-3">';
|
||||
}
|
||||
|
||||
$return .= '<div class="media-body">
|
||||
<h6 class="my-0"><a href="#">' . $result['postTitle'] . '</a></h6>
|
||||
<h6 class="my-0"><a href="#">' . $result['title'] . '</a></h6>
|
||||
<small class="text-white-50">' . lang('footer_published') . ' ' . DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$date"), $_SESSION['site_lang']) . '</small>
|
||||
</div>
|
||||
</div>';
|
||||
|
Reference in New Issue
Block a user