From 639ca300f023a8d700cbdcceb6ea51c2ea45f179 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 22 Nov 2020 01:59:06 +0100 Subject: [PATCH] cleanup tpl --- Theme/Backend/modules-list.tpl.php | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Theme/Backend/modules-list.tpl.php b/Theme/Backend/modules-list.tpl.php index 7258716..816a642 100755 --- a/Theme/Backend/modules-list.tpl.php +++ b/Theme/Backend/modules-list.tpl.php @@ -13,6 +13,7 @@ declare(strict_types=1); use phpOMS\Module\ModuleStatus; +use phpOMS\Uri\UriFactory; /** * @var \phpOMS\Views\View $this @@ -34,26 +35,25 @@ $isntalled = $this->getData('isntalled') ?? []; getHtml('Name'); ?> getHtml('Version'); ?> getHtml('Status'); ?> - - $module) : ++$count; - $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/module/settings?{?}&id=' . $module['name']['internal']); - if (isset($active[$module['name']['internal']])) { $status = ModuleStatus::ACTIVE; } - elseif (isset($installed[$module['name']['internal']])) { $status = ModuleStatus::INACTIVE; } - else { $status = ModuleStatus::AVAILABLE; } - ?> + + $module) : ++$count; + $url = UriFactory::build('{/prefix}admin/module/settings?{?}&id=' . $module['name']['internal']); + + if (isset($active[$module['name']['internal']])) { + $status = ModuleStatus::ACTIVE; + } elseif (isset($installed[$module['name']['internal']])) { + $status = ModuleStatus::INACTIVE; + } else { + $status = ModuleStatus::AVAILABLE; + } + ?> printHtml($module['name']['id']); ?> printHtml($module['name']['external']); ?> printHtml($module['version']); ?> - + getHtml('Active')); @@ -65,7 +65,7 @@ $isntalled = $this->getData('isntalled') ?? []; - getHtml('Empty', '0', '0'); ?> + getHtml('Empty', '0', '0'); ?>