38 lines
1.3 KiB
PHP
38 lines
1.3 KiB
PHP
|
<?php
|
||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||
|
?>
|
||
|
|
||
|
<li class="col-4 p-2 <?= strtolower($post_plattform) ?>">
|
||
|
<div class="card">
|
||
|
<a href="<?= $post_url ?>">
|
||
|
<div class="card-header bg-<?= strtolower($post_plattform) ?> text-white">
|
||
|
<i class="fab fa-<?= strtolower($post_plattform) ?>"></i>
|
||
|
<?= $post_plattform ?>
|
||
|
</div>
|
||
|
<?php if (!empty($post_img_source)): ?>
|
||
|
<div style="height: 200px; background: url(<?= $post_img_source ?>) center; background-size: cover;">
|
||
|
</div>
|
||
|
<?php endif; ?>
|
||
|
</a>
|
||
|
<div class="card-body">
|
||
|
<a href="<?= $post_url ?>">
|
||
|
<p class="card-text">
|
||
|
<?= $post_content ?>
|
||
|
</p>
|
||
|
</a>
|
||
|
<p class="card-text">
|
||
|
<small class="text-muted">
|
||
|
<i class="far fa-clock"></i>
|
||
|
<?= $post_date ?>
|
||
|
<br>
|
||
|
<i class="far fa-user"></i>
|
||
|
<?= lang('person_by') ?>
|
||
|
<a href="<?= $post_author_url ?>" target="_blank">
|
||
|
<?= $post_author ?>
|
||
|
</a>
|
||
|
</small>
|
||
|
</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</li>
|