This commit is contained in:
Dennis Eichhorn 2024-03-10 02:24:56 +00:00
parent 84b06f937a
commit cc75846481
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,3 @@
import { jsOMS } from '../../jsOMS/Utils/oLib.js';
import { Autoloader } from '../../jsOMS/Autoloader.js'; import { Autoloader } from '../../jsOMS/Autoloader.js';
import { Editor } from './Models/Editor.js'; import { Editor } from './Models/Editor.js';

View File

@ -32,7 +32,10 @@ echo $this->data['nav']->render(); ?>
<article><?= $doc->content; ?></article> <article><?= $doc->content; ?></article>
<?php if (!empty($doc->tags)) : ?> <?php if (!empty($doc->tags)) : ?>
<?php foreach ($doc->tags as $tag) : ?> <?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 endforeach; ?>
<?php endif; ?> <?php endif; ?>
<?php if (!empty($files)) : ?> <?php if (!empty($files)) : ?>