mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-02-09 06:48:42 +00:00
fix tag-lists
This commit is contained in:
parent
c9b37aba18
commit
5a57a57a0e
|
|
@ -37,12 +37,14 @@ echo $this->data['nav']->render(); ?>
|
||||||
<article>
|
<article>
|
||||||
<?= Markdown::parse(\substr($doc->docRaw, 0, 500)); ?>
|
<?= Markdown::parse(\substr($doc->docRaw, 0, 500)); ?>
|
||||||
</article>
|
</article>
|
||||||
|
<div class="tag-list">
|
||||||
<?php foreach ($doc->tags as $tag) : ?>
|
<?php foreach ($doc->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">
|
||||||
<a href="<?= $url; ?>" class="button rf"><?= $this->getHtml('More', '0', '0'); ?></a>
|
<a href="<?= $url; ?>" class="button rf"><?= $this->getHtml('More', '0', '0'); ?></a>
|
||||||
|
|
|
||||||
|
|
@ -38,12 +38,14 @@ echo $this->data['nav']->render();
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<article><?= $doc->doc; ?></article>
|
<article><?= $doc->doc; ?></article>
|
||||||
|
|
||||||
|
<div class="tag-list">
|
||||||
<?php foreach ($doc->tags as $tag) : ?>
|
<?php foreach ($doc->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>
|
||||||
|
|
||||||
<?php $files = $doc->files; foreach ($files as $file) : ?>
|
<?php $files = $doc->files; foreach ($files as $file) : ?>
|
||||||
<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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user