mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-16 16:38:41 +00:00
icon fixes, loading optimizations
This commit is contained in:
parent
c04d1506c2
commit
0f4bfe52ef
|
|
@ -44,7 +44,7 @@ echo $this->data['nav']->render(); ?>
|
||||||
<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>
|
||||||
<?php $tags = $news->getTags(); foreach ($tags as $tag) : ?>
|
<?php $tags = $news->getTags(); foreach ($tags as $tag) : ?>
|
||||||
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= empty($tag->icon) ? '' : '<i class="' . $this->printHtml($tag->icon) . '"></i>'; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
<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; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-foot">
|
<div class="portlet-foot">
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,10 @@ echo $this->data['nav']->render(); ?>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<?php foreach ($tags as $tag) : ?>
|
<?php foreach ($tags as $tag) : ?>
|
||||||
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= empty($tag->icon) ? '' : '<i class="' . $this->printHtml($tag->icon) . '"></i>'; ?><?= $this->printHtml($tag->getL11n()); ?></span>
|
<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; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user