if ($showDate) {
     $content .= '<div class="bearcms-blog-posts-element-post-date-container">';
     $content .= '<span class="bearcms-blog-posts-element-post-date">';
     $content .= date('F j, Y', $publishedTime);
     $content .= '</span>';
     $content .= '</div>';
 }
 if ($type === 'summary' || $type === 'full') {
     $containerID = 'bearcms-blogpost-' . $blogPost['id'];
     $content .= '<div class="bearcms-blog-posts-element-post-content">';
     if ($type === 'summary') {
         $containerData = ElementsHelper::getContainerData($containerID);
         $textElementData = null;
         $imageElementData = null;
         $walkElements = function ($elementID) use(&$textElementData, &$imageElementData) {
             $data = ElementsHelper::getElementsRawData([$elementID]);
             $elementData = json_decode($data[$elementID], true);
             if (isset($elementData['type'])) {
                 if ($textElementData === null && $elementData['type'] === 'text') {
                     $textElementData = $elementData;
                 }
                 if ($imageElementData === null && $elementData['type'] === 'image') {
                     $imageElementData = $elementData;
                 }
             }
             return $textElementData !== null && $imageElementData !== null;
         };
         foreach ($containerData['elements'] as $elementContainerData) {
             if (isset($elementContainerData['data'], $elementContainerData['data']['type']) && $elementContainerData['data']['type'] === 'column') {
                 $columnsSizes = explode(':', $elementContainerData['data']['mode']);
                 $columnsCount = sizeof($columnsSizes);
        foreach ($elements as $elementContainerData) {
            if ($elementContainerData['id'] === $columnID) {
                $elements = [$elementContainerData];
                break;
            }
        }
    } else {
        foreach ($elements as $elementContainerData) {
            if (isset($elementContainerData['data'], $elementContainerData['data']['type']) && $elementContainerData['data']['type'] === 'column') {
                // column element
            } else {
                $elementsIDs[] = $elementContainerData['id'];
            }
        }
    }
    $elementsRawData = ElementsHelper::getElementsRawData($elementsIDs);
}
$styles = '';
if ($renderElementsContainer) {
    $className = 'bre' . md5(uniqid());
    $attributes = '';
    if ($editable) {
        $htmlElementID = 'brela' . md5($component->id);
        ElementsHelper::$editorData[] = ['container', $component->id, $contextData, $group];
        $attributes .= ' id="' . $htmlElementID . '"';
    }
    $styles .= '.' . $className . '{width:' . $component->width . ';word-wrap:break-word;text-align:left;}';
    $styles .= '.' . $className . '>div{margin-bottom:' . $component->spacing . ';display:block;clear:both;zoom:1;}';
    $styles .= '.' . $className . '>div:last-child{margin-bottom:0;}';
    $styles .= '.' . $className . '>div:empty{display:none;}';
    $spacingSelector = 's' . $component->spacing;