Initial commit as of 2018-10-16
This commit is contained in:
47
application/views/network/blog/comment_item.php
Normal file
47
application/views/network/blog/comment_item.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
use Coduo\PHPHumanizer\DateTimeHumanizer;
|
||||
|
||||
?>
|
||||
<li>
|
||||
<div class="well comment-well">
|
||||
<div class="post-non-content">
|
||||
<a href="<?= base_url('user/' . $data['username']) ?>" target="_blank">
|
||||
<img src="<?= $data['profile_picture'] ?>?w=100" class="img-fluid">
|
||||
</a>
|
||||
</div>
|
||||
<div class="content-container">
|
||||
<div class="content">
|
||||
<h3>
|
||||
<a href="<?= base_url('user/' . $data['username']) ?>" target="_blank">
|
||||
<?= $data['displayname'] ?>
|
||||
</a>
|
||||
<small>
|
||||
<?php
|
||||
$locale = isset($_SESSION['site_lang']) ? $_SESSION['site_lang'] : 'en';
|
||||
$date_created = strtotime($c['date_created']);
|
||||
echo DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$date_created"), $locale);
|
||||
?>
|
||||
unter
|
||||
<a href="<?= base_url('blog/post/' . $c['postUrl']) ?>">
|
||||
<?= $c['postTitle'] ?>
|
||||
</a>
|
||||
</small>
|
||||
</h3>
|
||||
<p class="comment"><?= $c['comment'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="action-btns">
|
||||
<a href="#" class="action-btn" data-toggle="tooltip" data-placement="top" title="Antworten">
|
||||
<i class="far fa-comment"></i>
|
||||
</a>
|
||||
<a href="#" class="action-btn" data-toggle="tooltip" data-placement="top" title="Gefällt mir">
|
||||
<i class="far fa-heart"></i>
|
||||
</a>
|
||||
<a href="#" class="action-btn" data-toggle="tooltip" data-placement="top" title="Mehr Optionen">
|
||||
<i class="fa fa-ellipsis-h"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
Reference in New Issue
Block a user