start implementing portlets

This commit is contained in:
Dennis Eichhorn 2020-02-29 19:50:20 +01:00
parent 8434c8ed89
commit d812e7513c
2 changed files with 17 additions and 13 deletions

View File

@ -30,18 +30,20 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12 col-md-8 col-lg-9">
<div class="row">
<?php foreach ($documents as $doc) : $url = UriFactory::build('{/prefix}wiki/doc/single?id=' . $doc->getId()); ?>
<section class="box wf-100">
<header><h1><a href="<?= $url; ?>"><?= $this->printHtml($doc->getName()); ?></a></h1></header>
<div class="portlet">
<div class="portlet-head"><a href="<?= $url; ?>"><?= $this->printHtml($doc->getName()); ?></a></div>
<div class="portlet-body">
<article>
<?= \substr($doc->getDoc(), 0, 300) . (\strlen($doc->getDoc()) > 300 ? '...' : ''); ?>
</article>
<div class="inner">
<div class="overflowfix">
<span class="tag">Test Tag</span>
<a href="<?= $url; ?>" class="button floatRight">More</a>
</div>
</div>
<div class="portlet-foot">
<div class="overflowfix">
<span class="tag">Test Tag</span>
<a href="<?= $url; ?>" class="button floatRight">More</a>
</div>
</section>
</div>
</div>
<?php endforeach; ?>
</div>
</div>

View File

@ -30,13 +30,15 @@ echo $this->getData('nav')->render();
<div class="row">
<div class="col-xs-12 col-md-8 col-lg-9">
<section class="box wf-100">
<header><h1><?= $this->printHtml($doc->getName()); ?></h1></header>
<article><?= $doc->getDoc(); ?></article>
<div class="inner">
<div class="portlet">
<div class="portlet-head"><a href="<?= $url; ?>"><?= $this->printHtml($doc->getName()); ?></a></div>
<div class="portlet-body">
<article><?= $doc->getDoc(); ?></article>
</div>
<div class="portlet-foot">
<span class="tag">FiBu v7.124.52334</span>
</div>
</section>
</div>
</div>
<div class="col-xs-12 col-md-4 col-lg-3">