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="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()); ?>
<section class="box wf-100"> <div class="portlet">
<header><h1><a href="<?= $url; ?>"><?= $this->printHtml($doc->getName()); ?></a></h1></header> <div class="portlet-head"><a href="<?= $url; ?>"><?= $this->printHtml($doc->getName()); ?></a></div>
<div class="portlet-body">
<article> <article>
<?= \substr($doc->getDoc(), 0, 300) . (\strlen($doc->getDoc()) > 300 ? '...' : ''); ?> <?= \substr($doc->getDoc(), 0, 300) . (\strlen($doc->getDoc()) > 300 ? '...' : ''); ?>
</article> </article>
<div class="inner"> </div>
<div class="overflowfix"> <div class="portlet-foot">
<span class="tag">Test Tag</span> <div class="overflowfix">
<a href="<?= $url; ?>" class="button floatRight">More</a> <span class="tag">Test Tag</span>
</div> <a href="<?= $url; ?>" class="button floatRight">More</a>
</div> </div>
</section> </div>
</div>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
</div> </div>

View File

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