pas de commentaire dans une barre latérale

This commit is contained in:
Deltacms 2024-02-06 16:21:05 +01:00
parent 5eed8d2a59
commit 501d101b07
3 changed files with 6 additions and 2 deletions

View File

@ -662,7 +662,7 @@ class page extends common {
'hideMenuSide' => $this->getinput('pageEditHideMenuSide', helper::FILTER_BOOLEAN),
'hideMenuHead' => $this->getinput('pageEditHideMenuHead', helper::FILTER_BOOLEAN),
'hideMenuChildren' => $this->getinput('pageEditHideMenuChildren', helper::FILTER_BOOLEAN),
'commentEnable' => $this->getinput('pageEditCommentEnable', helper::FILTER_BOOLEAN)
'commentEnable' => $this->getinput('pageEditBlock') !== 'bar' ? $this->getinput('pageEditCommentEnable', helper::FILTER_BOOLEAN) : false
]
]);
// Creation du contenu de la page

View File

@ -167,10 +167,12 @@ $( document ).ready(function() {
$("#pageEditBlockLayout").removeClass("col6");
$("#pageEditBlockLayout").addClass("col12");
*/
$(".pageEditCommentRow").css("display","none");
} else {
$("#pageEditDisplayMenuWrapper").removeClass("disabled");
$("#pageEditDisplayMenuWrapper").slideUp();
$(".pageEditCommentRow").css("display","block");
}
/**
@ -414,6 +416,7 @@ pageEditBlockDOM.on("change", function() {
$("#pageEditBlockLayout").removeClass("col6");
$("#pageEditBlockLayout").addClass("col12");
*/
$(".pageEditCommentRow").css("display","none");
} else {
$("#pageEditMenu").addClass("disabled");
$("#pageEditMenu").show();
@ -443,6 +446,7 @@ pageEditBlockDOM.on("change", function() {
$("#pageEditBlockLayout").removeClass("col12");
$("#pageEditBlockLayout").addClass("col6");
*/
$(".pageEditCommentRow").css("display","block");
}
});

View File

@ -147,7 +147,7 @@ else {
echo '<div style="display: block;">';
}
?>
<div class="row">
<div class="row pageEditCommentRow">
<div class="col12" >
<div class="block">
<div class="blockTitle"><?php echo $text['core_page_view']['edit'][47]; ?>