2022-03-06 13:35:21 +01:00
|
|
|
<?php
|
|
|
|
// Lexique
|
|
|
|
$text = [];
|
|
|
|
$val = $this->getData(['config', 'i18n', 'langAdmin']);
|
|
|
|
switch ($val) {
|
|
|
|
case 'fr' :
|
|
|
|
$text[0] = 'Retour';
|
|
|
|
$text[1] = 'Aide';
|
|
|
|
$text[2] = 'Réinitialiser';
|
|
|
|
$text[3] = 'Appliquer';
|
|
|
|
$text[4] = 'Installer un thème archivé (site ou administration)';
|
|
|
|
$text[5] = 'Archive ZIP :';
|
|
|
|
$text[6] = 'Sauvegarde du thème dans les ';
|
|
|
|
$text[7] = 'fichiers';
|
|
|
|
$text[8] = ' du site';
|
|
|
|
$text[9] = 'Thème du site';
|
|
|
|
$text[10] = 'Thème de l\'administration';
|
|
|
|
$text[11] = 'Télécharger le thème';
|
|
|
|
$text[12] = 'Thème du site';
|
|
|
|
$text[13] = 'Thème de l\'administration';
|
|
|
|
break;
|
|
|
|
case 'en' :
|
|
|
|
$text[0] = 'Back';
|
|
|
|
$text[1] = 'Help';
|
|
|
|
$text[2] = 'Reset';
|
|
|
|
$text[3] = 'Apply';
|
|
|
|
$text[4] = 'Install archived theme (site or admin)';
|
|
|
|
$text[5] = 'ZIP archive:';
|
|
|
|
$text[6] = 'Save theme in ';
|
|
|
|
$text[7] = 'files';
|
|
|
|
$text[8] = ' of the site';
|
|
|
|
$text[9] = 'Site theme';
|
|
|
|
$text[10] = 'Administration theme';
|
|
|
|
$text[11] = 'Download theme';
|
|
|
|
$text[12] = 'Site theme';
|
|
|
|
$text[13] = 'Administration theme';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
2022-01-31 09:10:49 +01:00
|
|
|
<?php echo template::formOpen('themeManageForm'); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('themeManageBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'theme',
|
|
|
|
'ico' => 'left',
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[0]
|
2022-01-31 09:10:49 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('themeSiteHelp', [
|
|
|
|
'href' => 'https://doc.deltacms.fr/gestion',
|
|
|
|
'target' => '_blank',
|
|
|
|
'ico' => 'help',
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[1],
|
2022-01-31 09:10:49 +01:00
|
|
|
'class' => 'buttonHelp'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2 offset4">
|
|
|
|
<?php echo template::button('configManageReset', [
|
|
|
|
'class' => 'buttonRed',
|
|
|
|
'href' => helper::baseUrl() . 'theme/reset/manage' . '&csrf=' . $_SESSION['csrf'],
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[2],
|
2022-01-31 09:10:49 +01:00
|
|
|
'ico' => 'cancel'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::submit('themeImportSubmit', [
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[3]
|
2022-01-31 09:10:49 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
2022-03-06 13:35:21 +01:00
|
|
|
<h4><?php echo $text[4]; ?></h4>
|
2022-01-31 09:10:49 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6 offset3">
|
|
|
|
<?php echo template::file('themeManageImport', [
|
2022-03-06 13:35:21 +01:00
|
|
|
'label' => $text[5],
|
2022-01-31 09:10:49 +01:00
|
|
|
'type' => 2
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
2022-03-06 13:35:21 +01:00
|
|
|
<h4><?php echo $text[6]; ?><a href="<?php echo helper::baseUrl(false); ?>core/vendor/filemanager/dialog.php?fldr=theme&type=0&akey=<?php echo md5_file(self::DATA_DIR.'core.json'); ?>" data-lity><?php echo $text[7]; ?></a><?php echo $text[8]; ?></h4>
|
2022-01-31 09:10:49 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::button('themeSave', [
|
|
|
|
'href' => helper::baseUrl() . 'theme/save/theme',
|
|
|
|
'ico' => 'download-cloud',
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[9]
|
2022-01-31 09:10:49 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::button('themeSaveAdmin', [
|
|
|
|
'href' => helper::baseUrl() . 'theme/save/admin',
|
|
|
|
'ico' => 'download-cloud',
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[10]
|
2022-01-31 09:10:49 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
2022-03-06 13:35:21 +01:00
|
|
|
<h4><?php echo $text[11]; ?></h4>
|
2022-01-31 09:10:49 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::button('themeExport', [
|
|
|
|
'href' => helper::baseUrl() . 'theme/export/theme',
|
|
|
|
'ico' => 'download',
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[12]
|
2022-01-31 09:10:49 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::button('themeExport', [
|
|
|
|
'href' => helper::baseUrl() . 'theme/export/admin',
|
|
|
|
'ico' => 'download',
|
2022-03-06 13:35:21 +01:00
|
|
|
'value' => $text[13]
|
2022-01-31 09:10:49 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php echo template::formClose(); ?>
|