ZwiiCMS/core/module/config/view/script/script.php

37 lines
1.3 KiB
PHP
Raw Normal View History

<?php echo template::formOpen('configScript'); ?>
2022-09-29 08:45:59 +02:00
<div class="row">
<div class="col1">
2022-09-29 08:45:59 +02:00
<?php echo template::button('configManageBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'config',
'value' => template::ico('left')
2022-09-29 08:45:59 +02:00
]); ?>
</div>
2024-04-17 16:42:01 +02:00
<div class="col2 offset9">
2022-09-29 08:45:59 +02:00
<?php echo template::submit('configManageSubmit', [
'value' => 'Valider',
'ico' => 'check'
]); ?>
</div>
2022-09-29 08:45:59 +02:00
</div>
<?php if ($this->geturl(2) === 'head') : ?>
<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') : '',
'class' => 'editor'
]); ?>
</div>
</div>
2022-09-29 08:45:59 +02:00
<?php endif ?>
<?php if ($this->geturl(2) === 'body') : ?>
<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') : '',
'class' => 'editor'
]); ?>
</div>
</div>
2022-09-29 08:45:59 +02:00
<?php endif ?>
<?php echo template::formClose(); ?>