Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/application/views/post_list_entry.php

38 lines
1.2 KiB
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<li class="col-4 p-2 <?= strtolower($origin) ?>">
<div class="card">
<a href="<?= $url ?>">
<div class="card-header bg-<?= strtolower($origin) ?> text-white">
<i class="fab fa-<?= strtolower($origin) ?>"></i>
<?= $origin ?>
</div>
<?php if (!empty($imageSource)): ?>
<div style="height: 200px; background: url(<?= $imageSource ?>) center; background-size: cover;">
</div>
<?php endif; ?>
</a>
<div class="card-body">
<a href="<?= $url ?>">
<p class="card-text">
<?= $content ?>
</p>
</a>
<p class="card-text">
<small class="text-muted">
<i class="far fa-clock"></i>
<?= $date ?>
<br>
<i class="far fa-user"></i>
<?= lang('person_by') ?>
<a href="<?= $authorUrl ?>" target="_blank">
<?= $authorName ?>
</a>
</small>
</p>
</div>
</div>
</li>