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

99 lines
3.0 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(),
'value' => template::ico('left')
]); ?>
</div>
<div class="col1">
2022-09-28 14:18:05 +02:00
<?php /**echo template::button('pluginHelp', [
2022-02-17 15:45:25 +01:00
'href' => 'https://doc.zwiicms.fr/gestion-des-modules',
'target' => '_blank',
'value' => template::ico('help'),
'class' => 'buttonHelp',
'help' => 'Consulter l\'aide en ligne'
2022-09-28 14:18:05 +02:00
]);*/ ?>
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>
2022-03-16 12:56:58 +01:00
<div class="tab">
<?php echo template::button('pluginModuleButton', [
2022-03-16 12:56:58 +01:00
'value' => 'Modules installés',
2022-05-19 18:26:04 +02:00
'class' => ' buttonTab'
2022-03-16 12:56:58 +01:00
]); ?>
<?php echo template::button('pluginDataButton', [
2022-03-16 12:56:58 +01:00
'value' => 'Données des modules',
'class' => 'buttonTab'
]); ?>
2022-02-17 15:45:25 +01:00
</div>
2022-05-19 18:26:04 +02:00
<div class="tabContent" id="moduleContainer">
2022-09-29 08:45:59 +02:00
<?php if ($module::$modulesInstalled) : ?>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Sauvegarde'); ?>
2022-09-29 08:45:59 +02:00
</h4>
<?php echo template::table([2, 2, 1, 5, 1, 1], $module::$modulesInstalled, ['Module', 'Identifiant', 'Version', '', '', '']); ?>
</div>
2022-02-17 15:45:25 +01:00
</div>
</div>
2022-09-29 08:45:59 +02:00
<?php else : ?>
<?php echo template::speech('Aucun module installé.'); ?>
2022-02-17 15:45:25 +01:00
<?php endif; ?>
2022-09-29 08:45:59 +02:00
<?php if ($module::$modulesOrphan) : ?>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Modules orphelins'); ?>
2022-09-29 08:45:59 +02:00
</h4>
<?php echo template::table([2, 2, 1, 6, 1], $module::$modulesOrphan, ['Module', 'Identifiant', 'Version', '', '']); ?>
</div>
2022-02-17 15:45:25 +01:00
</div>
</div>
2022-09-29 08:45:59 +02:00
<?php else : ?>
<?php echo template::speech('Aucun module orphelin.'); ?>
2022-02-17 15:45:25 +01:00
<?php endif; ?>
</div>
2022-05-19 18:26:04 +02:00
<div class="tabContent displayNone" id="dataContainer">
2022-09-29 08:45:59 +02:00
<?php if ($module::$modulesData) : ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php echo helper::translate('Modules configurés'); ?>
2022-09-29 08:45:59 +02:00
</h4>
<div class="row">
<div class="col1 offset11">
<?php echo template::button('configModuledataImport', [
'href' => helper::baseUrl() . 'plugin/dataImport',
'value' => template::ico('upload'),
"help" => 'Importer des données de module dans une page libre'
]); ?>
</div>
2022-02-17 15:45:25 +01:00
</div>
2022-09-29 08:45:59 +02:00
<div class="row">
<div class="col12">
<?php echo template::table([4, 1, 4, 1, 1, 1], $module::$modulesData, ['Module', 'Version', 'Page associée', '', '', '']); ?>
2022-09-29 08:45:59 +02:00
</div>
2022-02-17 15:45:25 +01:00
</div>
</div>
</div>
</div>
2022-09-29 08:45:59 +02:00
<?php else : ?>
<?php echo template::speech('Aucune donnée de module.'); ?>
2022-02-17 15:45:25 +01:00
<?php endif; ?>
</div>