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

269 lines
10 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/config/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_config.php');
// drapeau pour la langue d'origine ou la langue en traduction rédigée
2022-03-18 07:50:13 +01:00
if( $this->getInput('DELTA_I18N_SITE') === '' || $this->getInput('DELTA_I18N_SITE')=== null || $this->getInput('DELTA_I18N_SITE') === 'base'){
$flag = $this->getData(['config', 'i18n', 'langBase']);
}
else{
$flag = $this->getInput('DELTA_I18N_SITE');
}
?>
2022-01-31 09:10:49 +01:00
<div id="localeContainer">
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['locale'][0]; ?></h4>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col12">
2022-09-11 09:42:42 +02:00
<?php echo template::checkbox('localei18n', true, $text['core_config_view']['locale'][1], [
2022-01-31 09:10:49 +01:00
'checked' => $this->getData(['config', 'i18n', 'enable']),
2022-09-11 09:42:42 +02:00
'help'=> $text['core_config_view']['locale'][2]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['locale'][3]; ?><?php echo template::flag($flag, '20px');?>
2022-01-31 09:10:49 +01:00
<span id="localeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col9">
<?php echo template::text('localeTitle', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['locale'][4],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'title']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][5]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col3">
<?php echo template::text('localeVersion', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['locale'][6],
2022-01-31 09:10:49 +01:00
'value' => common::DELTA_VERSION,
'readonly' => true
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::textarea('localeMetaDescription', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['locale'][7],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'metaDescription']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][8]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['locale'][9]; echo template::flag($flag, '20px');?>
2022-01-31 09:10:49 +01:00
<span id="localeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation#pages-speciales" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col4">
<?php echo template::select('localeHomePageId', helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC'), [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['locale'][10],
2022-01-31 09:10:49 +01:00
'selected' =>$this->getData(['locale', 'homePageId']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][11]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
2022-09-11 09:42:42 +02:00
<?php echo template::select('localePage403', array_merge(['none' => $text['core_config_view']['locale'][19]],helper::arrayCollumn($module::$orphansList, 'title', 'SORT_ASC')), [
'label' => $text['core_config_view']['locale'][12],
2022-01-31 09:10:49 +01:00
'selected' =>$this->getData(['locale', 'page403']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][13]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
2022-09-11 09:42:42 +02:00
<?php echo template::select('localePage404', array_merge(['none' => $text['core_config_view']['locale'][19]],helper::arrayCollumn($module::$orphansList, 'title', 'SORT_ASC')), [
'label' => $text['core_config_view']['locale'][14],
2022-01-31 09:10:49 +01:00
'selected' =>$this->getData(['locale', 'page404']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][13]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
2022-09-11 09:42:42 +02:00
<?php echo template::select('localeLegalPageId', array_merge(['none' => $text['core_config_view']['locale'][20]] , helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
'label' => $text['core_config_view']['locale'][15],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['locale', 'legalPageId']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][16]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
2022-09-11 09:42:42 +02:00
<?php echo template::select('localeSearchPageId', array_merge(['none' => $text['core_config_view']['locale'][20]] , helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC') ) , [
'label' => $text['core_config_view']['locale'][17],
2022-01-31 09:10:49 +01:00
'selected' => $this->getData(['locale', 'searchPageId']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][18]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
<?php
2022-09-11 09:42:42 +02:00
echo template::select('localePage302', array_merge(['none' => $text['core_config_view']['locale'][19]],helper::arrayCollumn($module::$orphansList, 'title', 'SORT_ASC')), [
'label' => $text['core_config_view']['locale'][21],
2022-01-31 09:10:49 +01:00
'selected' =>$this->getData(['locale', 'page302']),
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][13]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['locale'][22]; echo template::flag($flag, '20px');?>
2022-01-31 09:10:49 +01:00
<span id="labelHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation#etiquettes" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col6">
<?php echo template::text('localeLegalPageLabel', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['locale'][15],
'placeholder' => $text['core_config_view']['locale'][15],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'legalPageLabel'])
]); ?>
</div>
<div class="col6">
<?php echo template::text('localeSearchPageLabel', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['locale'][23],
'placeholder' => $text['core_config_view']['locale'][23],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'searchPageLabel'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::text('localeSitemapPageLabel', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['locale'][24],
'placeholder' => $text['core_config_view']['locale'][24],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'sitemapPageLabel']),
]); ?>
</div>
<div class="col6">
<?php echo template::text('localeCookiesFooterText', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['locale'][25],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesFooterText']),
2022-09-11 09:42:42 +02:00
'placeHolder' => $text['core_config_view']['locale'][25]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
2022-11-05 09:31:32 +01:00
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['locale'][42]; echo template::flag($flag, '20px');?>
<span id="labelHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation#captcha" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col6">
<?php echo template::text('localeCaptchaSimpleText', [
'label' => $text['core_config_view']['locale'][43],
'placeholder' => $text['core_config_view']['locale'][44],
'value' => $this->getData(['locale', 'captchaSimpleText'])
]); ?>
</div>
<div class="col6">
<?php echo template::text('localeCaptchaSimpleHelp', [
'label' => $text['core_config_view']['locale'][45],
'placeholder' => $text['core_config_view']['locale'][46],
'value' => $this->getData(['locale', 'captchaSimpleHelp'])
]); ?>
</div>
</div>
</div>
</div>
</div>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col12">
<div class="block">
2022-09-11 09:42:42 +02:00
<h4><?php echo $text['core_config_view']['locale'][26]; echo template::flag($flag, '20px');?>
2022-01-31 09:10:49 +01:00
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation#cookies" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
<div class="row">
<div class="col12">
<?php echo template::text('localeCookiesTitleText', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][27],
'label' => $text['core_config_view']['locale'][28] ,
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesTitleText']),
2022-09-11 09:42:42 +02:00
'placeHolder' => $text['core_config_view']['locale'][29]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div class="row">
<div class="col8">
<?php echo template::textarea('localeCookiesDeltaText', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][30],
'label' => $text['core_config_view']['locale'][31],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesDeltaText']),
2022-09-11 09:42:42 +02:00
'placeHolder' => $text['core_config_view']['locale'][32]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col4">
<?php echo template::text('localeCookiesLinkMlText', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][33],
'label' => $text['core_config_view']['locale'][34],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesLinkMlText']),
2022-09-11 09:42:42 +02:00
'placeHolder' => $text['core_config_view']['locale'][35]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<div class="row">
<div class="col8">
<?php echo template::textarea('localeCookiesExtText', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][36],
'label' => $text['core_config_view']['locale'][37],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesExtText'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('localeCookiesCheckboxExtText', [
2022-09-11 09:42:42 +02:00
'help' => $text['core_config_view']['locale'][38],
'label' => $text['core_config_view']['locale'][39],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesCheckboxExtText'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4 offset4">
<?php echo template::text('localeCookiesButtonText', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_config_view']['locale'][40],
2022-01-31 09:10:49 +01:00
'value' => $this->getData(['locale', 'cookies', 'cookiesButtonText']),
2022-09-11 09:42:42 +02:00
'placeHolder' => $text['core_config_view']['locale'][41]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>