This commit is contained in:
fredtempez 2019-12-03 17:56:43 +01:00
commit d26f8a38ba
5 changed files with 16 additions and 15 deletions

View File

@ -4,6 +4,7 @@
- Corrections - Corrections
- Gestionnaire de fichiers, modifications des paramètres des miniatures. - Gestionnaire de fichiers, modifications des paramètres des miniatures.
- Suppression d'options inutiles dans l'édition d'une page de type de barre latérale. - Suppression d'options inutiles dans l'édition d'une page de type de barre latérale.
- Filtrage du nom des pages dans la fenêtre d'édition des pages.
## version 9.2.12 ## version 9.2.12
- Modifications - Modifications

View File

@ -561,23 +561,23 @@ class common {
if ($this->getData(['page', $parentId, 'block']) !== 'bar' ) { if ($this->getData(['page', $parentId, 'block']) !== 'bar' ) {
// Boucler sur les enfants et récupérer le tableau children avec la liste des enfants // Boucler sur les enfants et récupérer le tableau children avec la liste des enfants
foreach($childIds as $childId) { foreach($childIds as $childId) {
$children [] = [ 'title' => ' » '. $this->getData(['page', $childId, 'title']) , $children [] = [ 'title' => ' » '. html_entity_decode($this->getData(['page', $childId, 'title']), ENT_QUOTES) ,
'value'=> $rewrite.$childId 'value'=> $rewrite.$childId
]; ];
} }
// Traitement // Traitement
if (empty($childIds)) { if (empty($childIds)) {
// Pas d'enfant, uniuement l'entrée du parent // Pas d'enfant, uniuement l'entrée du parent
$parents [] = ['title' => $this->getData(['page', $parentId, 'title']) , $parents [] = ['title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES) ,
'value'=> $rewrite.$parentId 'value'=> $rewrite.$parentId
]; ];
} else { } else {
// Des enfants, on ajoute la page parent en premier // Des enfants, on ajoute la page parent en premier
array_unshift ($children , ['title' => $this->getData(['page', $parentId, 'title']) , array_unshift ($children , ['title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES) ,
'value'=> $rewrite.$parentId 'value'=> $rewrite.$parentId
]); ]);
// puis on ajoute les enfants au parent // puis on ajoute les enfants au parent
$parents [] = ['title' => $this->getData(['page', $parentId, 'title']) , $parents [] = ['title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES) ,
'value'=> $rewrite.$parentId , 'value'=> $rewrite.$parentId ,
'menu' => $children 'menu' => $children
]; ];
@ -731,8 +731,8 @@ class common {
*/ */
public function sendMail($to, $subject, $content) { public function sendMail($to, $subject, $content) {
// Utilisation de PHPMailer version 6.0.6 // Utilisation de PHPMailer version 6.0.6
require "core/vendor/phpmailer/phpmailer.php"; require_once "core/vendor/phpmailer/phpmailer.php";
require "core/vendor/phpmailer/exception.php"; require_once "core/vendor/phpmailer/exception.php";
// Layout // Layout
ob_start(); ob_start();

View File

@ -53,8 +53,8 @@ class page extends common {
]; ];
public static $displayMenu = [ public static $displayMenu = [
'none' => 'Aucun', 'none' => 'Aucun',
'parents' => 'Menu principal', 'parents' => 'Le menu horizontal',
'children' => 'Sous-menu de la page parente' 'children' => 'Le sous-menu de la page parente'
]; ];
/** /**
@ -259,8 +259,8 @@ class page extends common {
'position' => $position, 'position' => $position,
'group' => $this->getinput('pageEditBlock') !== 'bar' ? $this->getInput('pageEditGroup', helper::FILTER_INT) : 0, 'group' => $this->getinput('pageEditBlock') !== 'bar' ? $this->getInput('pageEditGroup', helper::FILTER_INT) : 0,
'targetBlank' => $this->getInput('pageEditTargetBlank', helper::FILTER_BOOLEAN), 'targetBlank' => $this->getInput('pageEditTargetBlank', helper::FILTER_BOOLEAN),
'targetLity' => $this->getInput('pageEditTargetBlank', helper::FILTER_BOOLEAN) === true ? false : $this->getInput('pageEditTargetLity', helper::FILTER_BOOLEAN), 'targetLity' => $this->getInput('pageEditTargetBlank', helper::FILTER_BOOLEAN) === true ? false : $this->getInput('pageEditTargetLity', helper::FILTER_BOOLEAN),
'title' => htmlspecialchars_decode($this->getInput('pageEditTitle', helper::FILTER_STRING_SHORT, true), ENT_QUOTES), 'title' => $this->getInput('pageEditTitle', helper::FILTER_STRING_SHORT),
'block' => $this->getinput('pageEditBlock'), 'block' => $this->getinput('pageEditBlock'),
'barLeft' => $barLeft, 'barLeft' => $barLeft,
'barRight' => $barRight, 'barRight' => $barRight,

View File

@ -515,7 +515,7 @@ $("#pageEditParentPageId").on("change", function() {
positionPrevious++; positionPrevious++;
// Ajout à la liste // Ajout à la liste
positionDOM.append( positionDOM.append(
$("<option>").val(positionPrevious).text("Après \"" + (pages[key].title) + "\"") $("<option>").val(positionPrevious).html("Après \"" + (pages[key].title) + "\"")
); );
} }
} }
@ -540,7 +540,7 @@ $("#pageEditParentPageId").on("change", function() {
positionPrevious++; positionPrevious++;
// Ajout à la liste // Ajout à la liste
positionDOM.append( positionDOM.append(
$("<option>").val(positionPrevious).text("Après \"" + (pages[hierarchy[parentSelected][i]].title) + "\"") $("<option>").val(positionPrevious).html("Après \"" + (pages[hierarchy[parentSelected][i]].title) + "\"")
); );
} }
} }

View File

@ -1,7 +1,7 @@
<?php <?php
// Mise à jour de la liste des pages pour TinyMCE echo template::formOpen('pageEditForm');
$this->pages2Json(); // Mise à jour de la liste des pages pour TinyMCE
echo template::formOpen('pageEditForm'); ?> $this->pages2Json(); ?>
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php $href = helper::baseUrl() . $this->getUrl(2); ?> <?php $href = helper::baseUrl() . $this->getUrl(2); ?>