Deltacms/core/module/theme/view/manage/manage.php

101 lines
3.2 KiB
PHP
Raw Normal View History

2022-03-06 13:35:21 +01:00
<?php
// Lexique
2022-09-11 09:42:42 +02:00
include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
echo template::formOpen('themeManageForm'); ?>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col2">
<?php echo template::button('themeManageBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
2022-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['manage'][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-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['manage'][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-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['manage'][2],
2022-01-31 09:10:49 +01:00
'ico' => 'cancel'
]); ?>
</div>
<div class="col2">
<?php echo template::submit('themeImportSubmit', [
2022-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['manage'][3]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_theme_view']['manage'][4]; ?></h4>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col6 offset3">
<?php echo template::file('themeManageImport', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_theme_view']['manage'][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-09-11 09:42:42 +02:00
<h4><?php echo $text['core_theme_view']['manage'][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['core_theme_view']['manage'][7]; ?></a><?php echo $text['core_theme_view']['manage'][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-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['manage'][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-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['manage'][10]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
<div class="col6">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_theme_view']['manage'][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-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['manage'][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-09-11 09:42:42 +02:00
'value' => $text['core_theme_view']['manage'][13]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
2022-09-11 09:42:42 +02:00
<script>
var textConfirm = <?php echo '"'.$text['core_theme_view']['manage'][14].'"'; ?>;
</script>