public function createChildRecord($arrRow) { $GLOBALS['content_classes']['count']++; $GLOBALS['content_classes']['current'] = $GLOBALS['content_classes']['classes'][$GLOBALS['content_classes']['count']]; $tlContent = new \tl_content(); return $tlContent->addCteType($arrRow); }
public function addCteType($arrRow) { $return = parent::addCteType($arrRow); $return = GridClass::addClassesToLabels($arrRow, $return); return $return; }
/** * Add the type of content element * @param array * @return string */ public function addContentTitle($arrRow) { $objTableContent = new \tl_content(); $strContent = $objTableContent->addCteType($arrRow); $addContentTitle = ""; if ($arrRow['elementIsBox']) { $addContentTitle = "Box-Element " . str_replace('w', '', $arrRow['boxWidth']) . "x" . str_replace('h', '', $arrRow['boxHeight']); } if (strlen($addContentTitle)) { $addContentTitle = " - " . $addContentTitle; } $strContent = preg_replace('/<div class="cte_type([A-Za-z0-9\\s\\-_]{0,})">([A-Za-z0-9\\s\\-_öäüÖÄÜß@:;,.+#*&%!?\\/\\\\(\\)\\]\\[\\{\\}\'\\"]{0,})<\\/div>/', '<div class="cte_type$1">$2' . $addContentTitle . '</div>', $strContent); return $strContent; }