tous les h4 remplaces par blockTitle

This commit is contained in:
Deltacms 2022-12-04 08:19:08 +01:00
parent 43c86a08e0
commit d3a7e9fd04
55 changed files with 385 additions and 387 deletions

View File

@ -268,7 +268,7 @@ class common {
if($this->user === []) {
$this->user = $this->getData(['user', $this->getInput('DELTA_USER_ID')]);
}
/**
* Discrimination humain robot pour shuntage des Captchas
* Initialisation à 'bot' ou 'human' en fonction des données $_SERVER : à développer !
@ -1085,7 +1085,7 @@ class common {
$mail->Body = $layout;
$mail->AltBody = strip_tags($content);
if($file_name !== '') $mail->addAttachment( self::FILE_DIR.'uploads/'.$file_name);
if($mail->send()) {
return true;
}
@ -1185,7 +1185,7 @@ class common {
public function showCookies() {
// Gestion des cookies intégrée
if ($this->getData(['config', 'cookieConsent']) === true )
if ($this->getData(['config', 'cookieConsent']) === true )
{
// Détermine si le bloc doit être affiché selon la validité du cookie
// L'URL du serveur faut TRUE
@ -1612,15 +1612,15 @@ class common {
// Met en forme les items du menu
$itemsLeft = '';
$currentPageId = $this->getData(['page', $this->getUrl(0)]) ? $this->getUrl(0) : $this->getUrl(2);
?>
?>
<script> var parentPage=[]; var allPage=[]; </script>
<?php
<?php
foreach($this->getHierarchy() as $parentPageId => $childrenPageIds) {
// Passer les entrées masquées
// Propriétés de l'item
$active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? 'active ' : '';
$targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank"' : '';
// Tableaux des pages parent et de toutes les pages utilisés par core.js.php pour régler la largeur minimale des onglets et la largeur des sous-menus
if( $childrenPageIds !== [] ){ ?>
<script> parentPage.push('<?php echo $parentPageId; ?>'); </script>
@ -1647,8 +1647,8 @@ class common {
$heightLogo = 0;
$widthLogo = 0;
$fileLogo = './site/file/source/'. $this->getData(['page', $parentPageId, 'iconUrl']);
if ( ($this->getData(['page', $parentPageId, 'typeMenu']) === 'icon'
|| $this->getData(['page', $parentPageId, 'typeMenu']) === 'icontitle' )
if ( ($this->getData(['page', $parentPageId, 'typeMenu']) === 'icon'
|| $this->getData(['page', $parentPageId, 'typeMenu']) === 'icontitle' )
&& $this->getData(['page', $parentPageId, 'iconUrl']) != ""
&& file_exists( $fileLogo)) {
$fontsize = $this->getData(['theme', 'text', 'fontSize']);
@ -1671,7 +1671,7 @@ class common {
$widthLogo = 30;
}
}
switch ($this->getData(['page', $parentPageId, 'typeMenu'])) {
case '' :
$itemsLeft .= $this->getData(['page', $parentPageId, 'shortTitle']);
@ -1797,7 +1797,7 @@ class common {
$itemsRight .= '<li><a id="barLogout" href="' . helper::baseUrl() . 'user/logout" data-tippy-content="'.$text['core']['showmenu'][2].'">' . template::ico('logout') . '</a></li>';
}
// Retourne les items du menu suivant l'alignement du contenu
// Les drapeaux d'abord en petit écran
echo '<ul class="smallScreenFlags">';
if($this->getData(['config', 'i18n', 'enable']) === true) {
@ -1938,7 +1938,7 @@ class common {
public function showNotification() {
// Lexique
include('./core/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_core.php');
if (common::$importNotices) {
$notification = common::$importNotices [0];
$notificationClass = 'notificationSuccess';
@ -2192,8 +2192,8 @@ class common {
AND $this->getData(['config', 'i18n', $key]) === 'script'
// Le drapeau n'est pas actif pour les non admin en mode connecté.
AND
( $this->getUser('password') !== $this->getInput('DELTA_USER_PASSWORD')
OR $this->getUser('group') === self::GROUP_ADMIN
( $this->getUser('password') !== $this->getInput('DELTA_USER_PASSWORD')
OR $this->getUser('group') === self::GROUP_ADMIN
OR $this->getUser('group') === self::GROUP_MEMBER)
)
) {
@ -2397,7 +2397,6 @@ class core extends common {
$colors = helper::colorVariants($this->getData(['theme', 'block', 'backgroundTitleColor']));
$css .= '.block {border: 1px solid ' . $this->getdata(['theme','block','borderColor']) . ';background-color: ' . $this->getdata(['theme','block','backgroundColor']) .';border-radius: ' . $this->getdata(['theme','block','blockBorderRadius']) . ';box-shadow :' . $this->getdata(['theme','block','blockBorderShadow']) . ' ' . $this->getdata(['theme','block','borderColor']) . ';}';
$css .= '.block > h4, .blockTitle {background-color:'. $colors['normal'] . ';color:' . $colors['text'] .';border-radius: ' . $this->getdata(['theme','block','blockBorderRadius']) . ' ' . $this->getdata(['theme','block','blockBorderRadius']) . ' 0px 0px;}';
$css .= '.block > p {margin: 0px -5px;}';
//$css .= '.mce-tinymce {border: 1px solid ' . $this->getdata(['theme','block','borderColor']) .' !important;}';
//Tinymce option titre sous une image valeurs par défaut modifiables dans custom.css
@ -2531,7 +2530,7 @@ class core extends common {
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
}
// Check la mise à jour du theme admin
if( $this-> getData(['admin', 'maj']) === true){
// Version
@ -3013,13 +3012,13 @@ class core extends common {
// Erreurs
// Lexique
include('./core/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_core.php');
if($access === 'login') {
http_response_code(302);
header('Location:' . helper::baseUrl() . 'user/login/');
exit();
}
if($access === false) {
if($access === false) {
if ($accessInfo['userName']) {
http_response_code(409);
$this->addOutput([

View File

@ -615,7 +615,7 @@ nav a:hover {
/* fin barre de menu */
#menuSpace {
width: 20px;
width: 80px;
}
nav::after {
@ -1068,8 +1068,7 @@ footer #footerSocials .zwiico-github:hover {
margin: -20px -20px 10px;
padding: 5px;
}
.blockTitle * {
.blockTitle * {
margin: 0;
}

View File

@ -21,7 +21,7 @@ echo template::formOpen('addonImportForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_addon_view']['import'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['core_addon_view']['import'][3]; ?></div>
<div class="row">
<div class="col6 offset3">
<?php echo template::file('addonImportFile', [
@ -32,4 +32,4 @@ echo template::formOpen('addonImportForm'); ?>
</div>
</div>
</div>
</div>
</div>

View File

@ -39,7 +39,7 @@ echo template::formOpen('configModulesUpload'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_addon_view']['upload'][6]; ?> </h4>
<div class="blockTitle"><?php echo $text['core_addon_view']['upload'][6]; ?> </div>
<div class="row">
<div class="col6 offset3">
<?php echo template::file('configModulesInstallation', [

View File

@ -22,7 +22,7 @@ echo template::formOpen('configBackupForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['backup'][4]; ?></h4>
<div class="blockTitle"><?php echo $text['core_config_view']['backup'][4]; ?></div>
<div class="row">
<div class="col12">
<?php echo template::checkbox('configBackupOption', true, $text['core_config_view']['backup'][2], [

View File

@ -6,13 +6,13 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['bodyheadscript'][0]; ?>
<div class="blockTitle"><?php echo $text['core_config_view']['bodyheadscript'][0]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/scripts" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col3 offset3 verticalAlignBottom">
<?php echo template::button('socialScriptHead', [

View File

@ -6,13 +6,13 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['connect'][0]; ?>
<div class="blockTitle"><?php echo $text['core_config_view']['connect'][0]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/connexion" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('connectCaptcha', true, $text['core_config_view']['connect'][1], [
@ -71,13 +71,13 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['connect'][13];?>
<div class="blockTitle"><?php echo $text['core_config_view']['connect'][13];?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/connexion#journalisation" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('connectLog', true, $text['core_config_view']['connect'][14], [

View File

@ -4,7 +4,7 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
// drapeau pour la langue d'origine ou la langue en traduction rédigée
if( $this->getInput('DELTA_I18N_SITE') === '' || $this->getInput('DELTA_I18N_SITE')=== null || $this->getInput('DELTA_I18N_SITE') === 'base'){
$flag = $this->getData(['config', 'i18n', 'langBase']);
$flag = $this->getData(['config', 'i18n', 'langBase']);
}
else{
$flag = $this->getInput('DELTA_I18N_SITE');
@ -14,7 +14,7 @@ else{
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['locale'][0]; ?></h4>
<div class="blockTitle"><?php echo $text['core_config_view']['locale'][0]; ?></div>
<div class="row">
<div class="col12">
<?php echo template::checkbox('localei18n', true, $text['core_config_view']['locale'][1], [
@ -29,13 +29,13 @@ else{
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['locale'][3]; ?><?php echo template::flag($flag, '20px');?>
<div class="blockTitle"><?php echo $text['core_config_view']['locale'][3]; ?><?php echo template::flag($flag, '20px');?>
<span id="localeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/localisation" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col9">
<?php echo template::text('localeTitle', [
@ -67,13 +67,13 @@ else{
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['locale'][9]; echo template::flag($flag, '20px');?>
<div class="blockTitle"><?php echo $text['core_config_view']['locale'][9]; echo template::flag($flag, '20px');?>
<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>
<div class="row">
<div class="col4">
<?php echo template::select('localeHomePageId', helper::arrayCollumn($module::$pagesList, 'title', 'SORT_ASC'), [
@ -127,13 +127,13 @@ else{
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['locale'][22]; echo template::flag($flag, '20px');?>
<div class="blockTitle"><?php echo $text['core_config_view']['locale'][22]; echo template::flag($flag, '20px');?>
<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>
<div class="row">
<div class="col6">
<?php echo template::text('localeLegalPageLabel', [
@ -172,13 +172,13 @@ else{
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['locale'][42]; echo template::flag($flag, '20px');?>
<div class="blockTitle"><?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>
<div class="row">
<div class="col6">
<?php echo template::text('localeCaptchaSimpleText', [
@ -197,17 +197,17 @@ else{
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['locale'][26]; echo template::flag($flag, '20px');?>
<div class="blockTitle"><?php echo $text['core_config_view']['locale'][26]; echo template::flag($flag, '20px');?>
<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>
<div class="row">
<div class="col12">
<?php echo template::text('localeCookiesTitleText', [
@ -260,10 +260,10 @@ else{
'label' => $text['core_config_view']['locale'][40],
'value' => $this->getData(['locale', 'cookies', 'cookiesButtonText']),
'placeHolder' => $text['core_config_view']['locale'][41]
]); ?>
]); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -6,13 +6,13 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['network'][0]; ?>
<div class="blockTitle"><?php echo $text['core_config_view']['network'][0]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/reseau" target="_blank">
<a href="https://doc.deltacms.fr/reseau" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col2">
<?php echo template::select('configProxyType', $module::$proxyType, [
@ -41,13 +41,13 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['network'][4]; ?>
<div class="blockTitle"><?php echo $text['core_config_view']['network'][4]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/reseau#smtp" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col12">
<?php echo template::checkbox('smtpEnable', true, $text['core_config_view']['network'][5], [

View File

@ -22,7 +22,7 @@ echo template::formOpen('configRestoreForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['restore'][2]; ?></h4>
<div class="blockTitle"><?php echo $text['core_config_view']['restore'][2]; ?></div>
<div class="row">
<div class="col10 offset1">
<div class="row">

View File

@ -7,13 +7,13 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['setup'][0]; ?>
<div class="blockTitle"><?php echo $text['core_config_view']['setup'][0]; ?>
<span id="setupHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/configuration" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col4">
<?php echo template::file('configFavicon', [
@ -59,13 +59,13 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['setup'][1]; ?>
<div class="blockTitle"><?php echo $text['core_config_view']['setup'][1]; ?>
<span id="updateHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/configuration#mise-a-jour" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<?php $updateError = helper::urlGetContents(common::DELTA_UPDATE_URL . common::DELTA_UPDATE_CHANNEL . '/version');?>
<div class="row">
<div class="col4">
@ -98,13 +98,13 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['setup'][2]; ?>
<div class="blockTitle"><?php echo $text['core_config_view']['setup'][2]; ?>
<span id="maintenanceHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/configuration#maintenance" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('configAutoBackup', true, $text['core_config_view']['setup'][18], [
@ -148,7 +148,7 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="col12">
<div class="block">
<div id="infotopdf">
<h4><?php echo $text['core_config_view']['setup'][24]; ?></h4>
<div class="blockTitle"><?php echo $text['core_config_view']['setup'][24]; ?></div>
<div class="row">
<div class="col12">
<?php $textRewrite = $text['core_config_view']['setup'][30];
@ -158,7 +158,7 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
'value' => $listText
]); ?>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<?php $listMod = get_loaded_extensions();
@ -195,7 +195,7 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
foreach( $directives as $key=>$value){
if( ini_get($value)) {
$texte .= $text['core_config_view']['setup'][36].$value.' ON - ';
}
}
else{
$texte .= $text['core_config_view']['setup'][36].$value.' OFF - ';
}
@ -209,12 +209,12 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
else{
$texte .= $text['core_config_view']['setup'][37].$value.' OFF - ';
}
}
}
echo template::textarea('directivesFunctionsPhp',[
'value' => substr( $texte, 0, strlen($texte) - 3)
]);
?>
]);
?>
</div>
</div>
<div class="row">

View File

@ -6,24 +6,24 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['social'][0]; ?>
<div class="blockTitle"><?php echo $text['core_config_view']['social'][0]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/referencement" target="_blank">
<a href="https://doc.deltacms.fr/referencement" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col4 offset1">
<div class="row">
<div class="col12" id="take_screenshoot">
<?php
<?php
$texte = $text['core_config_view']['social'][2];
if( isset($_SESSION['screenshot'])) $texte = $_SESSION['screenshot'] === 'on' ? $text['core_config_view']['social'][1]: $text['core_config_view']['social'][2];
echo template::button('socialMetaImage', [
'href' => helper::baseUrl() . 'config/configOpenGraph',
'value' => $texte
]); ?>
</div>
</div>
@ -65,13 +65,13 @@ include('./core/module/config/lang/'. $this->getData(['config', 'i18n', 'langAdm
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_config_view']['social'][7]; ?>
<div class="blockTitle"><?php echo $text['core_config_view']['social'][7]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/referencement#reseaux-sociaux" target="_blank">
<a href="https://doc.deltacms.fr/referencement#reseaux-sociaux" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col3">
<?php echo template::text('socialFacebookId', [

View File

@ -1 +1 @@
<div class="block"><h4>DeltaCMS</h4><h2>The database-less CMS with quick and easy installation</h2></div>
<div class="block"><div class="blockTitle">DeltaCMS</div><h2>The database-less CMS with quick and easy installation</h2></div>

View File

@ -1 +1 @@
<div class="block"><h4>DeltaCMS</h4><h2>Le CMS sans base de données à l'installation simple et rapide</h2></div>
<div class="block"><div class="blockTitle">DeltaCMS</div><h2>Le CMS sans base de données à l'installation simple et rapide</h2></div>

View File

@ -6,14 +6,14 @@ include('./core/module/page/lang/'. $this->getData(['config', 'i18n', 'langAdmin
var lang_admin = "<?php echo $lang_admin; ?>";
var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";
</script>
<?php
<?php
// Inclusion de tinymce
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
if ($this->getData(['page', $this->getUrl(2), 'moduleId']) === 'snipcart' ){
echo '<script src="'. helper::baseUrl(false).'module/snipcart/vendor/init.js"></script>';
} else {
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
}
}
echo '<link rel="stylesheet" href="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.css' . '">';
echo template::formOpen('pageEditForm'); ?>
@ -62,13 +62,13 @@ echo template::formOpen('pageEditForm'); ?>
<div class="row">
<div class="col12">
<div class="block" id="info">
<h4><?php echo $text['core_page_view']['edit'][5]; ?>
<div class="blockTitle"><?php echo $text['core_page_view']['edit'][5]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/informations-generales" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="row">
<div class="col6">
<?php echo template::text('pageEditTitle', [
@ -155,13 +155,13 @@ else {
<div class="row">
<div class="col12" id="pageEditBlockLayout">
<div class="block">
<h4><?php echo $text['core_page_view']['edit'][16]; ?>
<div class="blockTitle"><?php echo $text['core_page_view']['edit'][16]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/mise-en-page" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="blockContainer">
<div class="row">
<div class="col6">
@ -211,13 +211,13 @@ else {
<div class="row">
<div class="col12" id="pageEditMenu">
<div class="block">
<h4><?php echo $text['core_page_view']['edit'][23]; ?>
<div class="blockTitle"><?php echo $text['core_page_view']['edit'][23]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/emplacement-dans-le-menu" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="blockContainer">
<div class="row">
<div class="col6">
@ -273,13 +273,13 @@ else {
<div class='row' id="pageEditAdvancedWrapper">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_page_view']['edit'][29]; ?>
<div class="blockTitle"><?php echo $text['core_page_view']['edit'][29]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/options-d-emplacement-avancees" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="blockContainer">
<div class="row">
<div class="col6">
@ -301,13 +301,13 @@ else {
<div class='row' id="pageEditSeoWrapper">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_page_view']['edit'][33]; ?>
<div class="blockTitle"><?php echo $text['core_page_view']['edit'][33]; ?>
<span id="specialeHelpButton" class="helpDisplayButton">
<a href="https://doc.deltacms.fr/permission-et-referencement" target="_blank">
<?php echo template::ico('help', 'left');?>
</a>
</span>
</h4>
</div>
<div class="blockContainer">
<div class="row">
<div class='col6'>

View File

@ -29,7 +29,7 @@ echo template::formOpen('themeAddFonts'); ?>
</div>
<div class="block">
<h4><?php echo $text['core_theme_view']['addFonts'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['addFonts'][3]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::text('nameAddFont', [
@ -62,9 +62,9 @@ echo template::formOpen('themeAddFonts'); ?>
'help' => $text['core_theme_view']['addFonts'][11]
]); ?>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<script>
var textConfirm = <?php echo '"'.$text['core_theme_view']['addFonts'][12].'"'; ?>;
</script>
</script>

View File

@ -39,7 +39,7 @@ echo template::formOpen('configAdminForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['admin'][5]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['admin'][5]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::text('adminBackgroundColor', [
@ -132,7 +132,7 @@ echo template::formOpen('configAdminForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['admin'][18]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['admin'][18]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::select('adminFontText', $module::$fonts, [
@ -162,4 +162,4 @@ echo template::formOpen('configAdminForm'); ?>
<?php echo template::formClose(); ?>
<script>
var textConfirm = <?php echo '"'.$text['core_theme_view']['admin'][22].'"'; ?>;
</script>
</script>

View File

@ -30,7 +30,7 @@ echo template::formOpen('themeBodyForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['body'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['body'][3]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::text('themeBodyBackgroundColor', [
@ -65,7 +65,7 @@ echo template::formOpen('themeBodyForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['body'][9]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['body'][9]; ?></div>
<div class="row">
<div class="col12">
<?php

View File

@ -29,7 +29,7 @@ echo template::formOpen('themeEditFonts'); ?>
</div>
<div class="block">
<h4><?php echo $text['core_theme_view']['editFonts'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['editFonts'][3]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::text('nameEditFont', [
@ -65,7 +65,7 @@ echo template::formOpen('themeEditFonts'); ?>
'help' => $text['core_theme_view']['editFonts'][11]
]); ?>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>

View File

@ -3,16 +3,16 @@
include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
// Passage de la langue d'administration à Tinymce
?>
?>
<script>
var lang_admin = "<?php echo $lang_admin ?>";
</script>
</script>
<?php
// Inclusion de tinymce
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<link rel="stylesheet" href="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.css' . '">';
echo template::formOpen('themeFooterForm');
echo template::formOpen('themeFooterForm');
?>
<div class="row">
<div class="col2">
@ -41,7 +41,7 @@ echo template::formOpen('themeFooterForm');
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['footer'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['footer'][3]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::select('themeFooterPosition', $footerPositions, [
@ -62,7 +62,7 @@ echo template::formOpen('themeFooterForm');
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['footer'][6]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['footer'][6]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::text('themeFooterTextColor', [
@ -86,7 +86,7 @@ echo template::formOpen('themeFooterForm');
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['footer'][10]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['footer'][10]; ?></div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('themefooterDisplayCopyright', true, $text['core_theme_view']['footer'][11], [
@ -175,7 +175,7 @@ echo template::formOpen('themeFooterForm');
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['footer'][30]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['footer'][30]; ?></div>
<div class="row">
<div class="col3">
<?php echo template::select('themeFooterFont', $module::$fonts, [
@ -210,7 +210,7 @@ echo template::formOpen('themeFooterForm');
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['footer'][36]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['footer'][36]; ?></div>
<div class="row">
<div class="col4">
<?php $footerBlockPosition = is_null($this->getData(['theme', 'footer', 'template'])) ? $footerblocks[3] : $footerblocks [$this->getData(['theme', 'footer', 'template'])] ;?>
@ -302,4 +302,4 @@ echo template::formOpen('themeFooterForm');
<?php echo template::formClose(); ?>
<script>
var newOptions = <?php echo $text['core_theme_view']['footer'][46]; ?>;
</script>
</script>

View File

@ -2,18 +2,18 @@
// Lexique
include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
// Passage de la langue d'administration à Tinymce
?>
?>
<script>
var lang_admin = "<?php echo $lang_admin ?>";
</script>
</script>
<?php
// Inclusion de tinymce
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<link rel="stylesheet" href="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.css' . '">';
echo template::formOpen('themeFooterForm');
echo template::formOpen('themeFooterForm');
echo template::formOpen('themeHeaderForm');
echo template::formOpen('themeHeaderForm');
?>
<div class="row">
<div class="col2">
@ -42,7 +42,7 @@ echo template::formOpen('themeHeaderForm');
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['header'][2]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['header'][2]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::select('themeHeaderPosition', $headerPositions, [
@ -88,7 +88,7 @@ echo template::formOpen('themeHeaderForm');
</div>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::select('themeHeaderWide', $containerWides, [
@ -97,14 +97,14 @@ echo template::formOpen('themeHeaderForm');
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['header'][10]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['header'][10]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::text('themeHeaderBackgroundColor', [
@ -129,7 +129,7 @@ echo template::formOpen('themeHeaderForm');
<div class="row wallpaperContainer">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['header'][15]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['header'][15]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('themeHeaderTextHide', true, $text['core_theme_view']['header'][16], [
@ -178,7 +178,7 @@ echo template::formOpen('themeHeaderForm');
<div class="row wallpaperContainer">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['header'][23]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['header'][23]; ?></div>
<div class="row">
<div class="col12">
<?php
@ -249,4 +249,4 @@ echo template::formOpen('themeHeaderForm');
<?php echo template::formClose(); ?>
<script>
var textOption = <?php echo '"'.$text['core_theme_view']['header'][35].'"'; ?>;
</script>
</script>

View File

@ -38,7 +38,7 @@ echo template::formOpen('themeManageForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['manage'][4]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['manage'][4]; ?></div>
<div class="row">
<div class="col6 offset3">
<?php echo template::file('themeManageImport', [
@ -53,7 +53,7 @@ echo template::formOpen('themeManageForm'); ?>
<div class="row">
<div class="col6">
<div class="block">
<h4><?php echo $text['core_theme_view']['manage'][6]; ?><a href="<?php echo helper::baseUrl(false); ?>core/vendor/filemanager/dialog.php?fldr=theme&type=0&akey=<?php echo md5_file(self::DATA_DIR.'core.json'); ?>" data-lity><?php echo $text['core_theme_view']['manage'][7]; ?></a><?php echo $text['core_theme_view']['manage'][8]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['manage'][6]; ?><a href="<?php echo helper::baseUrl(false); ?>core/vendor/filemanager/dialog.php?fldr=theme&type=0&akey=<?php echo md5_file(self::DATA_DIR.'core.json'); ?>" data-lity><?php echo $text['core_theme_view']['manage'][7]; ?></a><?php echo $text['core_theme_view']['manage'][8]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::button('themeSave', [
@ -75,7 +75,7 @@ echo template::formOpen('themeManageForm'); ?>
<div class="col6">
<div class="block">
<h4><?php echo $text['core_theme_view']['manage'][11]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['manage'][11]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::button('themeExport', [
@ -98,4 +98,4 @@ echo template::formOpen('themeManageForm'); ?>
<?php echo template::formClose(); ?>
<script>
var textConfirm = <?php echo '"'.$text['core_theme_view']['manage'][14].'"'; ?>;
</script>
</script>

View File

@ -30,7 +30,7 @@ echo template::formOpen('themeMenuForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['menu'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['menu'][3]; ?></div>
<div class="row">
<div class="col6">
<?php
@ -106,7 +106,7 @@ echo template::formOpen('themeMenuForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['menu'][12]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['menu'][12]; ?></div>
<div class="row">
<div class="col3">
<?php echo template::checkbox('themeMenuLoginLink', true, $text['core_theme_view']['menu'][13], [
@ -145,7 +145,7 @@ echo template::formOpen('themeMenuForm'); ?>
]); ?>
</div>
</div>
</div>
</div>
<div class="row">
<div id="themeMenuBurgerLogoId" class="col6 offset6 <?php if( $this->getData(['theme', 'menu', 'burgerContent']) !== 'logo') echo 'displayNone';?>">
<?php
@ -165,7 +165,7 @@ echo template::formOpen('themeMenuForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['menu'][20]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['menu'][20]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::text('themeMenuTextColor', [
@ -223,7 +223,7 @@ echo template::formOpen('themeMenuForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['menu'][30]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['menu'][30]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::select('themeMenuFont', $module::$fonts, [

View File

@ -3,17 +3,17 @@
include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
// Passage de la langue d'administration ŕ Tinymce
/*
?>
?>
<script>
var lang_admin = "<?php echo $lang_admin ?>";
</script>
</script>
<?php
// Inclusion de tinymce
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<link rel="stylesheet" href="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.css' . '">';
*/
echo template::formOpen('themeFooterForm');
echo template::formOpen('themeFooterForm');
echo template::formOpen('themeSiteForm'); ?>
<div class="row">
<div class="col2">
@ -42,7 +42,7 @@ echo template::formOpen('themeSiteForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['site'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['site'][3]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::select('themeSiteWidth', $siteWidths, [
@ -76,7 +76,7 @@ echo template::formOpen('themeSiteForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_theme_view']['site'][8]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['site'][8]; ?></div>
<div class="row">
<div class="col8">
<div class="row">
@ -146,7 +146,7 @@ echo template::formOpen('themeSiteForm'); ?>
'label' => $text['core_theme_view']['site'][18],
'selected' => $this->getData(['theme', 'block', 'blockBorderShadow'])
]); ?>
</div>
</div>
</div>
<div class="row">
<div class="col6">
@ -185,7 +185,7 @@ echo template::formOpen('themeSiteForm'); ?>
<div class="row">
<div class="col12">
<div class="block preview">
<h4 class="preview"><?php echo $text['core_theme_view']['site'][24]; ?></h4> <p class="textPreview">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<h4 class="preview"><?php echo $text['core_theme_view']['site'][24]; ?></div> <p class="textPreview">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p><a href="#" class="urlPreview">Lorem ipsum dolor sit amet.</a></p>
</div>
</div>
@ -199,7 +199,7 @@ echo template::formOpen('themeSiteForm'); ?>
<div class="row">
<div class="col6">
<div class="block">
<h4><?php echo $text['core_theme_view']['site'][25]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['site'][25]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::select('themeTextFont', $module::$fonts, [
@ -220,7 +220,7 @@ echo template::formOpen('themeSiteForm'); ?>
</div>
<div class="col6">
<div class="block">
<h4><?php echo $text['core_theme_view']['site'][31]; ?></h4>
<div class="blockTitle"><?php echo $text['core_theme_view']['site'][31]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::select('themeTitleFont', $module::$fonts, [

View File

@ -1,4 +1,4 @@
<?php echo template::formOpen('translateFormCopy');
<?php echo template::formOpen('translateFormCopy');
// Lexique
include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_translate.php');
?>
@ -21,15 +21,15 @@ include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'lang
]); ?>
</div>
<div class="col2 offset6">
<?php echo template::submit('translateFormCopySubmit', [
<?php echo template::submit('translateFormCopySubmit', [
'value'=> $text['core_translate_view']['copy'][2]
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_translate_view']['copy'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['core_translate_view']['copy'][3]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::select('translateFormCopySource', $module::$languagesInstalled, [
@ -45,4 +45,4 @@ include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'lang
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<?php echo template::formClose(); ?>

View File

@ -1,4 +1,4 @@
<?php echo template::formOpen('translateForm');
<?php echo template::formOpen('translateForm');
// Lexique
include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_translate.php');
?>
@ -29,7 +29,7 @@ include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'lang
]); ?>
</div>
<div class="col2">
<?php echo template::submit('translateFormSubmit', [
<?php echo template::submit('translateFormSubmit', [
'value'=> $text['core_translate_view']['index'][3]
]); ?>
</div>
@ -37,7 +37,7 @@ include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'lang
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_translate_view']['index'][6]; ?></h4>
<div class="blockTitle"><?php echo $text['core_translate_view']['index'][6]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::select('translateLangAdmin', self::$i18nList_admin, [
@ -57,20 +57,20 @@ include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'lang
</div>
</div>
<div class="row">
<?php
<?php
if( $this->getData(['config', 'i18n' , 'langBase']) ==='none' || $select === 'none'){
echo '<div class="col4 offset4">';
}
else{
echo '<div id="translateOtherLangBase" class="displayNone col4 offset4">';
}
?>
?>
<?php echo template::text('translateOtherBase', [
'label' => $text['core_translate_view']['index'][15],
'help' => $text['core_translate_view']['index'][16],
'value' => $this->getData(['config', 'i18n' , 'otherLangBase'])
]); ?>
</div>
</div>
</div>
</div>
</div>
@ -78,7 +78,7 @@ include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'lang
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_translate_view']['index'][7]; ?></h4>
<div class="blockTitle"><?php echo $text['core_translate_view']['index'][7]; ?></div>
<?php if( ! array_key_exists( $this->getData(['config', 'i18n' , 'langBase']), self::$i18nListSiteOnly)) { ?>
<div class="row">
<div class="col6">
@ -109,13 +109,13 @@ include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'lang
<?php echo $text['core_translate_view']['index'][17]; ?>
</div></div>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block" id="flagsWrapper">
<h4><?php echo $text['core_translate_view']['index'][14]; ?></h4>
<div class="blockTitle"><?php echo $text['core_translate_view']['index'][14]; ?></div>
<div class="row">
<div class="col3">
<?php echo template::select('translateFR', $module::$translateOptions['fr'], [
@ -130,7 +130,7 @@ include('./core/module/translate/lang/'. $this->getData(['config', 'i18n', 'lang
'class' => 'translateFlagSelect',
'selected' => $this->getData(['config', 'i18n' , 'de'])
]); ?>
</div>
</div>
<div class="col3">
<?php echo template::select('translateEN', $module::$translateOptions['en'], [
'label' => template::flag('en', '30px'),

View File

@ -1,4 +1,4 @@
<?php echo template::formOpen('userAddForm');
<?php echo template::formOpen('userAddForm');
// Lexique
include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_user.php');
?>
@ -29,7 +29,7 @@ include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin
<div class="row">
<div class="col6">
<div class="block">
<h4><?php echo $text['core_user_view']['add'][13]; ?></h4>
<div class="blockTitle"><?php echo $text['core_user_view']['add'][13]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::text('userAddFirstname', [
@ -69,7 +69,7 @@ include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin
<?php echo $text['core_user_view']['add'][10]; ?>
<ul id="userAddGroupDescription<?php echo self::GROUP_MEMBER; ?>" class="userAddGroupDescription displayNone">
<li><?php echo $text['core_user_view']['add'][11]; ?></li>
</ul>
</ul>
<ul id="userAddGroupDescription<?php echo self::GROUP_EDITOR; ?>" class="userAddGroupDescription displayNone">
<li><?php echo $text['core_user_view']['add'][30]; ?></li>
<li><?php echo $text['core_user_view']['add'][31]; ?></li>
@ -93,7 +93,7 @@ include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin
</div>
<div class="col6">
<div class="block">
<h4><?php echo $text['core_user_view']['add'][21]; ?></h4>
<div class="blockTitle"><?php echo $text['core_user_view']['add'][21]; ?></div>
<?php echo template::text('userAddId', [
'autocomplete' => 'off',
'label' => $text['core_user_view']['add'][22]
@ -111,7 +111,7 @@ include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin
?>
</div>
<div class="block">
<h4><?php echo $text['core_user_view']['add'][26]; ?></h4>
<div class="blockTitle"><?php echo $text['core_user_view']['add'][26]; ?></div>
<?php echo template::select('userRedirectPageId', helper::arrayCollumn($module::$pagesList, 'title'), [
'label' => $text['core_user_view']['add'][27],
'selected' =>$this->getData(['user', $this->getUrl(2),'redirectPageId']),

View File

@ -1,4 +1,4 @@
<?php echo template::formOpen('userEditForm');
<?php echo template::formOpen('userEditForm');
// Lexique
include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_user.php');
?>
@ -29,7 +29,7 @@ include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin
<div class="row">
<div class="col6">
<div class="block">
<h4><?php echo $text['core_user_view']['edit'][13]; ?></h4>
<div class="blockTitle"><?php echo $text['core_user_view']['edit'][13]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::text('userEditFirstname', [
@ -103,7 +103,7 @@ include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin
</div>
<div class="col6">
<div class="block">
<h4><?php echo $text['core_user_view']['edit'][21]; ?></h4>
<div class="blockTitle"><?php echo $text['core_user_view']['edit'][21]; ?></div>
<?php echo template::text('userEditId', [
'autocomplete' => 'off',
'help' => $text['core_user_view']['edit'][31],
@ -125,7 +125,7 @@ include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin
]); ?>
</div>
<div class="block">
<h4><?php echo $text['core_user_view']['edit'][26]; ?></h4>
<div class="blockTitle"><?php echo $text['core_user_view']['edit'][26]; ?></div>
<?php echo template::select('userRedirectPageId', helper::arrayCollumn($module::$pagesList, 'title'), [
'label' => $text['core_user_view']['edit'][27],
'selected' =>$this->getData(['user', $this->getUrl(2),'redirectPageId']),

View File

@ -1,4 +1,4 @@
<?php echo template::formOpen('userImportForm');
<?php echo template::formOpen('userImportForm');
// Lexique
include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_user.php');
?>
@ -29,7 +29,7 @@ include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['core_user_view']['import'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['core_user_view']['import'][3]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::file('userImportCSVFile', [

View File

@ -22,8 +22,8 @@ echo template::formOpen('gestion_categorie'); ?>
</div>
<div class="block">
<h4><?php echo $text['agenda_view']['categorie'][4]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['categorie'][4]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::checkbox('val_categories', true, $text['agenda_view']['categorie'][2], [
@ -35,7 +35,7 @@ echo template::formOpen('gestion_categorie'); ?>
</div>
<div class="block">
<h4><?php echo $text['agenda_view']['categorie'][5]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['categorie'][5]; ?></div>
<div class="row">
<div class="col4">
<?php
@ -43,7 +43,7 @@ echo template::formOpen('gestion_categorie'); ?>
'help' => $text['agenda_view']['categorie'][6],
'label' => $text['agenda_view']['categorie'][7]
]);
?>
?>
</div>
<div class="col4">
<?php echo template::text('categorie_couleur_fond', [
@ -70,4 +70,4 @@ echo template::formOpen('gestion_categorie'); ?>
<div class="moduleVersion">
<?php echo $text['agenda_view']['categorie'][14]; echo $module::VERSION; ?>
</div>
</div>

View File

@ -15,7 +15,7 @@ echo template::formOpen('configuration'); ?>
'value' => $text['agenda_view']['config'][0]
]); ?>
</div>
<div class="col2 offset6">
<?php echo template::button('config_gestion_categorie', [
'class' => 'buttonBlue',
@ -31,7 +31,7 @@ echo template::formOpen('configuration'); ?>
]); ?>
</div>
</div>
<?php
if($this->getUser('group') < self::GROUP_MODERATOR) {
echo '<div class="displayNone">';
@ -40,7 +40,7 @@ else {
echo '<div class="block">';
}
?>
<h4><?php echo $text['agenda_view']['config'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['config'][3]; ?></div>
<div class="col6">
<?php echo template::select('config_droit_creation', $groupe, [
'help' => $text['agenda_view']['config'][6],
@ -48,7 +48,7 @@ else {
'disabled' => $readonly,
'label' => $text['agenda_view']['config'][7],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'droit_creation'])
]); ?>
]); ?>
</div>
<div class="col6">
<?php echo template::checkbox('config_droit_limite', true, $text['agenda_view']['config'][8], [
@ -60,19 +60,19 @@ else {
</div> <!-- Conditionnel -->
<div class="block">
<h4><?php echo $text['agenda_view']['config'][4]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['config'][4]; ?></div>
<div class="col4">
<?php echo template::select('config_MaxiWidth', $maxwidth,[
'help' => $text['agenda_view']['config'][10],
'label' => $text['agenda_view']['config'][11],
'selected' => $this->getData(['module', $this->getUrl(0),'config', 'maxiWidth'])
]); ?>
]); ?>
</div>
</div>
<div class="block">
<h4><?php echo $text['agenda_view']['config'][5]; ?></h4>
<div class="row">
<div class="blockTitle"><?php echo $text['agenda_view']['config'][5]; ?></div>
<div class="row">
<!--Sauvegarder l'agenda actuel-->
<div class="col6">
<?php
@ -82,10 +82,10 @@ else {
'id' => 'config_sauvegarde',
'label' => $text['agenda_view']['config'][13]
]);
?>
?>
</div>
<!--Sélection d'un fichier de sauvegarde-->
<?php
if($this->getUser('group') >= self::GROUP_MODERATOR) {
@ -99,16 +99,16 @@ else {
echo '</div>';
} ?>
</div>
</div>
<!--Tout supprimer-->
<?php if($this->getUser('group') >= self::GROUP_MODERATOR) { ?>
<div class="block">
<h4><?php echo $text['agenda_view']['config'][16]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['config'][16]; ?></div>
<div class="col4">
<?php echo template::button('config_suptout', [
'class' => 'configSup buttonRed',
@ -120,11 +120,11 @@ else {
]); ?>
</div>
</div>
<?php } ?>
<?php } ?>
<!-- Sélection d'un fichier ics depuis le dossier site/file/source/agenda/ics -->
<div class="block">
<h4><?php echo $text['agenda_view']['config'][17]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['config'][17]; ?></div>
<div class="row">
<div class="col6">
<!-- Sélection d'un fichier ics -->
@ -139,7 +139,7 @@ else {
<!-- Sélection d'un carnet d'adresses au format txt ou csv avec séparateur virgule -->
<div class="block">
<h4><?php echo $text['agenda_view']['config'][18]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['config'][18]; ?></div>
<div class="row">
<div class="col6">
<!-- Sélection d'un fichier csv ou txt -->
@ -159,7 +159,7 @@ if( null === $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDat
if( null === $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDateEnd'])) $this->setData(['module', $this->getUrl(0), 'texts', 'configTextDateEnd', $text['agenda_view']['config'][34]]);
?>
<div class="block">
<h4><?php echo $text['agenda_view']['config'][26]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['config'][26]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::text('configTextButtonBack', [
@ -168,7 +168,7 @@ if( null === $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDat
'label' => $text['agenda_view']['config'][28],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'configTextButtonBack'])
]);
?>
?>
</div>
<div class="col4">
<?php echo template::text('configTextDateStart', [
@ -177,7 +177,7 @@ if( null === $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDat
'label' => $text['agenda_view']['config'][30],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDateStart'])
]);
?>
?>
</div>
<div class="col4">
<?php echo template::text('configTextDateEnd', [
@ -186,12 +186,12 @@ if( null === $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDat
'label' => $text['agenda_view']['config'][32],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDateEnd'])
]);
?>
?>
</div>
</div>
</div>
<!-- Fin du formulaire principal à la mode Deltacms -->
<!-- Fin du formulaire principal à la mode Deltacms -->
<?php echo template::formClose(); ?>

View File

@ -6,15 +6,15 @@ include('./module/agenda/lang/'. $this->getData(['config', 'i18n', 'langAdmin'])
var lang_admin = "<?php echo $lang_admin; ?>";
var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";
</script>
<?php
<?php
// Inclusion de tinymce
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<link rel="stylesheet" href="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.css' . '">';
// $this->getUser('group') renvoie false pour un visiteur !
$userGroup = $this->getUser('group');
if( $userGroup === false) $userGroup = 0;
if( $userGroup === false) $userGroup = 0;
//Modification du tableau $groupe si l'option "limitation du choix des groupes liés aux évènements" est cochée
if ( $this->getData(['module', $this->getUrl(0), 'config', 'droit_limite']) ){
@ -44,7 +44,7 @@ echo template::formOpen('creation_events'); ?>
'value' => $text['agenda_view']['creation'][0]
]); ?>
</div>
<?php if( $this->getUser('group') >= $this->getData(['module', $this->getUrl(0), 'config', 'droit_creation']) ){
if( $this->getUser('group') >= self::GROUP_EDITOR){
$class_tinymce = 'editorWysiwyg';
@ -63,7 +63,7 @@ echo template::formOpen('creation_events'); ?>
</div>
<div class="block">
<h4><?php echo $text['agenda_view']['creation'][2]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['creation'][2]; ?></div>
<div class="row">
<div class="col12">
<?php echo template::textarea('creation_text', [
@ -93,17 +93,17 @@ echo template::formOpen('creation_events'); ?>
]); ?>
</div>
</div>
<div class="row">
<?php if( is_file($module::DATAMODULE.'categories/categories.json') && $this->getData(['module', $this->getUrl(0), 'categories', 'valCategories' ]) ){ ?>
<?php if( is_file($module::DATAMODULE.'categories/categories.json') && $this->getData(['module', $this->getUrl(0), 'categories', 'valCategories' ]) ){ ?>
<div class="col8">
<?php echo template::select('creation_categorie', $module::$categorie,[
'help' => $text['agenda_view']['creation'][9],
'label' => $text['agenda_view']['creation'][10]
]); ?>
]); ?>
</div>
<?php }
else{ ?>
<div class="col4">
@ -111,17 +111,17 @@ echo template::formOpen('creation_events'); ?>
'help' => $text['agenda_view']['creation'][11],
'label' => $text['agenda_view']['creation'][12],
'selected' => 'black'
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('creation_couleur_texte', $couleur,[
'help' => $text['agenda_view']['creation'][13],
'label' => $text['agenda_view']['creation'][14],
'selected' => 'white'
]); ?>
]); ?>
</div>
<?php } ?>
</div>
<div class="row">
<div class="col4">
@ -129,10 +129,10 @@ echo template::formOpen('creation_events'); ?>
'help' => $text['agenda_view']['creation'][15],
'label' => $text['agenda_view']['creation'][16],
'selected' => '0'
]); ?>
]); ?>
</div>
<div class="col4">
<?php
<?php
$groupe_mini = $this->getUser('group');
if ($groupe_mini == self::GROUP_ADMIN){ $groupe_mini = self::GROUP_MODERATOR;}
?>
@ -140,7 +140,7 @@ echo template::formOpen('creation_events'); ?>
'help' => $text['agenda_view']['creation'][17],
'label' => $text['agenda_view']['creation'][18],
'selected' => $groupe_mini
]); ?>
]); ?>
</div>
</div>
<div class="row">
@ -158,9 +158,9 @@ echo template::formOpen('creation_events'); ?>
]); ?>
</div>
</div>
</div>
<?php }
@ -168,7 +168,7 @@ echo template::formOpen('creation_events'); ?>
<!--Fermeture de la <div class="row"> si test false-->
</div>
<div>
<h4><?php echo $text['agenda_view']['creation'][23]; ?></h4>
<div class="blockTitle"><?php echo $text['agenda_view']['creation'][23]; ?></div>
</div>
<?php ;} ?>
@ -176,4 +176,4 @@ echo template::formOpen('creation_events'); ?>
<div class="moduleVersion">
<?php echo $text['agenda_view']['creation'][24];echo $module::VERSION; ?>
</div>
</div>

View File

@ -7,10 +7,10 @@ var lang_admin = "<?php echo $lang_admin; ?>";
var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";
</script>
<?php
<?php
// Inclusion de tinymce
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/tinymce.min.js' . '"></script>';
echo '<script src="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.js' . '"></script>';
echo '<link rel="stylesheet" href="' . helper::baseUrl(false) . 'core/vendor/tinymce/init.css' . '">';
// Adaptation de Tinymce en fonction des droits des utilisateurs
@ -25,7 +25,7 @@ if( $this->getUser('group') >= $module::$evenement['groupe_mod'] ){
// $this->getUser('group') renvoie false pour un visiteur !
$userGroup = $this->getUser('group');
if( $userGroup === false) $userGroup = 0;
if( $userGroup === false) $userGroup = 0;
//Modification du tableau $groupe si l'option "limitation du choix des groupes liés aux évènements" est cochée
if ( $this->getData(['module', $this->getUrl(0), 'config', 'droit_limite']) ){
@ -64,14 +64,14 @@ echo template::formOpen('edition_events'); ?>
'value' => $text['agenda_view']['edition'][1],
'ico' => 'cancel'
]); ?>
</div>
</div>
<div class="col2">
<?php echo template::submit('edition_enregistrer',[
'value' => $text['agenda_view']['edition'][2],
'ico' => 'check'
]); ?>
</div>
<?php
<?php
$readonly = false;
}
else{
@ -80,8 +80,8 @@ echo template::formOpen('edition_events'); ?>
</div>
<div class="block">
<h4><?php if ($readonly){echo $text['agenda_view']['edition'][3]; }else{echo $text['agenda_view']['edition'][4];}?></h4>
<div class="blockTitle"><?php if ($readonly){echo $text['agenda_view']['edition'][3]; }else{echo $text['agenda_view']['edition'][4];}?></div>
<?php if($readonly){echo $text['agenda_view']['edition'][5].'<br/><div class="block">'.$module::$evenement['texte'].'</div>';}
else{
?>
@ -119,15 +119,15 @@ echo template::formOpen('edition_events'); ?>
]); ?>
</div>
</div>
<div class="row">
<?php if( $module::$evenement['categorie'] != '' ){ ?>
<?php if( $module::$evenement['categorie'] != '' ){ ?>
<div class="col8">
<?php echo template::select('edition_categorie', $module::$categorie,[
'help' => $text['agenda_view']['edition'][10],
'label' => $text['agenda_view']['edition'][11],
'selected' => $module::$evenement['categorie']
]); ?>
]); ?>
</div>
<?php }
else{ ?>
@ -137,7 +137,7 @@ echo template::formOpen('edition_events'); ?>
'label' => $text['agenda_view']['edition'][13],
'disabled' => $readonly,
'selected' => $module::$evenement['couleurfond']
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('edition_couleur_texte', $couleur,[
@ -145,11 +145,11 @@ echo template::formOpen('edition_events'); ?>
'label' => $text['agenda_view']['edition'][15],
'disabled' => $readonly,
'selected' => $module::$evenement['couleurtexte']
]); ?>
]); ?>
</div>
<?php } ?>
</div>
<div class="row">
@ -159,7 +159,7 @@ echo template::formOpen('edition_events'); ?>
'label' => $text['agenda_view']['edition'][17],
'disabled' => $readonly,
'selected' => $module::$evenement['groupe_lire']
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('edition_groupe_mod', $groupe,[
@ -167,12 +167,12 @@ echo template::formOpen('edition_events'); ?>
'label' => $text['agenda_view']['edition'][19],
'disabled' => $readonly,
'selected' => $module::$evenement['groupe_mod']
]); ?>
]); ?>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="moduleVersion">
<?php echo $text['agenda_view']['edition'][20]; echo $module::VERSION; ?>
</div>
</div>

View File

@ -27,20 +27,20 @@ if( function_exists('datefmt_create') && function_exists('datefmt_create') && ex
<div class="row">
<div class="col6 offset3">
<div class="block">
<h4><?php echo $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDateStart']).' ';
<div class="blockTitle"><?php echo $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDateStart']).' ';
echo $datedeb.'<br>';
echo $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDateEnd']).' ';
echo $datefin;?> </h4>
echo $this->getData(['module', $this->getUrl(0), 'texts', 'configTextDateEnd']).' ';
echo $datefin;?> </div>
<p><?php echo $module::$evenement['texte'];?></p>
</div>
</div>
</div>

View File

@ -4,7 +4,7 @@ $param = 'blog_view';
include('./module/blog/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_blog.php');
// Passage de la langue d'administration à Tinymce et flatpickr
$lang_admin = $text['blog_view']['add'][24];
$lang_admin = $text['blog_view']['add'][24];
$lang_flatpickr = $text['blog_view']['add'][25];
?><script> var lang_admin = "<?php echo $lang_admin; ?>"; var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";</script><?php
echo '<script src="'. helper::baseUrl(false).'core/vendor/tinymce/tinymce.min.js"></script>';
@ -40,7 +40,7 @@ echo template::formOpen('blogAddForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['blog_view']['add'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['blog_view']['add'][3]; ?></div>
<div class="row">
<div class="col12">
<?php echo template::text('blogAddTitle', [
@ -86,7 +86,7 @@ echo template::formOpen('blogAddForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['blog_view']['add'][11]; ?></h4>
<div class="blockTitle"><?php echo $text['blog_view']['add'][11]; ?></div>
<div class="row">
<div class="col4 <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo 'displayNone'; ?> ">
<?php echo template::select('blogAddUserId', $module::$users, [
@ -115,7 +115,7 @@ echo template::formOpen('blogAddForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['blog_view']['add'][17]; ?></h4>
<div class="blockTitle"><?php echo $text['blog_view']['add'][17]; ?></div>
<div class="row">
<div class="col4 ">
<?php echo template::checkbox('blogAddCommentClose', true, $text['blog_view']['add'][18]); ?>

View File

@ -1,4 +1,4 @@
<?php
<?php
// Lexique
$param = 'blog_view';
include('./module/blog/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_blog.php');
@ -21,7 +21,7 @@ switch ($lang) {
break;
case 'fr' :
$lang_page = 'fr_FR';
break;
break;
}
// Si la langue n'est pas supportée par Tinymce la langue d'administration est utilisée
if( ! file_exists( 'core/vendor/tinymce/langs/'.$lang_page.'.js' )){
@ -71,9 +71,9 @@ if( function_exists('datefmt_create') && function_exists('datefmt_create') && ex
$heure = mb_detect_encoding(date('H:i', $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn'])), 'UTF-8', true)
? date('H:i', $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn']))
: utf8_encode(date('H:i', $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn'])));
echo $date . ' - ' . $heure;
echo $date . ' - ' . $heure;
} ?>
<!-- Bloc edition -->
<?php if (
@ -157,7 +157,7 @@ if( function_exists('datefmt_create') && function_exists('datefmt_create') && ex
]); ?>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="humanBot">
<?php echo template::textarea('blogArticleContent', [
'label' => $this->getData(['module', $this->getUrl(0), 'texts', 'Maxi']).' '.$this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'commentMaxlength']).' '.$this->getData(['module', $this->getUrl(0), 'texts', 'Cara']),
@ -184,7 +184,7 @@ if( function_exists('datefmt_create') && function_exists('datefmt_create') && ex
<?php echo template::text('blogInputBlue', [
'label' => 'Input Blue',
'value' => ''
]); ?>
]); ?>
</div>
<br>
<div class="row blogOuter">
@ -222,15 +222,15 @@ if( function_exists('datefmt_create') && function_exists('datefmt_create') && ex
<div class="col12">
<?php foreach($module::$comments as $commentId => $comment): ?>
<div class="block">
<h4><?php echo $module::$commentsSignature[$commentId]; ?>
<div class="blockTitle"><?php echo $module::$commentsSignature[$commentId]; ?>
<?php echo ' - '; echo mb_detect_encoding(date('d\/m\/Y\ \-\ H\:i', $comment['createdOn']), 'UTF-8', true)
? date('d\/m\/Y\ \-\ H\:i', $comment['createdOn'])
: utf8_encode(date('d\/m\/Y\ \-\ H\:i', $comment['createdOn']));
?>
</h4>
</div>
<?php echo $comment['content']; ?>
</div>
<?php endforeach; ?>
</div>
</div>
<?php echo $module::$pages; ?>
<?php echo $module::$pages; ?>

View File

@ -36,7 +36,7 @@ echo template::formOpen('blogConfig'); ?>
<div class="row" <?php if($this->getUser('group') < self::GROUP_MODERATOR) { echo 'style="display: none;"'; } ?> >
<div class="col12">
<div class="block">
<h4><?php echo $text['blog_view']['config'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['blog_view']['config'][3]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('blogConfigShowFeeds', true, $text['blog_view']['config'][4], [

View File

@ -4,7 +4,7 @@ $param = 'blog_view';
include('./module/blog/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_blog.php');
// Passage de la langue d'administration à Tinymce et flatpickr
$lang_admin = $text['blog_view']['edit'][24];
$lang_admin = $text['blog_view']['edit'][24];
$lang_flatpickr = $text['blog_view']['edit'][25];
?><script> var lang_admin = "<?php echo $lang_admin; ?>"; var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";</script><?php
echo '<script src="'. helper::baseUrl(false).'core/vendor/tinymce/tinymce.min.js"></script>';
@ -40,7 +40,7 @@ echo template::formOpen('blogEditForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['blog_view']['edit'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['blog_view']['edit'][3]; ?></div>
<div class="row">
<div class="col12">
<?php echo template::text('blogEditTitle', [
@ -52,7 +52,7 @@ echo template::formOpen('blogEditForm'); ?>
<div class="row">
<div class="col6">
<?php $help = $text['blog_view']['add'][23];
if( $this->getData(['theme', 'site', 'width']) !== '100%' ) $help = $text['blog_view']['edit'][5] . ((int) substr($this->getData(['theme', 'site', 'width']), 0, -2) - (20 * 2)) . ' x 350 pixels.';
if( $this->getData(['theme', 'site', 'width']) !== '100%' ) $help = $text['blog_view']['edit'][5] . ((int) substr($this->getData(['theme', 'site', 'width']), 0, -2) - (20 * 2)) . ' x 350 pixels.';
echo template::file('blogEditPicture', [
'help' => $help,
'label' => $text['blog_view']['edit'][6],
@ -91,7 +91,7 @@ echo template::formOpen('blogEditForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['blog_view']['edit'][11]; ?></h4>
<div class="blockTitle"><?php echo $text['blog_view']['edit'][11]; ?></div>
<div class="row">
<div class="col4 <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo 'displayNone'; ?> ">
<?php echo template::select('blogEditUserId', $module::$users, [
@ -120,7 +120,7 @@ echo template::formOpen('blogEditForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo$text['blog_view']['edit'][17]; ?></h4>
<div class="blockTitle"><?php echo$text['blog_view']['edit'][17]; ?></div>
<div class="row">
<div class="col4 ">
<?php echo template::checkbox('blogEditCommentClose', true, $text['blog_view']['edit'][18], [

View File

@ -5,7 +5,7 @@ include('./module/blog/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) .
// drapeau pour la langue d'origine ou la langue en traduction rédigée
if( $this->getInput('DELTA_I18N_SITE') === '' || $this->getInput('DELTA_I18N_SITE')=== null || $this->getInput('DELTA_I18N_SITE') === 'base'){
$flag = $this->getData(['config', 'i18n', 'langBase']);
$flag = $this->getData(['config', 'i18n', 'langBase']);
}
else{
$flag = $this->getInput('DELTA_I18N_SITE');
@ -30,7 +30,7 @@ else{
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['blog_view']['texts'][1]; ?><?php echo ' '.template::flag($flag, '20px');?></h4>
<div class="blockTitle"><?php echo $text['blog_view']['texts'][1]; ?><?php echo ' '.template::flag($flag, '20px');?></div>
<div class="row">
<div class="col4">
<?php echo template::text('blogTextsNoComment', [
@ -89,7 +89,7 @@ else{
'label' => $text['blog_view']['texts'][11],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'ArticleNoComment'])
]); ?>
</div>
</div>
</div>
<div class="row">
<div class="col4">
@ -129,7 +129,7 @@ else{
'label' => $text['blog_view']['texts'][19],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'TinymceCara'])
]); ?>
</div>
</div>
</div>
<div class="row">
<div class="col4">
@ -143,7 +143,7 @@ else{
'label' => $text['blog_view']['texts'][26],
'value' => $this->getData(['module', $this->getUrl(0), 'texts', 'ReadMore'])
]); ?>
</div>
</div>
</div>
</div>
</div>

View File

@ -78,7 +78,7 @@ include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) .
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['form_view']['config'][6]; ?></h4>
<div class="blockTitle"><?php echo $text['form_view']['config'][6]; ?></div>
<?php echo template::text('formConfigButton', [
'help' => $text['form_view']['config'][7],
'label' => $text['form_view']['config'][8],
@ -178,7 +178,7 @@ include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) .
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'captcha'])
]); ?>
</div>
</div>
</div>
<div class="row" <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo '<div style="display: none;">'; ?>>
<div class="col4">
<?php echo template::select('formConfigMaxSize', $module::$maxSizeUpload, [
@ -189,7 +189,7 @@ include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) .
<div class="col8">
<div class="row">
<div class="col12">
<?php echo template::label('formConfigUploadLabel', $text['form_view']['config'][32],[
<?php echo template::label('formConfigUploadLabel', $text['form_view']['config'][32],[
'help' => $text['form_view']['config'][38]
]); ?>
</div>
@ -199,7 +199,7 @@ include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) .
<?php echo template::checkbox('formConfigUploadJpg', true, $text['form_view']['config'][33], [
'checked' => (bool) $this->getData(['module', $this->getUrl(0), 'config', 'uploadJpg'])
]); ?>
</div>
</div>
<div class="col2">
<?php echo template::checkbox('formConfigUploadPng', true, $text['form_view']['config'][34], [
'checked' => (bool) $this->getData(['module', $this->getUrl(0), 'config', 'uploadPng'])
@ -225,7 +225,7 @@ include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) .
</div>
</div>
<div class="block" <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo '<div style="display: none;">'; ?>>
<h4><?php echo $text['form_view']['config'][27]; ?></h4>
<div class="blockTitle"><?php echo $text['form_view']['config'][27]; ?></div>
<div id="formConfigNoInput">
<?php echo template::speech($text['form_view']['config'][28]); ?>
</div>

View File

@ -19,7 +19,7 @@
class gallery extends common {
const VERSION = '4.3';
const VERSION = '4.2';
const REALNAME = 'Galerie';
const DELETE = true;
const UPDATE = '0.0';
@ -76,8 +76,8 @@ class gallery extends common {
// Mettre à jour la version
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '4.0' ]);
}
if (version_compare($versionData, '4.3', '<') ) {
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '4.3' ]);
if (version_compare($versionData, '4.2', '<') ) {
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '4.2' ]);
}
}

View File

@ -10,7 +10,7 @@ echo template::formOpen('galleryConfigForm'); ?>
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
'value' => $text['gallery_view']['config'][0]
'value' => $text['gallery_view']['config'][0]
]); ?>
</div>
<div class="col2 offset8 <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo 'displayNone'; ?> ">
@ -23,7 +23,7 @@ echo template::formOpen('galleryConfigForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['gallery_view']['config'][2]; ?></h4>
<div class="blockTitle"><?php echo $text['gallery_view']['config'][2]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::text('galleryConfigName', [
@ -54,7 +54,7 @@ echo template::formOpen('galleryConfigForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['gallery_view']['config'][5]; ?></h4>
<div class="blockTitle"><?php echo $text['gallery_view']['config'][5]; ?></div>
<?php if($module::$galleries): ?>
<?php echo template::table([1, 4, 5, 1, 1], $module::$galleries, ['',$text['gallery_view']['config'][3], $text['gallery_view']['config'][6], '', ''], ['id' => 'galleryTable'],$module::$galleriesId); ?>
<?php echo template::hidden('galleryConfigFilterResponse'); ?>

View File

@ -22,7 +22,7 @@ echo template::formOpen('galleryEditForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['gallery_view']['edit'][2]; ?></h4>
<div class="blockTitle"><?php echo $text['gallery_view']['edit'][2]; ?></div>
<div class="row">
<div class="col5">
<?php echo template::text('galleryEditName', [

View File

@ -23,11 +23,11 @@ echo template::formOpen('galleryThemeForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php
echo $text['gallery_view']['theme'][2]; echo template::help($text['gallery_view']['theme'][3]);
<div class="blockTitle">
<?php
echo $text['gallery_view']['theme'][2]; echo template::help($text['gallery_view']['theme'][3]);
?>
</h4>
</div>
<div class="row">
<div class="col3">
<?php echo template::select('galleryThemeThumbWidth', $galleryThemeSizeWidth, [
@ -104,12 +104,12 @@ echo template::formOpen('galleryThemeForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>
<?php
<div class="blockTitle">
<?php
echo $text['gallery_view']['theme'][17];
echo template::help($text['gallery_view']['theme'][3]);
echo template::help($text['gallery_view']['theme'][3]);
?>
</h4>
</div>
<div class="row">
<div class="col3">
<?php echo template::text('galleryThemeLegendTextColor', [
@ -149,4 +149,4 @@ echo template::formOpen('galleryThemeForm'); ?>
<div class="moduleVersion"><?php echo $text['gallery_view']['theme'][24]; echo $module::VERSION; ?>
</div>
</div>
</div>
</div>

View File

@ -3,7 +3,7 @@
include('./module/news/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_news.php');
// Passage de la langue d'administration à Tinymce et flatpickr
$lang_admin = $text['news_view']['add'][12];
$lang_admin = $text['news_view']['add'][12];
$lang_flatpickr = $text['news_view']['add'][13];
?><script> var lang_admin = "<?php echo $lang_admin; ?>"; var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";</script><?php
echo '<script src="'. helper::baseUrl(false).'core/vendor/tinymce/tinymce.min.js"></script>';
@ -39,7 +39,7 @@ echo template::formOpen('newsAddForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['news_view']['add'][5]; ?></h4>
<div class="blockTitle"><?php echo $text['news_view']['add'][5]; ?></div>
<?php echo template::text('newsAddTitle', [
'label' => $text['news_view']['add'][3]
]); ?>
@ -52,7 +52,7 @@ echo template::formOpen('newsAddForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['news_view']['add'][6]; ?></h4>
<div class="blockTitle"><?php echo $text['news_view']['add'][6]; ?></div>
<div class="row">
<div class="col4 <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo 'displayNone'; ?> ">
<?php echo template::select('newsAddUserId', $module::$users, [
@ -78,4 +78,4 @@ echo template::formOpen('newsAddForm'); ?>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<?php echo template::formClose(); ?>

View File

@ -1,5 +1,5 @@
<?php
// Lexique
// Lexique
include('./module/news/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_news.php');
echo template::formOpen('newsConfig'); ?>
@ -28,7 +28,7 @@ echo template::formOpen('newsConfig'); ?>
<div class="row <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo 'displayNone'; ?> ">
<div class="col12">
<div class="block">
<h4><?php echo $text['news_view']['config'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['news_view']['config'][3]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::checkbox('newsConfigShowFeeds', true, $text['news_view']['config'][4], [
@ -90,7 +90,7 @@ echo template::formOpen('newsConfig'); ?>
<div class="row <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo 'displayNone'; ?> ">
<div class="col12">
<div class="block">
<h4><?php echo $text['news_view']['config'][10]; ?></h4>
<div class="blockTitle"><?php echo $text['news_view']['config'][10]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::text('newsThemeBackgroundColor', [
@ -107,7 +107,7 @@ echo template::formOpen('newsConfig'); ?>
'label' => $text['news_view']['config'][14],
'value' => $this->getData(['module', $this->getUrl(0),'theme', 'borderColor'])
]); ?>
</div>
</div>
<div class="col4">
<?php echo template::select('newsThemeBorderWidth', $borderWidth, [
'label' => $text['news_view']['config'][12],
@ -131,7 +131,7 @@ echo template::formOpen('newsConfig'); ?>
</div>
</div>
</div>
</div>
</div>
<?php if($module::$news): ?>
<?php echo template::table([4, 2, 2, 2, 1, 1], $module::$news, [$text['news_view']['config'][16], $text['news_view']['config'][17], $text['news_view']['config'][18], $text['news_view']['config'][19], '', '']); ?>
<?php echo $module::$pages; ?>

View File

@ -3,7 +3,7 @@
include('./module/news/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_news.php');
// Passage de la langue d'administration à Tinymce et flatpickr
$lang_admin = $text['news_view']['edit'][12];
$lang_admin = $text['news_view']['edit'][12];
$lang_flatpickr = $text['news_view']['edit'][13];
?><script> var lang_admin = "<?php echo $lang_admin; ?>"; var lang_flatpickr = "<?php echo $lang_flatpickr; ?>";</script><?php
echo '<script src="'. helper::baseUrl(false).'core/vendor/tinymce/tinymce.min.js"></script>';
@ -39,7 +39,7 @@ echo template::formOpen('newsEditForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['news_view']['edit'][3]; ?></h4>
<div class="blockTitle"><?php echo $text['news_view']['edit'][3]; ?></div>
<?php echo template::text('newsEditTitle', [
'label' => $text['news_view']['edit'][4],
'value' => $this->getData(['module', $this->getUrl(0),'posts', $this->getUrl(2), 'title'])
@ -54,7 +54,7 @@ echo template::formOpen('newsEditForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['news_view']['edit'][5]; ?></h4>
<div class="blockTitle"><?php echo $text['news_view']['edit'][5]; ?></div>
<div class="row">
<div class="col4 <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo 'displayNone'; ?> ">
<?php echo template::select('newsEditUserId', $module::$users, [
@ -80,4 +80,4 @@ echo template::formOpen('newsEditForm'); ?>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<?php echo template::formClose(); ?>

View File

@ -13,7 +13,7 @@ echo template::formOpen('redirectionConfig'); ?>
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('redirectionConfigSubmit', [
<?php echo template::submit('redirectionConfigSubmit', [
'value' => $text['redirection_view']['config'][1]
]); ?>
</div>
@ -21,7 +21,7 @@ echo template::formOpen('redirectionConfig'); ?>
<div class="row">
<div class="col6">
<div class="block">
<h4><?php echo $text['redirection_view']['config'][4]; ?></h4>
<div class="blockTitle"><?php echo $text['redirection_view']['config'][4]; ?></div>
<?php echo template::text('redirectionConfigUrl', [
'label' => $text['redirection_view']['config'][2],
'placeholder' => 'http://',
@ -32,7 +32,7 @@ echo template::formOpen('redirectionConfig'); ?>
</div>
<div class="col6">
<div class="block">
<h4><?php echo $text['redirection_view']['config'][5]; ?></h4>
<div class="blockTitle"><?php echo $text['redirection_view']['config'][5]; ?></div>
<?php echo template::text('redirectionConfigCount', [
'disabled' => true,
'label' => $text['redirection_view']['config'][6],
@ -43,4 +43,4 @@ echo template::formOpen('redirectionConfig'); ?>
</div>
<?php echo template::formClose(); ?>
<div class="moduleVersion"><?php echo $text['redirection_view']['config'][7].$module::VERSION; ?>
</div>
</div>

View File

@ -1,11 +1,11 @@
<?php echo template::formOpen('searchConfig');
<?php echo template::formOpen('searchConfig');
// Lexique
include('./module/search/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_search.php');
?>
<?php // drapeau pour la langue d'origine ou la langue en traduction rédigée
if( $this->getInput('DELTA_I18N_SITE') === '' || $this->getInput('DELTA_I18N_SITE')=== null || $this->getInput('DELTA_I18N_SITE') === 'base'){
$flag = $this->getData(['config', 'i18n', 'langBase']);
$flag = $this->getData(['config', 'i18n', 'langBase']);
}
else{
$flag = $this->getInput('DELTA_I18N_SITE');
@ -21,7 +21,7 @@ else{
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('searchConfigSubmit', [
<?php echo template::submit('searchConfigSubmit', [
'value'=> $text['search_view']['config'][1]
]); ?>
</div>
@ -29,7 +29,7 @@ else{
<div class='row' <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo '<div style="display: none;">'; ?> >
<div class="col12">
<div class="block">
<h4><?php echo $text['search_view']['config'][6]; ?><?php echo ' '.template::flag($flag, '20px');?></h4>
<div class="blockTitle"><?php echo $text['search_view']['config'][6]; ?><?php echo ' '.template::flag($flag, '20px');?></div>
<div class="row">
<div class="col6">
<?php echo template::text('searchSubmitText', [
@ -93,10 +93,10 @@ else{
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['search_view']['config'][7]; ?>
<?php echo template::help( $text['search_view']['config'][8] );
<div class="blockTitle"><?php echo $text['search_view']['config'][7]; ?>
<?php echo template::help( $text['search_view']['config'][8] );
?>
</h4>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('searchKeywordColor', [
@ -113,4 +113,4 @@ else{
<?php echo template::formClose(); ?>
<div class="moduleVersion"><?php echo $text['search_view']['config'][11]; ?>
<?php echo $module::VERSION; ?>
</div>
</div>

View File

@ -1,4 +1,4 @@
<?php echo template::formOpen('searchForm');
<?php echo template::formOpen('searchForm');
// Lexique
include('./module/search/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_search.php');
?>
@ -31,7 +31,7 @@ include('./module/search/lang/'. $this->getData(['config', 'i18n', 'langAdmin'])
<?php if ( $module::$resultTitle ): ?>
<div class="col12">
<div class="block">
<?php echo '<h4>'.$module::$resultTitle . '</h4>'; ?>
<?php echo '<div class="blockTitle">'.$module::$resultTitle . '</div>'; ?>
<?php if ($module::$resultList )
echo '<p>'.$module::$resultList.'</p>';
?>

View File

@ -1,4 +1,4 @@
<h3>NAME AND SELECTION</h3>
<h3>SELECTION</h3>
<p>Select a folder where you have placed the slideshow images and save..</p>
<p>The slideshow will automatically adapt to the format (16/9, 4/3,...) or orientation of the images but the best visual result
will be obtained with images of the same format and orientation. But you are free to mix different images...</p>

View File

@ -31,18 +31,18 @@ echo template::formOpen('galleryEditForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['slider_view']['config'][2]; ?></h4>
<div class="blockTitle"><?php echo $text['slider_view']['config'][2]; ?></div>
<div class="row">
<div class="col6">
<?php echo template::select('galleryEditDirectory', str_replace('site/file/source/','',$module::$listDirs), [
'label' => $text['slider_view']['config'][4],
'selected' => array_search($this->getData(['module', $this->getUrl(0), 'config', 'directory']), $module::$listDirs)
]);
?>
]);
?>
</div>
<div id="galleryEditLabelView" class="col4 offset2 displayNone">
<?php echo template::label('galleryEditLabel', $text['slider_view']['config'][9], []);
?>
<?php echo template::label('galleryEditLabel', $text['slider_view']['config'][9], []);
?>
</div>
</div>
</div>
@ -51,77 +51,77 @@ echo template::formOpen('galleryEditForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['slider_view']['edit'][2]; ?></h4>
<div class="blockTitle"><?php echo $text['slider_view']['edit'][2]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::select('sliderBoutonsVisibles', $boutonsVisibles,[
'help' => $text['slider_view']['edit'][5],
'label' => $text['slider_view']['edit'][6],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'boutonsVisibles'])
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('sliderTypeBouton', $bouton,[
'help' => $text['slider_view']['edit'][7],
'label' => $text['slider_view']['edit'][8],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'typeBouton'])
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('sliderPagerVisible', $pagerVisible,[
'help' => $text['slider_view']['edit'][9],
'label' => $text['slider_view']['edit'][10],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'pagerVisible'])
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('sliderMaxiWidth', $module::$maxwidth,[
'help' => $text['slider_view']['edit'][11],
'label' => $text['slider_view']['edit'][12],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'maxiWidth'])
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('sliderFadingTime', $module::$fadingtime,[
'help' => $text['slider_view']['edit'][13],
'label' => $text['slider_view']['edit'][14],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'fadingTime'])
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('sliderDiapoTime', $module::$slidertime,[
'help' => $text['slider_view']['edit'][15],
'label' => $text['slider_view']['edit'][16],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'sliderTime'])
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('sliderVisibiliteLegende', $visibilite_legende,[
'help' => $text['slider_view']['edit'][17],
'label' => $text['slider_view']['edit'][18],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'visibiliteLegende'])
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('sliderPositionLegende', $position_legende,[
'help' => $text['slider_view']['edit'][19],
'label' => $text['slider_view']['edit'][20],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'positionLegende'])
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('sliderTempsApparition', $module::$apparition,[
'help' => $text['slider_view']['edit'][21],
'label' => $text['slider_view']['edit'][22],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'tempsApparition'])
]); ?>
]); ?>
</div>
<div class="col4">
<?php echo template::select('sliderTri', $sort,[
'help' => $text['slider_view']['edit'][23],
'label' => $text['slider_view']['edit'][24],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'tri'])
]); ?>
]); ?>
</div>
</div>
</div>
@ -129,6 +129,6 @@ echo template::formOpen('galleryEditForm'); ?>
</div>
<?php if($module::$pictures):
echo template::table([3, 5, 4], $module::$pictures, [$text['slider_view']['edit'][25], $text['slider_view']['edit'][26], $text['slider_view']['edit'][27]]);
endif;
echo template::formClose();
?>
endif;
echo template::formClose();
?>

View File

@ -33,7 +33,7 @@ echo template::formOpen('advancedForm'); ?>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['statislite_view']['advanced'][4]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['advanced'][4]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::textarea('statisliteAdvancedIP',[
@ -47,7 +47,7 @@ echo template::formOpen('advancedForm'); ?>
'autocomplete' => 'off',
'label' => $text['statislite_view']['advanced'][6],
'help' => $text['statislite_view']['advanced'][7],
'value' => $module::$yourIP
'value' => $module::$yourIP
]); ?>
</div>
<div class="row statisliteCheckboxAddIP">
@ -63,18 +63,18 @@ echo template::formOpen('advancedForm'); ?>
'help' => $text['statislite_view']['advanced'][10]
]); ?>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['statislite_view']['advanced'][11]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['advanced'][11]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::textarea('statisliteAdvancedQS',[
@ -103,18 +103,18 @@ echo template::formOpen('advancedForm'); ?>
'help' => $text['statislite_view']['advanced'][19]
]); ?>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4><?php echo $text['statislite_view']['advanced'][12]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['advanced'][12]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::textarea('statisliteAdvancedBot',[
@ -146,7 +146,7 @@ echo template::formOpen('advancedForm'); ?>
<?php } ?>
</div>
</div>
</div>
</div>
</div>

View File

@ -18,7 +18,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
'ico' => 'help',
'value' => $text['statislite_view']['config'][2]
]); ?>
</div>
</div>
<div class="col2 offset4"<?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'style="display:none"';?> >
<?php echo template::button('configAdvancedButton', [
'href' => helper::baseUrl() . $this->getUrl(0).'/advanced',
@ -35,11 +35,11 @@ echo template::formOpen('statisliteConfigForm'); ?>
<!-- Aide à propos de la configuration de Statislite, view config -->
<div class="helpDisplayContent">
<?php echo file_get_contents( $text['statislite_view']['config'][0]) ;?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block" <?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'style="display:none"'?> >
<h4><?php echo $text['statislite_view']['config'][5]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['config'][5]; ?></div>
<div class="row" >
<div class="col4">
<?php echo template::select('statisliteConfigTimePageMini', $timePageMini,[
@ -75,7 +75,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
</div>
<div class="block">
<h4><?php echo $text['statislite_view']['config'][14]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['config'][14]; ?></div>
<div class="row">
<!-- Affichage graphique des pages vues -->
@ -122,7 +122,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
</div>
<div class="block">
<h4><?php echo $text['statislite_view']['config'][23]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['config'][23]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::select('statisLiteConfigNbAffiDates', $nbAffiDates,[
@ -136,7 +136,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
</div>
<div class="block">
<h4><?php echo $text['statislite_view']['config'][26]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['config'][26]; ?></div>
<div class="row">
<div class="col4">
<?php echo template::select('statisliteConfigNbEnregSession', $nbEnregSession,[
@ -150,8 +150,8 @@ echo template::formOpen('statisliteConfigForm'); ?>
</div>
<div class="block">
<h4><?php echo $text['statislite_view']['config'][29]; ?></h4>
<?php if(is_file( $module::$fichiers_json.'robots.json')){
<div class="blockTitle"><?php echo $text['statislite_view']['config'][29]; ?></div>
<?php if(is_file( $module::$fichiers_json.'robots.json')){
copy( $module::$fichiers_json.'robots.json', $module::$tmp.'robots.json');
echo $text['statislite_view']['config'][30];
echo '<p><a href="'. helper::baseUrl(false).'site/data/statislite/module/tmp/robots.json" target="_blank">Fichier robots.json</a></p>';
@ -163,17 +163,17 @@ echo template::formOpen('statisliteConfigForm'); ?>
}
?>
</div>
<div class="block"<?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'style="display:none"'?>>
<h4><?php echo $text['statislite_view']['config'][32]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['config'][32]; ?></div>
<?php echo template::checkbox('statisliteConfigMajForce', true, $text['statislite_view']['config'][33], [
'checked' => false,
'help' => $text['statislite_view']['config'][34]
]); ?>
</div>
<div class="block"<?php if( $this->getUser('group') < self::GROUP_MODERATOR ) echo 'style="display:none"'?>>
<h4><?php echo $text['statislite_view']['config'][35];?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['config'][35];?></div>
<div class="row">
<div class="col2">
<?php echo template::button('configSauveJson', [
@ -181,7 +181,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
'ico' => 'download',
'value' => $text['statislite_view']['config'][36]
]); ?>
</div>
</div>
<div class="col2 offset8">
<?php echo template::button('configInitJson', [
'class' => 'configInitJson buttonRed',
@ -191,7 +191,7 @@ echo template::formOpen('statisliteConfigForm'); ?>
]); ?>
</div>
</div>
<div class="row">
<!--Sélection d'un fichier de sauvegarde-->
<div class="col8">
@ -203,11 +203,11 @@ echo template::formOpen('statisliteConfigForm'); ?>
]); ?>
</div>
</div>
</div>
</div>
</div>

View File

@ -7,7 +7,7 @@ include('./module/statislite/lang/'. $this->getData(['config', 'i18n', 'langAdmi
* Affichage des résultats
*/
/*
/*
* Paramètres réglés en configuration du module
*/
// Temps minimum à passer sur le site en secondes pour valider une visite
@ -32,7 +32,7 @@ $geolocalisation = $this->getData(['module', $this->getUrl(0), 'config', 'geoloc
/*
* Affichage cumulé depuis le début de l'analyse soit depuis l'initialisation du fichier cumul.json
*/
*/
?>
<div class="block">
<?php
@ -50,9 +50,9 @@ if( function_exists('datefmt_create') && function_exists('datefmt_create') && ex
$datedeb = $module::$datedebut;
}
?>
<h4><?php echo $text['statislite_view']['index'][0]; echo $datedeb;?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['index'][0]; echo $datedeb;?></div>
<div class="row">
<div class="col4"><h3>
<div class="col4"><h3>
<?php echo $text['statislite_view']['index'][1].$module::$comptepagestotal;?></h3>
</div>
<div class="col4"><h3>
@ -62,75 +62,75 @@ if( function_exists('datefmt_create') && function_exists('datefmt_create') && ex
<?php echo $text['statislite_view']['index'][3].$module::$dureevisitemoyenne;?></h3>
</div>
</div><br/><br/>
<?php
<?php
if($nbaffipagesvues != 0){
// Affichage des pages vues et de leur nombre de clics en prenant en compte cumul.json et sessionLog.json
?> <div class="blockgraph">
<div class="stats multicolor">
<h4><?php echo $text['statislite_view']['index'][4]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['index'][4]; ?></div>
<ul>
<?php foreach($module::$pagesvuesaffi as $page=>$score){
// Adaptation de la longueur au score
$long =ceil((float)($score/$module::$scoremax)*10)*10;
?> <li><?php echo $page; ?><span class="percent v<?php echo $long; ?>"> <?php echo $score; ?></span></li>
?> <li><?php echo $page; ?><span class="percent v<?php echo $long; ?>"> <?php echo $score; ?></span></li>
<?php }
?>
</ul>
</div>
</div><br/><br/>
<?php }
// Affichage des langages préférés en prenant en compte cumul.json et sessionLog.json
if($nbaffilangues != 0){
?> <div class="blockgraph">
<div class="stats grey_gradiant">
<h4><?php echo $text['statislite_view']['index'][5];?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['index'][5];?></div>
<ul>
<?php foreach($module::$languesaffi as $lang=>$score){
// Adaptation de la longueur au score
$long =ceil((float)($score/$module::$scoremaxlangues)*10)*10;
?> <li><?php echo $lang; ?><span class="percent v<?php echo $long; ?>"> <?php echo $score; ?></span></li>
?> <li><?php echo $lang; ?><span class="percent v<?php echo $long; ?>"> <?php echo $score; ?></span></li>
<?php }
?>
</ul>
</div>
</div><br/><br/>
<?php }
<?php }
// Affichage des navigateurs en prenant en compte cumul.json et sessionLog.json
if($nbaffinavigateurs != 0){
?> <div class="blockgraph notranslate">
<div class="stats green_gradiant">
<h4><?php echo $text['statislite_view']['index'][6]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['index'][6]; ?></div>
<ul>
<?php foreach($module::$navigateursaffi as $navig=>$score){
// Adaptation de la longueur au score
$long =ceil((float)($score/$module::$scoremaxnavi)*10)*10;
?> <li><?php echo $navig; ?><span class="percent v<?php echo $long; ?>"> <?php echo $score; ?></span></li>
?> <li><?php echo $navig; ?><span class="percent v<?php echo $long; ?>"> <?php echo $score; ?></span></li>
<?php }
?>
</ul>
</div>
</div><br/><br/>
<?php }
<?php }
// Affichage des systèmes d'exploitation en prenant en compte cumul.json et sessionLog.json
if($nbaffise != 0){
?> <div class="blockgraph notranslate">
<div class="stats grey_gradiant">
<h4><?php echo $text['statislite_view']['index'][7]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['index'][7]; ?></div>
<ul>
<?php foreach($module::$systemesaffi as $syse=>$score){
// Adaptation de la longueur au score
$long =ceil((float)($score/$module::$scoremaxse)*10)*10;
?> <li><?php echo $syse; ?><span class="percent v<?php echo $long; ?>"> <?php echo $score; ?></span></li>
?> <li><?php echo $syse; ?><span class="percent v<?php echo $long; ?>"> <?php echo $score; ?></span></li>
<?php }
?>
</ul>
</div>
</div><br/><br/>
<?php }
<?php }
// Affichage des robots et des sessions invalides
$json = file_get_contents($module::$fichiers_json.'cumul.json');
$cumul = json_decode($json, true);?>
@ -151,10 +151,10 @@ if( function_exists('datefmt_create') && function_exists('datefmt_create') && ex
/*
* Affichage des visites, pages vues, durée des x dernières dates du fichier chrono.json
*
*/
if( $nbAffiDates != 0){ ?>
*/
if( $nbAffiDates != 0){ ?>
<div class="block">
<h4><?php echo $text['statislite_view']['index'][10]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['index'][10]; ?></div>
<?php
$i = 0;
foreach($module::$chronoaffi as $date=>$value){
@ -177,11 +177,11 @@ if( $nbAffiDates != 0){ ?>
<?php if($module::$chronoaffi[$date]['nb_visites'] > 0){ echo $text['statislite_view']['index'][14].$dureeparvisite; }?>
</div>
</div>
<?php
<?php
$i++;
if($i >= $nbAffiDates) { break;}
} ?>
</div>
</div>
<?php
}
/*
@ -195,7 +195,7 @@ if( isset($tableau[0]['vues'][0])){
$datedebut = substr($tableau[count($tableau) - 1]['vues'][0], 0 , 19);
?>
<div class="block">
<h4><?php echo $text['statislite_view']['index'][15]; ?></h4>
<div class="blockTitle"><?php echo $text['statislite_view']['index'][15]; ?></div>
<?php
$comptepages = 0;
$comptevisites = 0;
@ -240,7 +240,7 @@ if( isset($tableau[0]['vues'][0])){
$comptevisites++;
$comptepages = $comptepages + $nbpageparsession;
}
// Affichage du bilan pour la période en cours
echo '<strong>'.$text['statislite_view']['index'][26].$datedebut.'</strong><br/>'.'<br/>';
echo $text['statislite_view']['index'][27].$comptepages.'<br/>';