Initial commit as of 2018-10-16
This commit is contained in:
18
application/views/network/user/user_followers_item.php
Normal file
18
application/views/network/user/user_followers_item.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
use Coduo\PHPHumanizer\DateTimeHumanizer;
|
||||
|
||||
$dateFollowing = strtotime($data['followedSince']);
|
||||
?>
|
||||
<li>
|
||||
<a href="<?= base_url('user/' . $data['username']) ?>">
|
||||
<div style="background-image: url(<?= $data['header_image'] ?>)" class="header-image"></div>
|
||||
<img src="<?= $data['profile_picture'] ?>" alt="" class="img-fluid rounded-circle profile-picture">
|
||||
<div class="user-card-content">
|
||||
<h3><?= $data['displayname'] ?></h3>
|
||||
<small><?= $data['followerCount'] ?> Follower | folgt
|
||||
seit <?= str_replace(['vor ', ' ago', 'il y a'], ['', '', ''], DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$dateFollowing"), $_SESSION['site_lang'])) ?></small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
Reference in New Issue
Block a user