Deltacms/core/module/addon/view/index/index.php

65 lines
1.6 KiB
PHP

<?php
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Retour';
$text[1] = 'Aide';
$text[2] = 'Installer un module';
$text[3] = 'Module installé';
$text[4] = 'Alias';
$text[5] = 'Version';
$text[6] = 'Page(s)';
$text[7] = 'Supprimer';
$text[8] = 'Exporter';
$text[9] = 'Importer';
$text[10] = 'Aucun module installé.';
break;
case 'en' :
$text[0] = 'Back';
$text[1] = 'Help';
$text[2] = 'Installing a module';
$text[3] = 'Installed module';
$text[4] = 'Alias';
$text[5] = 'Version';
$text[6] = 'Page(s)';
$text[7] = 'Delete';
$text[8] = 'Export';
$text[9] = 'Import';
$text[10] = 'No module installed.';
break;
}
?>
<div class="row">
<div class="col2">
<?php echo template::button('configModulesBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl(),
'ico' => 'left',
'value' => $text[0]
]); ?>
</div>
<div class="col2">
<?php echo template::button('configModulesHelp', [
'href' => 'https://doc.deltacms.fr/gestion-des-modules',
'target' => '_blank',
'ico' => 'help',
'value' => $text[1],
'class' => 'buttonHelp'
]); ?>
</div>
<div class="col2 offset6">
<?php echo template::button('configStoreUpload', [
'href' => helper::baseUrl() . 'addon/upload',
'value' => $text[2]
]); ?>
</div>
</div>
<?php if($module::$modInstal): ?>
<?php echo template::table([2, 2, 2, 2, 1, 1, 1], $module::$modInstal, [$text[3], $text[4], $text[5], $text[6], $text[7], $text[8], $text[9]]); ?>
<?php else: ?>
<?php echo template::speech($text[10]); ?>
<?php endif; ?>