View file modules/profile/templates/topic_row.phtml

File size: 959B
<?php

/**
 * This file is part of JohnCMS Content Management System.
 *
 * @copyright JohnCMS Community
 * @license   https://opensource.org/licenses/GPL-3.0 GPL-3.0
 * @link      https://johncms.com JohnCMS Project
 */

/**
 * @var $item
 */
?>

<div class="post-item border-bottom pb-2 pt-2">
    <div class="post-header d-flex justify-content-between">
        <div class="d-flex align-items-end">
            <a href="<?= $item['topic_url'] ?>" class="user-login mr-2"><?= $item['topic_name'] ?></a>
            <span class="post-date"><?= $item['display_date'] ?></span>
        </div>
        <div class="post-actions"></div>
    </div>
    <div class="pt-1">
        <div class="pb-1">
            <?= $item['text'] ?>
        </div>
        <div>
            <a href="<?= $item['category_url'] ?>"><?= $item['category_name'] ?></a> /
            <a href="<?= $item['section_url'] ?>"><?= $item['section_name'] ?></a>
        </div>
    </div>
</div>