forked from ZwiiCMS-Team/ZwiiCMS
v9.0.0 : masque de gestion des themes export
This commit is contained in:
parent
6eab8bad97
commit
012812f4c1
@ -542,13 +542,13 @@ class theme extends common {
|
||||
}
|
||||
$zip->close();
|
||||
// Téléchargement du ZIP
|
||||
|
||||
header('Content-Description: File Transfer');
|
||||
header('Content-Type: application/octet-stream');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Content-Disposition: attachment; filename="' . $zipFilename . '"');
|
||||
header('Content-Length: ' . filesize('site/tmp/' . $zipFilename));
|
||||
readfile('site/tmp/' . $zipFilename);
|
||||
// Nettoyage du dossier
|
||||
unlink ('site/tmp/' . $zipFilename);
|
||||
rmdir ($folderTemp);
|
||||
// Valeurs en sortie
|
||||
|
@ -1,24 +1,35 @@
|
||||
<?php ?>
|
||||
<div class="col2">
|
||||
<?php echo template::button('themeBack', [
|
||||
'class' => 'buttonGrey',
|
||||
'href' => helper::baseUrl(false),
|
||||
'ico' => 'home',
|
||||
'value' => 'Accueil'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col2">
|
||||
<?php echo template::button('themeBack', [
|
||||
'class' => 'buttonGrey',
|
||||
'href' => helper::baseUrl(false),
|
||||
'ico' => 'home',
|
||||
'value' => 'Accueil'
|
||||
]); ?>
|
||||
<div class="col6">
|
||||
<div class="block">
|
||||
<h4>Importer les données du thème</h4>
|
||||
<div class="col5 offset3">
|
||||
<?php echo template::button('themeImport', [
|
||||
'href' => helper::baseUrl() . 'theme/import',
|
||||
'value' => 'Importer les données du thème'
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::button('themeImport', [
|
||||
'href' => helper::baseUrl() . 'theme/import',
|
||||
'value' => 'Importer les données du thème'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::button('themeExport', [
|
||||
'href' => helper::baseUrl() . 'theme/export',
|
||||
'value' => 'Exporter les données du thème'
|
||||
]); ?>
|
||||
<div class="col6">
|
||||
<div class="block">
|
||||
<h4>Exporter les données du thème</h4>
|
||||
<div class="col5 offset3">
|
||||
<?php echo template::button('themeExport', [
|
||||
'href' => helper::baseUrl() . 'theme/export',
|
||||
'value' => 'Générer une archive ZIP'
|
||||
]); ?>
|
||||
</div>
|
||||
<p \>L'archive ZIP contient la structure du thème avec l'arborescence complète à copier dans le dossier site. Les images sont comprises dans l'archive.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php?>
|
||||
|
Loading…
Reference in New Issue
Block a user