This commit is contained in:
Dennis Eichhorn 2024-03-10 02:24:56 +00:00
parent f8152f0a0b
commit 23784aabd1
2 changed files with 8 additions and 2 deletions

View File

@ -38,7 +38,10 @@ echo $this->data['nav']->render(); ?>
<?= Markdown::parse(\substr($doc->docRaw, 0, 500)); ?>
</article>
<?php foreach ($doc->tags as $tag) : ?>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= empty($tag->icon) ? '' : ''; ?><?= $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; ?>
</div>
<div class="portlet-foot">

View File

@ -39,7 +39,10 @@ echo $this->data['nav']->render();
<article><?= $doc->doc; ?></article>
<?php foreach ($doc->tags as $tag) : ?>
<span class="tag" style="background: <?= $this->printHtml($tag->color); ?>"><?= empty($tag->icon) ? '' : ''; ?><?= $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 $files = $doc->files; foreach ($files as $file) : ?>