53 lines
1.6 KiB
PHP
53 lines
1.6 KiB
PHP
<?php
|
|
// Lexique
|
|
$text = [];
|
|
$val = $this->getData(['config', 'i18n', 'langAdmin']);
|
|
switch ($val) {
|
|
case 'fr' :
|
|
$text[0] = 'Retour';
|
|
$text[1] = 'Valider';
|
|
break;
|
|
case 'en' :
|
|
$text[0] = 'Return';
|
|
$text[1] = 'Validate';
|
|
break;
|
|
}
|
|
?>
|
|
<?php echo template::formOpen('configScript'); ?>
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::button('configManageBack', [
|
|
'class' => 'buttonGrey',
|
|
'href' => helper::baseUrl() . 'config',
|
|
'ico' => 'left',
|
|
'value' => $text[0]
|
|
]); ?>
|
|
</div>
|
|
<div class="col2 offset8">
|
|
<?php echo template::submit('configManageSubmit',[
|
|
'value' => $text[1],
|
|
'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(); ?>
|