mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-02-12 03:18:41 +00:00
change createmodel function
This commit is contained in:
parent
b2176f755c
commit
6ebd5fbae7
|
|
@ -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; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user