From 9e153cf85f8509c46752661eb3d49ed67762ecc8 Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Fri, 14 Jul 2023 14:39:38 +0200 Subject: [PATCH] [TASK] Readd code --- Classes/FrontendEditPanel.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 8aecc1c..c4eee63 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -174,21 +174,21 @@ class FrontendEditPanel '; -// // Wrap the panel -// if ($conf['innerWrap']) { -// $panel = $this->cObj->wrap($panel, $conf['innerWrap']); -// } -// if ($conf['innerWrap.']) { -// $panel = $this->cObj->stdWrap($panel, $conf['innerWrap.']); -// } -// -// // Wrap the complete panel -// if ($conf['outerWrap']) { -// $panel = $this->cObj->wrap($panel, $conf['outerWrap']); -// } -// if ($conf['outerWrap.']) { -// $panel = $this->cObj->stdWrap($panel, $conf['outerWrap.']); -// } + // Wrap the panel + if ($conf['innerWrap']) { + $panel = $this->cObj->wrap($panel, $conf['innerWrap']); + } + if ($conf['innerWrap.']) { + $panel = $this->cObj->stdWrap($panel, $conf['innerWrap.']); + } + + // Wrap the complete panel + if ($conf['outerWrap']) { + $panel = $this->cObj->wrap($panel, $conf['outerWrap']); + } + if ($conf['outerWrap.']) { + $panel = $this->cObj->stdWrap($panel, $conf['outerWrap.']); + } if ($conf['printBeforeContent'] ?? false) { $finalOut = $panel . $content; } else { @@ -196,8 +196,8 @@ class FrontendEditPanel } $hidden = $this->isDisabled($table, $dataArr) ? ' typo3-feedit-element-hidden' : ''; -// $outerWrapConfig = $conf['stdWrap.'] ?? ['wrap' => '
|
']; -// $finalOut = $this->cObj->stdWrap($finalOut, $outerWrapConfig); + $outerWrapConfig = $conf['stdWrap.'] ?? ['wrap' => '
|
']; + $finalOut = $this->cObj->stdWrap($finalOut, $outerWrapConfig); return $finalOut; }