mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-01-11 16:18:41 +00:00
fix tag-lists
This commit is contained in:
parent
4432323cc7
commit
a335df7daa
|
|
@ -42,12 +42,14 @@ echo $this->data['nav']->render(); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<article><?= Markdown::parse(\substr($news->plain, 0, 500)); ?></article>
|
<article><?= Markdown::parse(\substr($news->plain, 0, 500)); ?></article>
|
||||||
|
<div class="tag-list">
|
||||||
<?php foreach ($news->tags as $tag) : ?>
|
<?php foreach ($news->tags as $tag) : ?>
|
||||||
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
|
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
|
||||||
<?= empty($tag->icon) ? '' : '<i class="g-icon">' . $this->printHtml($tag->icon) . '</i>'; ?>
|
<?= empty($tag->icon) ? '' : '<i class="g-icon">' . $this->printHtml($tag->icon) . '</i>'; ?>
|
||||||
<?= $this->printHtml($tag->getL11n()); ?>
|
<?= $this->printHtml($tag->getL11n()); ?>
|
||||||
</span>
|
</span>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-foot">
|
<div class="portlet-foot">
|
||||||
<div class="overflowfix">
|
<div class="overflowfix">
|
||||||
|
|
|
||||||
|
|
@ -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>
|
<span><a class="content" href="<?= UriFactory::build('{/base}/media/view?id=' . $file->id);?>"><?= $file->name; ?></a></span>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="tag-list">
|
||||||
<?php foreach ($news->tags as $tag) : ?>
|
<?php foreach ($news->tags as $tag) : ?>
|
||||||
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
|
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
|
||||||
<?= $this->printHtml($tag->getL11n()); ?>
|
<?= $this->printHtml($tag->getL11n()); ?>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
<span><a class="content" href="<?= UriFactory::build('{/base}/media/view?id=' . $file->id);?>"><?= $file->name; ?></a></span>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="tag-list">
|
||||||
<?php foreach ($news->tags as $tag) : ?>
|
<?php foreach ($news->tags as $tag) : ?>
|
||||||
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
|
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>">
|
||||||
<?= $this->printHtml($tag->getL11n()); ?>
|
<?= $this->printHtml($tag->getL11n()); ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user