ZwiiCMS/core/module/plugin/view/index/index.php

60 lines
1.8 KiB
PHP
Raw Normal View History

2022-02-17 15:45:25 +01:00
<div class="row">
<div class="col1">
<?php echo template::button('configModulesBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl(),
2023-11-21 12:00:42 +01:00
'value' => template::ico('home')
2022-02-17 15:45:25 +01:00
]); ?>
</div>
<div class="col1">
2022-09-28 14:18:05 +02:00
<?php /**echo template::button('pluginHelp', [
'href' => 'https://doc.zwiicms.fr/gestion-des-modules',
'target' => '_blank',
'value' => template::ico('help'),
'class' => 'buttonHelp',
'help' => 'Consulter l\'aide en ligne'
]);*/?>
2022-02-17 15:45:25 +01:00
</div>
2022-04-08 09:47:35 +02:00
<div class="col1 offset8">
<?php echo template::button('pluginModulesStore', [
2022-03-16 12:56:58 +01:00
'href' => helper::baseUrl() . 'plugin/store',
2022-04-08 09:47:35 +02:00
'value' => template::ico('shopping-basket'),
'help' => 'Installer depuis le catalogue en ligne'
]); ?>
</div>
<div class="col1">
<?php echo template::button('pluginStoreUpload', [
2022-04-08 09:47:35 +02:00
'href' => helper::baseUrl() . 'plugin/upload',
'value' => template::ico('file-archive'),
'help' => 'Installer depuis une archive'
2022-03-16 12:56:58 +01:00
]); ?>
</div>
2022-02-17 15:45:25 +01:00
</div>
<?php if ($module::$modulesInstalled): ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Sauvegarde'); ?>
</h4>
<?php echo template::table([2, 2, 1, 5, 1, 1], $module::$modulesInstalled, ['Module', 'Identifiant', 'Version', '', '', '']); ?>
2022-02-17 15:45:25 +01:00
</div>
</div>
</div>
<?php else: ?>
<?php echo template::speech('Aucun module installé.'); ?>
<?php endif; ?>
<?php if ($module::$modulesOrphan): ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Modules orphelins'); ?>
</h4>
<?php echo template::table([2, 2, 1, 6, 1], $module::$modulesOrphan, ['Module', 'Identifiant', 'Version', '', '']); ?>
2022-02-17 15:45:25 +01:00
</div>
</div>
</div>
<?php else: ?>
<?php echo template::speech('Aucun module orphelin.'); ?>
<?php endif; ?>