use portlets

This commit is contained in:
Dennis Eichhorn 2020-06-25 22:07:17 +02:00
parent 2e35dba36d
commit 9503aadbd7

View File

@ -26,19 +26,21 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12 col-md-8 col-lg-9"> <div class="col-xs-12 col-md-8 col-lg-9">
<div class="row"> <div class="row">
<?php foreach ($documents as $doc) : $url = UriFactory::build('{/prefix}wiki/doc/single?id=' . $doc->getId()); ?> <?php foreach ($documents as $doc) : $url = UriFactory::build('{/prefix}wiki/doc/single?id=' . $doc->getId()); ?>
<div class="portlet"> <div class="col-xs-12 plain-grid">
<div class="portlet-head"><a href="<?= $url; ?>"><?= $this->printHtml($doc->getName()); ?></a></div> <div class="portlet">
<div class="portlet-body"> <div class="portlet-head"><a href="<?= $url; ?>"><?= $this->printHtml($doc->getName()); ?></a></div>
<article> <div class="portlet-body">
<?= \substr($doc->getDoc(), 0, 300) . (\strlen($doc->getDoc()) > 300 ? '...' : ''); ?> <article>
</article> <?= \substr($doc->getDoc(), 0, 300) . (\strlen($doc->getDoc()) > 300 ? '...' : ''); ?>
</div> </article>
<div class="portlet-foot"> </div>
<div class="overflowfix"> <div class="portlet-foot">
<?php $tags = $doc->getTags(); foreach ($tags as $tag) : ?> <div class="overflowfix">
<span class="tag" style="background: <?= $this->printHtml($tag->getColor()); ?>"><?= $this->printHtml($tag->getTitle()); ?></span> <?php $tags = $doc->getTags(); foreach ($tags as $tag) : ?>
<?php endforeach; ?> <span class="tag" style="background: <?= $this->printHtml($tag->getColor()); ?>"><?= $this->printHtml($tag->getTitle()); ?></span>
<a href="<?= $url; ?>" class="button floatRight">More</a> <?php endforeach; ?>
<a href="<?= $url; ?>" class="button floatRight">More</a>
</div>
</div> </div>
</div> </div>
</div> </div>