protected function renderSingleElementHTML(PageLayoutView $parentObject, $item)
    {
        $singleElementHTML = '';
        $unset = false;
        if (!isset($parentObject->tt_contentData['nextThree'][$item['uid']])) {
            $unset = true;
            $parentObject->tt_contentData['nextThree'][$item['uid']] = $item['uid'];
        }
        if (!$parentObject->tt_contentConfig['languageMode']) {
            $singleElementHTML .= '<div class="t3-page-ce-dragitem" id="' . StringUtility::getUniqueId() . '">';
        }
        $singleElementHTML .= $parentObject->tt_content_drawHeader(
            $item,
            $parentObject->tt_contentConfig['showInfo'] ? 15 : 5,
            $parentObject->defLangBinding,
            true,
            true
        );
        $singleElementHTML .= (!empty($item['_ORIG_uid']) ? '<div class="ver-element">' : '')
            . '<div class="t3-page-ce-body-inner t3-page-ce-body-inner-' . $item['CType'] . '">'
            . $parentObject->tt_content_drawItem($item)
            . '</div>'
            . (!empty($item['_ORIG_uid']) ? '</div>' : '');
        $singleElementHTML .= $this->tt_content_drawFooter($parentObject, $item);
        if (!$parentObject->tt_contentConfig['languageMode']) {
            $singleElementHTML .= '</div>';
        }
        if ($unset) {
            unset($parentObject->tt_contentData['nextThree'][$item['uid']]);
        }

        return $singleElementHTML;
    }
protected function renderSingleElementHTML(PageLayoutView $parentObject, $item)
    {
        $singleElementHTML = '';
        $unset = false;
        if (!isset($parentObject->tt_contentData['nextThree'][$item['uid']])) {
            $unset = true;
            $parentObject->tt_contentData['nextThree'][$item['uid']] = $item['uid'];
        }
        if (!$parentObject->tt_contentConfig['languageMode']) {
            $singleElementHTML .= '<div class="t3-page-ce-dragitem" id="' . StringUtility::getUniqueId() . '">';
        }
        $singleElementHTML .= $parentObject->tt_content_drawHeader(
            $item,
            $parentObject->tt_contentConfig['showInfo'] ? 15 : 5,
            $parentObject->defLangBinding,
            true,
            true
        );
        $singleElementHTML .= (!empty($item['_ORIG_uid']) ? '<div class="ver-element">' : '')
            . '<div class="t3-page-ce-body-inner t3-page-ce-body-inner-' . $item['CType'] . '">'
            . $parentObject->tt_content_drawItem($item)
            . '</div>'
            . (!empty($item['_ORIG_uid']) ? '</div>' : '');
        $singleElementHTML .= $this->tt_content_drawFooter($parentObject, $item);
        if (!$parentObject->tt_contentConfig['languageMode']) {
            $singleElementHTML .= '</div>';
        }
        if ($unset) {
            unset($parentObject->tt_contentData['nextThree'][$item['uid']]);
        }

        return $singleElementHTML;
    }
protected function renderSingleElementHTML ( PageLayoutView $ parentObject , $ item ) { $ singleElementHTML = '' ; $ unset = false ; if ( ! isset ( $ parentObject -> tt_contentData [ 'nextThree' ] [ $ item [ 'uid' ] ] ) ) { $ unset = true ; $ parentObject -> tt_contentData [ 'nextThree' ] [ $ item [ 'uid' ] ] = $ item [ 'uid' ] ; } if ( ! $ parentObject -> tt_contentConfig [ 'languageMode' ] ) { $ singleElementHTML .= '<div class="t3-page-ce-dragitem" id="' . StringUtility :: getUniqueId ( ) . '">' ; } $ singleElementHTML .= $ parentObject -> tt_content_drawHeader ( $ item , $ parentObject -> tt_contentConfig [ 'showInfo' ] ? 15 : 5 , $ parentObject -> defLangBinding , true , true ) ; $ singleElementHTML .= ( ! empty ( $ item [ '_ORIG_uid' ] ) ? '<div class="ver-element">' : '' ) . '<div class="t3-page-ce-body-inner t3-page-ce-body-inner-' . $ item [ 'CType' ] . '">' . $ parentObject -> tt_content_drawItem ( $ item ) . '</div>' . ( ! empty ( $ item [ '_ORIG_uid' ] ) ? '</div>' : '' ) ; $ singleElementHTML .= $ this -> tt_content_drawFooter ( $ parentObject , $ item ) ; if ( ! $ parentObject -> tt_contentConfig [ 'languageMode' ] ) { $ singleElementHTML .= '</div>' ; } if ( $ unset ) { unset ( $ parentObject -> tt_contentData [ 'nextThree' ] [ $ item [ 'uid' ] ] ) ; } return $ singleElementHTML ; }
Renders the HTML code for a single tt_content element

@param PageLayoutView $parentObject : The parent object that triggered this hook
@param array $item : The data row to be rendered as HTML

@return string
Renders the HTML code for a single tt_content element