diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php
index 6470414..a6ea008 100644
--- a/Classes/FrontendEditPanel.php
+++ b/Classes/FrontendEditPanel.php
@@ -73,14 +73,14 @@ class FrontendEditPanel {
// Special content is about to be shown, so the cache must be disabled.
$GLOBALS['TSFE']->set_no_cache();
$formName = 'TSFE_EDIT_FORM_' . substr($GLOBALS['TSFE']->uniqueHash(), 0, 4);
- $formTag = ((((((('
';
@@ -188,22 +188,22 @@ class FrontendEditPanel {
public function editIcons($content, $params, array $conf = array(), $currentRecord = '', array $dataArr = array(), $addUrlParamStr = '', $table, $editUid, $fieldList) {
// Special content is about to be shown, so the cache must be disabled.
$GLOBALS['TSFE']->set_no_cache();
- $style = $conf['styleAttribute'] ? (' style="' . htmlspecialchars($conf['styleAttribute'])) . '"' : '';
+ $style = $conf['styleAttribute'] ? ' style="' . htmlspecialchars($conf['styleAttribute']) . '"' : '';
$iconTitle = $this->cObj->stdWrap($conf['iconTitle'], $conf['iconTitle.']);
- $iconImg = $conf['iconImg'] ? $conf['iconImg'] : (((((' ';
+ $iconImg = $conf['iconImg'] ? $conf['iconImg'] : ' ';
$nV = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('ADMCMD_view') ? 1 : 0;
$adminURL = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir;
- $icon = $this->editPanelLinkWrap_doWrap($iconImg, (((((((($adminURL . 'alt_doc.php?edit[') . $table) . '][') . $editUid) . ']=edit&columnsOnly=') . rawurlencode($fieldList)) . '&noView=') . $nV) . $addUrlParamStr, $currentRecord);
+ $icon = $this->editPanelLinkWrap_doWrap($iconImg, $adminURL . 'alt_doc.php?edit[' . $table . '][' . $editUid . ']=edit&columnsOnly=' . rawurlencode($fieldList) . '&noView=' . $nV . $addUrlParamStr, $currentRecord);
if ($conf['beforeLastTag'] < 0) {
$content = $icon . $content;
} elseif ($conf['beforeLastTag'] > 0) {
$cBuf = rtrim($content);
$securCount = 30;
- while (($securCount && substr($cBuf, -1) == '>') && substr($cBuf, -4) != '') {
+ while ($securCount && substr($cBuf, -1) == '>' && substr($cBuf, -4) != '') {
$cBuf = rtrim(preg_replace('/<[^<]*>$/', '', $cBuf));
$securCount--;
}
- $content = strlen($cBuf) && $securCount ? (substr($content, 0, strlen($cBuf)) . $icon) . substr($content, strlen($cBuf)) : ($content = $icon . $content);
+ $content = strlen($cBuf) && $securCount ? substr($content, 0, strlen($cBuf)) . $icon . substr($content, strlen($cBuf)) : ($content = $icon . $content);
} else {
$content .= $icon;
}
@@ -230,26 +230,26 @@ class FrontendEditPanel {
$adminURL = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir;
if ($cmd == 'edit' && !$editFormsOnPage) {
$rParts = explode(':', $currentRecord);
- $out = $this->editPanelLinkWrap_doWrap($string, ((((($adminURL . 'alt_doc.php?edit[') . $rParts[0]) . '][') . $rParts[1]) . ']=edit&noView=') . $nV, $currentRecord);
+ $out = $this->editPanelLinkWrap_doWrap($string, $adminURL . 'alt_doc.php?edit[' . $rParts[0] . '][' . $rParts[1] . ']=edit&noView=' . $nV, $currentRecord);
} elseif ($cmd == 'new' && !$editFormsOnPage) {
$rParts = explode(':', $currentRecord);
if ($rParts[0] == 'pages') {
- $out = $this->editPanelLinkWrap_doWrap($string, (($adminURL . 'db_new.php?id=') . $rParts[1]) . '&pagesOnly=1', $currentRecord);
+ $out = $this->editPanelLinkWrap_doWrap($string, $adminURL . 'db_new.php?id=' . $rParts[1] . '&pagesOnly=1', $currentRecord);
} else {
if (!intval($nPid)) {
$nPid = \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($rParts[1]) ? -$rParts[1] : $GLOBALS['TSFE']->id;
}
- $out = $this->editPanelLinkWrap_doWrap($string, ((((($adminURL . 'alt_doc.php?edit[') . $rParts[0]) . '][') . $nPid) . ']=new&noView=') . $nV, $currentRecord);
+ $out = $this->editPanelLinkWrap_doWrap($string, $adminURL . 'alt_doc.php?edit[' . $rParts[0] . '][' . $nPid . ']=new&noView=' . $nV, $currentRecord);
}
} else {
if ($confirm && $GLOBALS['BE_USER']->jsConfirmation(8)) {
// Gets htmlspecialchared later
- $cf1 = ('if (confirm(' . \TYPO3\CMS\Core\Utility\GeneralUtility::quoteJSvalue($confirm, TRUE)) . ')) {';
+ $cf1 = 'if (confirm(' . \TYPO3\CMS\Core\Utility\GeneralUtility::quoteJSvalue($confirm, TRUE) . ')) {';
$cf2 = '}';
} else {
$cf1 = ($cf2 = '');
}
- $out = ((('') . $string) . ' ';
+ $out = '' . $string . ' ';
}
return $out;
}
@@ -271,9 +271,9 @@ class FrontendEditPanel {
if ($rParts[0] == 'tt_content' && $this->parentRecordNumber > 2) {
$retUrl .= '#' . $rParts[1];
}
- return ((('') . $string) . ' ';
+ return '' . $string . ' ';
} else {
- return ((('') . $string) . ' ';
+ return '' . $string . ' ';
}
}
@@ -299,7 +299,7 @@ class FrontendEditPanel {
if ($conf['innerWrap.']) {
$content = $this->stdWrap($content, $conf['innerWrap.']);
}
- $content = ((((('';
+ $content = '';
if ($conf['outerWrap']) {
$content = $this->wrap($content, $conf['outerWrap']);
}
@@ -319,7 +319,7 @@ class FrontendEditPanel {
* @see editPanelPreviewBorder()
*/
protected function isDisabled($table, $row) {
- if ((($GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['disabled'] && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['disabled']] || ($GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['fe_group'] && $GLOBALS['TSFE']->simUserGroup) && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['fe_group']] == $GLOBALS['TSFE']->simUserGroup) || $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['starttime'] && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['starttime']] > $GLOBALS['EXEC_TIME']) || ($GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['endtime'] && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['endtime']]) && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['endtime']] < $GLOBALS['EXEC_TIME']) {
+ if ($GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['disabled'] && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['disabled']] || $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['fe_group'] && $GLOBALS['TSFE']->simUserGroup && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['fe_group']] == $GLOBALS['TSFE']->simUserGroup || $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['starttime'] && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['starttime']] > $GLOBALS['EXEC_TIME'] || $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['endtime'] && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['endtime']] && $row[$GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['endtime']] < $GLOBALS['EXEC_TIME']) {
return TRUE;
}
}
@@ -365,28 +365,28 @@ class FrontendEditPanel {
$processedDataArr['uid'] = $theCmd == 'new' ? 'NEW' : $dataArray['uid'];
$processedDataArr['pid'] = $theCmd == 'new' ? $newUID : $dataArray['pid'];
$panel = '';
- $buttons = (((' ';
- $buttons .= (((' ';
- $buttons .= (((((' ';
+ $buttons = ' ';
+ $buttons .= ' ';
+ $buttons .= ' ';
// Buttons top
$panel .= $tceforms->intoTemplate(array('ITEM' => $buttons));
$panel .= $tceforms->getMainFields($table, $processedDataArr);
$hiddenF = '';
if ($theCmd == 'new') {
- $hiddenF .= (((' ';
+ $hiddenF .= ' ';
if ($table == 'pages') {
// If a new page is created in front-end, then show it by default!
- $hiddenF .= (' ';
+ $hiddenF .= ' ';
} else {
- $hiddenF .= (' ';
+ $hiddenF .= ' ';
$hiddenF .= ' ';
}
}
$hiddenF .= ' ';
// Buttons AND hidden fields bottom.
$panel .= $tceforms->intoTemplate(array('ITEM' => $buttons . $hiddenF));
- $panel = (($formTag . $tceforms->wrapTotal($panel, $dataArray, $table)) . '') . ($theCmd != 'new' ? $blackLine : '');
- $finalOut = ((($tceforms->printNeededJSFunctions_top() . ($conf['edit.']['displayRecord'] ? $content : '')) . $panel) . ($theCmd == 'new' ? $blackLine : '')) . $tceforms->printNeededJSFunctions();
+ $panel = $formTag . $tceforms->wrapTotal($panel, $dataArray, $table) . '' . ($theCmd != 'new' ? $blackLine : '');
+ $finalOut = $tceforms->printNeededJSFunctions_top() . ($conf['edit.']['displayRecord'] ? $content : '') . $panel . ($theCmd == 'new' ? $blackLine : '') . $tceforms->printNeededJSFunctions();
$GLOBALS['SOBE']->doc->insertHeaderData();
return $finalOut;
}