fix tag-lists

This commit is contained in:
Dennis Eichhorn 2024-04-07 18:11:03 +00:00
parent 4432323cc7
commit a335df7daa
3 changed files with 4 additions and 2 deletions

View File

@ -42,12 +42,14 @@ echo $this->data['nav']->render(); ?>
</div>
<div class="portlet-body">
<article><?= Markdown::parse(\substr($news->plain, 0, 500)); ?></article>
<div class="tag-list">
<?php foreach ($news->tags as $tag) : ?>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
<?= empty($tag->icon) ? '' : '<i class="g-icon">' . $this->printHtml($tag->icon) . '</i>'; ?>
<?= $this->printHtml($tag->getL11n()); ?>
</span>
<?php endforeach; ?>
</div>
</div>
<div class="portlet-foot">
<div class="overflowfix">

View File

@ -48,7 +48,7 @@ echo $this->data['nav']->render(); ?>
<span><a class="content" href="<?= UriFactory::build('{/base}/media/view?id=' . $file->id);?>"><?= $file->name; ?></a></span>
<?php endforeach; ?>
</div>
<div>
<div class="tag-list">
<?php foreach ($news->tags as $tag) : ?>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
<?= $this->printHtml($tag->getL11n()); ?>

View File

@ -48,7 +48,7 @@ echo $this->data['nav']->render(); ?>
<span><a class="content" href="<?= UriFactory::build('{/base}/media/view?id=' . $file->id);?>"><?= $file->name; ?></a></span>
<?php endforeach; ?>
</div>
<div>
<div class="tag-list">
<?php foreach ($news->tags as $tag) : ?>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
<?= $this->printHtml($tag->getL11n()); ?>