change createmodel function

This commit is contained in:
Dennis Eichhorn 2019-07-08 19:21:23 +02:00
parent b2176f755c
commit 6ebd5fbae7

View File

@ -30,19 +30,22 @@ $modules = $this->app->moduleManager->getInstalledModules();
<tr> <tr>
<td> <td>
<tbody> <tbody>
<?php $count = 0; foreach ($modules as $key => $module) : <?php
if ((\realpath(__DIR__ . '/../../../' . $module['directory'] . '/Docs/Help/en/SUMMARY.md')) === false) { $count = 0;
continue; foreach ($modules as $key => $module) :
} if ((\realpath(__DIR__ . '/../../../' . $module['directory'] . '/Docs/Help/en/SUMMARY.md')) === false) {
continue;
}
++$count; ++$count;
$url = \phpOMS\Uri\UriFactory::build( $url = \phpOMS\Uri\UriFactory::build(
'{/lang}/backend/help/module/single?id={$module}', '{/lang}/backend/help/module/single?id={$module}',
['$module' => $module['name']['internal']] ['$module' => $module['name']['internal']]
); ?> );
<tr data-href="<?= $url; ?>"> ?>
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module['name']['external']); ?></a> <tr data-href="<?= $url; ?>">
<?php endforeach; ?> <td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($module['name']['external']); ?></a>
<?php endforeach; ?>
<?php if ($count === 0) : ?> <?php if ($count === 0) : ?>
<tr><td class="empty"><?= $this->getHtml('Empty', '0', '0'); ?> <tr><td class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?> <?php endif; ?>