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

46 lines
1.7 KiB
PHP
Raw Normal View History

2023-02-03 11:41:40 +01:00
<link rel="stylesheet" href="core/vendor/tinymce/plugins/codemirror/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="core/vendor/codemirror/init.css">
2022-03-06 13:35:21 +01:00
<?php
// Lexique
2022-09-11 09:42:42 +02:00
include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_config.php');
echo template::formOpen('configScript'); ?>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col2">
<?php echo template::button('configManageBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'config',
'ico' => 'left',
2022-09-11 09:42:42 +02:00
'value' => $text['core_config_view']['script'][0]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('configManageSubmit',[
2022-09-11 09:42:42 +02:00
'value' => $text['core_config_view']['script'][1],
2022-01-31 09:10:49 +01:00
'ico' => 'check'
]); ?>
</div>
</div>
<?php if ($this->geturl(2) === 'head'): ?>
<div class="row">
<div class="col12">
<?php echo template::textarea('configScriptHead', [
'value' => file_exists( self::DATA_DIR . 'head.inc.html') ? file_get_contents (self::DATA_DIR . 'head.inc.html') : '' ,
'class' => 'editor'
]); ?>
</div>
</div>
<?php endif ?>
<?php if ($this->geturl(2) === 'body'): ?>
<div class="row">
<div class="col12">
<?php echo template::textarea('configScriptBody', [
'value' => file_exists( self::DATA_DIR . 'body.inc.html') ? file_get_contents (self::DATA_DIR . 'body.inc.html') : '' ,
'class' => 'editor'
]); ?>
</div>
</div>
<?php endif ?>
<?php echo template::formClose(); ?>