implement todos

This commit is contained in:
Dennis Eichhorn 2021-07-15 21:51:30 +02:00
parent 34df9d41fa
commit 44d82eda27
2 changed files with 16 additions and 12 deletions

View File

@ -47,7 +47,9 @@ $next = empty($modules) ? '{/prefix}help/module/list' : '{/prefix}help/modul
<?php
$count = 0;
foreach ($modules as $key => $module) :
if ((\realpath(__DIR__ . '/../../../' . $module->getDirectory() . '/Docs/Help/en/SUMMARY.md')) === false) {
if ((\realpath(__DIR__ . '/../../../' . $module->getDirectory() . '/Docs/Help/en/SUMMARY.md')) === false
&& (\realpath(__DIR__ . '/../../../' . $module->getDirectory() . '/Docs/Dev/en/SUMMARY.md')) === false
) {
continue;
}
@ -70,4 +72,4 @@ $next = empty($modules) ? '{/prefix}help/module/list' : '{/prefix}help/modul
</div>
</div>
</div>
</div>
</div>

View File

@ -1,9 +1,9 @@
<div class="row">
<div class="col-xs-12 col-md-8 col-lg-9">
<section class="portlet">
<article>
<?= $this->getData('content'); ?>
</article>
<div class="portlet-body">
<article><?= $this->getData('content'); ?></article>
</div>
</section>
</div>
@ -12,18 +12,20 @@
<a tabindex="0" class="button" href="<?= \phpOMS\Uri\UriFactory::build('{/lang}/backend/help/module/single?id={?id}'); ?>"><?= $this->getHtml('Module'); ?></a>
</div>
<?php if ($this->hasData('navigation')) : ?>
<section class="portlet">
<article>
<?= $this->getData('navigation'); ?>
</article>
<div class="portlet-body">
<article><?= $this->getData('navigation'); ?></article>
</div>
</section>
<?php endif; ?>
<?php if ($this->hasData('devNavigation')) : ?>
<section class="portlet">
<article>
<?= $this->getData('devNavigation'); ?>
</article>
<div class="portlet-body">
<article><?= $this->getData('devNavigation'); ?></article>
</div>
</section>
<?php endif; ?>
</div>
</div>
</div>