Просмотр поста

.
galtsev.t
<?php exit;
<?php if (! empty($news_item['tags'])): ?>
    <div class="p-2">
        <?php foreach ($news_item['tags'] as $tag): ?>
            <?php if (! empty($tag)): ?>
                <a class="btn btn-sm btn-success" href="/news/search_tags/?tag=<?= urlencode($tag) ?>"><?= $tag ?></a>
            <?php endif; endforeach; ?>
    </div>
<?php endif; ?>
Чуть короче