2020-05-12 16:28:10 +02:00
|
|
|
<?php echo template::formOpen('configScript'); ?>
|
2022-09-29 08:45:59 +02:00
|
|
|
<div class="row">
|
2023-02-07 14:21:15 +01:00
|
|
|
<div class="col1">
|
2022-09-29 08:45:59 +02:00
|
|
|
<?php echo template::button('configManageBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'config',
|
2023-02-07 14:21:15 +01:00
|
|
|
'value' => template::ico('left')
|
2022-09-29 08:45:59 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2 offset8">
|
|
|
|
<?php echo template::submit('configManageSubmit', [
|
|
|
|
'value' => 'Valider',
|
|
|
|
'ico' => 'check'
|
|
|
|
]); ?>
|
2020-05-12 16:28:10 +02:00
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
</div>
|
|
|
|
<?php if ($this->geturl(2) === 'head') : ?>
|
2020-05-12 16:28:10 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::textarea('configScriptHead', [
|
2022-09-29 08:45:59 +02:00
|
|
|
'value' => file_exists(self::DATA_DIR . 'head.inc.html') ? file_get_contents(self::DATA_DIR . 'head.inc.html') : '',
|
2020-05-12 16:28:10 +02:00
|
|
|
'class' => 'editor'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
<?php endif ?>
|
|
|
|
<?php if ($this->geturl(2) === 'body') : ?>
|
2020-05-12 16:28:10 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo template::textarea('configScriptBody', [
|
2022-09-29 08:45:59 +02:00
|
|
|
'value' => file_exists(self::DATA_DIR . 'body.inc.html') ? file_get_contents(self::DATA_DIR . 'body.inc.html') : '',
|
2020-05-12 16:28:10 +02:00
|
|
|
'class' => 'editor'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-29 08:45:59 +02:00
|
|
|
<?php endif ?>
|
2020-05-12 16:28:10 +02:00
|
|
|
<?php echo template::formClose(); ?>
|