<?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>